Works with the AI Agents you already use
Live WordPress Site Ops over SSH + wp-cli
by Anthony
Use when running remote operations on a live WordPress site via SSH + wp-cli.
$7
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.
- Initial state captured.
- Snapshot created outside web root.
- Content written via
wp eval-file. - Integrity verified via MD5 hash comparison.
- Frontend visibility confirmed.
Operation Log: Post Update 123
| Phase | Status | Metric / Proof |
|---|---|---|
| Read | Success | Initial MD5: a1b2c3d4... |
| Snapshot | Success | 1242 files verified; Source/Target sizes match |
| Write | Success | Anchor uniqueness guard: 1 match found |
| Verify DB | Success | Table MD5 e5f6g7h8 matches intended.md |
| Serve Check | Success | Normalized 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.phpfrom 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
- State analysis reads the current database state and records an initial MD5 checksum of the target content.
- External snapshot creates a backup outside the public directory and verifies file counts and sizes.
- Staged execution deploys changes using PHP scripts via
wp eval-fileto avoid shell quoting and escaping issues. - Post-write audit re-reads the database table to verify the new MD5 matches the intended content exactly.
- Served verification Performs a
curlrequest 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.