Works with the AI Agents you already use

    Live WordPress Site Ops over SSH + wp-cli

    by Anthony

    1

    Use when running remote operations on a live WordPress site via SSH + wp-cli.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Live WordPress Site Ops over SSH + wp-cli

    Live WordPress Site Ops over SSH + wp-cli

    Example session with this skill installed

    Update the content of post 123 on the remote site. The new content is in local file updates/post_123.html. Verify the write against the database and check the live URL.

    • Read your context and instructions
    • Compiled the live wordpress site

    Remote WordPress operation initiated for Post ID: 123.

    1. Initial state captured.
    2. Snapshot created outside web root.
    3. Content written via wp eval-file.
    4. Integrity verified via MD5 hash comparison.
    5. Frontend visibility confirmed.

    Operation Log: Post Update 123

    PhaseStatusMetric / Proof
    ReadSuccessInitial MD5: a1b2c3d4...
    SnapshotSuccess1242 files verified; Source/Target sizes match
    WriteSuccessAnchor uniqueness guard: 1 match found
    Verify DBSuccessTable MD5 e5f6g7h8 matches intended.md
    Serve CheckSuccessNormalized text found; Cache-control: no-cache

    Next steps

    • Review the backup stored in ~/backups/wp_snap_20231027/ before session close.
    • Purge the edge CDN if applicable, as the server-level cache has been verified.
    • Delete the temporary deployment script deploy_123.php from the remote home directory.

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

    About this skill

    The full cycle for changing a live WordPress site over SSH + wp-cli: read from the real table, snapshot outside the web root, write with a uniqueness guard, prove by MD5, control on the served page through a non-cacheable parameter, roll back page contents too — not only theme files. CLI success messages are never the proof. Includes the page-cache truth table (PHP is not executed on cacheable pages), the .htaccess reality in HTTPS, the rsync and scp traps, SSH quoting, and the rule that secret values are never printed.

    What it does

    • Atomic updates performs writes using a read-snapshot-write-prove cycle to prevent partial failures.
    • Database verification uses MD5 hash comparisons between local buffers and remote database tables to confirm data integrity.
    • Cache-aware testing verifies changes on the served frontend using non-cacheable parameters and normalized text comparisons.
    • Safe backups manages site snapshots stored outside the web root to prevent credential exposure.
    • Uniqueness guards prevents accidental multi-post overwrites by enforcing anchor string uniqueness before any write operation.
    • Remote transport handles file synchronization via rsync and scp with checksum verification rather than relying on exit codes.

    How it works

    1. State analysis reads the current database state and records an initial MD5 checksum of the target content.
    2. External snapshot creates a backup outside the public directory and verifies file counts and sizes.
    3. Staged execution deploys changes using PHP scripts via wp eval-file to avoid shell quoting and escaping issues.
    4. Post-write audit re-reads the database table to verify the new MD5 matches the intended content exactly.
    5. Served verification Performs a curl request to the live URL to ensure the change is visible to users.

    Frameworks & tools

    This skill requires a Linux environment with ssh, wp-cli, rsync, and curl. It targets WordPress installations and interacts directly with MySQL/MariaDB via the wp db interface and PHP execution.

    Why this beats prompting it yourself

    Standard prompts trust the CLI output "Success: Updated post" which can trigger even if the database write fails due to caching or permissions. This skill implements a manual verification layer that treats the database table, not the terminal output, as the source of truth. It handles complex SQL quoting and LaTeX backslash preservation that usually break in standard SSH sessions.

    Use cases

    • Deploying mu-plugins or theme files to a live production environment.
    • Performing search-and-replace operations on post content with byte-exact verification.
    • Auditing server-level page cache headers before and after site configuration changes.
    • Executing database-heavy tasks that require SQL quoting safety over remote shells.

    Known limitations

    It covers the operations, not the platform itself. It assumes wp-cli, SSH, and the ability to write outside the web root. The page-cache conclusions were measured on LiteSpeed on shared hosting; another cache layer behaves differently, and the tool re-verifies before applying the rule. It does not cover plugin code or database changes beyond post content.

    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 buying a skill.

    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

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

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

    Trust & safety

    Security scan

    Security scan passed 6 days ago

    Permissions

    Network Access
    Write Files
    Listed6 days ago

    What's inside

    Frequently Asked Questions

    This skill acts as a precision layer for WP-CLI. Instead of just sending a command and hoping it worked, it performs a 'read-snapshot-write-prove' cycle, using MD5 checksums to verify that database changes actually occurred and are visible on the live frontend.

    You will need a Linux-based environment with SSH access to your server, along with WP-CLI, rsync, and curl installed. The skill is designed to work with any AI agent capable of executing shell commands and managing remote connections.

    The skill creates snapshots stored outside your web root before any write operation. If a database MD5 verification fails or a served-page check returns an error, the process alerts you immediately, preventing the 'silent failures' common with standard SSH scripts.

    Yes, it specifically handles complex SQL quoting and character preservation (like LaTeX backslashes) that often break during standard SSH sessions. It uses 'wp eval-file' to deploy changes via PHP scripts, bypassing common shell escaping issues.

    While the skill manages the execution and verification logic, you must provide your own SSH credentials and any host-specific rsync flags. It focuses on the integrity of WordPress operations rather than managing server-level infrastructure or local environment setup.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.