Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Nex Deploy Script Pattern

    5

    Generate a staged, phase-numbered deployment system with automated backups, migrations, and health checks.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    3 usesSecurity scanned
    nex-deploy-script-pattern

    nex-deploy-script-pattern

    Example session with this skill installed

    Create a deploy script for my Docker app in /opt/myapp. Rebuild the 'web' service, run migrations in mydb-postgres, and verify health at http://localhost:8080/health.

    • Read your context and instructions
    • Compiled the nex-deploy-script-pattern

    I've generated the myapp-deploy/ package.

    • deploy.sh: 5-phase script (Backup -> Migrations -> Rebuild -> Restart -> Health Check).
    • rollback.sh: One-click restoration of the latest timestamped backup.
    • README.md: Instructions for execution and monitoring.
      Run: sudo bash myapp-deploy/deploy.sh

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Professional Deployment Management for Debian and Raspberry Pi

    Ship code with confidence to your home server or production VPS. This skill generates a staged, production-grade deployment package designed for complex applications that require more than a simple file copy. It automates the "Phase" approach used by professional DevOps engineers to ensure every deployment is safe, verified, and reversible.

    What it does

    The skill produces a structured deployment directory containing deploy.sh and rollback.sh scripts customized for your specific stack. It handles the heavy lifting of sequential operations:

    • Phase 0 (Atomic Backup): Creates a timestamped full backup of your project directory before any changes.
    • Phase 1 (Database Migrations): Runs SQL migrations against your database container.
    • Phase 2 (Build & Rebuild): Manages Docker Compose builds or frontend npm compilation.
    • Phase 3 (Service Restart): Safely restarts Docker services or Systemd units.
    • Phase 4 (Health & Smoke Tests): Polls health endpoints and verifies specific URLs before declaring victory.

    Why developer's use it

    While a simple docker compose up might work for demos, this skill provides a safety net. If a migration fails or a build errors out, the script aborts immediately thanks to set -euo pipefail, leaving your live environment untouched. It eliminates the "it worked in dev but broke on the Pi" anxiety by adding automated verification and a ready-to-fire rollback command.

    Supported Environments

    Works on any Debian-based system (Ubuntu, Raspberry Pi OS). Supports Docker Compose stacks and traditional Systemd service architectures.

    Built by Nex AI. More skills and info at nex-ai.be and slopsome.com.

    • Requires target server to have Bash and Docker or Systemd.
    • Does not handle file transfer (SCP/SFTP) logic.
    • Best suited for Debian-based Linux distributions.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    3 uses

    Times used to date

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    Requires

    Nex Ai

    Permissions

    Terminal / Shell
    Network Access

    Allowed Hosts

    nex-ai.be
    Listed5 months ago
    Updated1 month ago

    What's inside

    Frequently Asked Questions

    This skill generates a complete, staged deployment framework including pre-configured `deploy.sh` and `rollback.sh` scripts, designed to handle backups, migrations, and health checks automatically.

    It is optimized for Debian-based environments, such as Ubuntu or Raspberry Pi OS, and natively supports both Docker Compose stacks and traditional Systemd service architectures.

    Unlike a basic script, this uses a phased 'DevOps' approach—it ensures atomic backups and database migrations are successful before restarting services, and runs smoke tests to verify the site is up before finishing.

    The generated scripts use `set -euo pipefail` logic, meaning if any phase (like a build failure or database error) occurs, the process halts immediately to prevent your production environment from breaking.

    You only need to provide basic details about your project path and service type; the AI then generates the custom directory structure and scripts tailored to your specific application's requirements.

    Yes, while the scripts are generated for your specific stack, they are fully commented and can be manually adjusted if you need to add custom hooks or extra post-deployment notifications.

    New in DevOps & Cloud