# Live WordPress Site Ops over SSH + wp-cli

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

Live WordPress Site Ops over SSH + wp-cli is a paid AI agent skill on Agensi by Anthony. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Anthony](https://www.agensi.io/creators/avz369)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/live-wordpress-site-ops-over-ssh-wp-cli
- Tags: wordpress, ssh, wp-cli, remote, backup, cache

## 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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Live WordPress Site Ops over SSH + wp-cli skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill differ from simply asking an AI to run WP-CLI commands?

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.

### What are the technical requirements to use Remote WordPress Ops?

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.

### How does the skill ensure my live site doesn't break during an update?

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.

### Can this skill handle complex search-and-replace operations involving special characters?

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.

### Do I need to provide my own server credentials and configurations?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
