automattic avatar

Wp Wpcli And Ops

Teaches Claude to run WordPress ops through WP-CLI without blowing things up. Covers the common stuff like search-replace for migrations, database exports, plugin management, cron debugging, and multisite targeting. The safety-first approach is smart: it includes an inspector script to confirm you're pointed at the right site, enforces dry-run checks before destructive commands, and won't let you skip backups on risky operations. Good if you're automating WordPress deployments or need to script repetitive admin tasks across staging and production. The multisite guidance alone (url vs network flags) will save you from at least one very bad day.

skills.sh installs
472
GitHub stars
211
last updated
Jun 3, 2026

Install

$ npx -y skills add automattic/agent-skills --skill wp-wpcli-and-ops --agent claude-code

Installs into .claude/skills of the current project.

Files

WP-CLI and Ops

When to use

Use this skill when the task involves WordPress operational work via WP-CLI, including:

  • wp search-replace (URL changes, domain migrations, protocol switch)
  • DB export/import, resets, and inspections (wp db *)
  • plugin/theme install/activate/update, language packs
  • cron event listing/running
  • cache/rewrite flushing
  • multisite operations (wp site *, --url, --network)
  • building repeatable scripts (wp-cli.yml, shell scripts, CI jobs)

Inputs required

  • Where WP-CLI will run (local dev, staging, production) and whether it’s safe to run.
  • How to target the correct site root:
    • --path=<wordpress-root> and (multisite) --url=<site-url>
  • Whether this is multisite and whether commands should run network-wide.
  • Any constraints (no downtime, no DB writes, maintenance window).

Procedure

0) Guardrails: confirm environment and blast radius

WP-CLI commands can be destructive. Before running anything that writes:

  1. Confirm environment (dev/staging/prod).
  2. Confirm targeting (path/url) so you don’t hit the wrong site.
  3. Make a backup when performing risky operations.

Read:

  • references/safety.md

Sponsors

Details

Repository
github.com/automattic/agent-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from automattic/agent-skills

All 12
1aj-geddes avataremail-service-integrationaj-geddes/useful-ai-promptsIntegrate email services with backends using SMTP, third-party providers, templates, and asynchronous sending. Use when implementing email functionality, sendin470skills.sh installs
2aj-geddes avatarinfrastructure-monitoringaj-geddes/useful-ai-promptsSet up comprehensive infrastructure monitoring with Prometheus, Grafana, and alerting systems for metrics, health checks, and performance tracking.470skills.sh installs
3aj-geddes avatarangular-module-designaj-geddes/useful-ai-promptsDesign Angular modules using feature modules, lazy loading, and dependency injection. Use when organizing large Angular applications with proper separation of c469skills.sh installs
4auth0 avatarexpress-oauth2-jwt-bearerauth0/agent-skillsUse when protecting Express or Node.js API endpoints with JWT Bearer token validation, scope-based access control, or DPoP binding. Integrates express-oauth2-jw469skills.sh installs
5aj-geddes avatarpull-request-automationaj-geddes/useful-ai-promptsAutomate pull request workflows with templates, checklists, auto-merge rules, and review assignments. Reduce manual overhead and improve consistency.468skills.sh installs
6aj-geddes avatardatabase-monitoringaj-geddes/useful-ai-promptsMonitor database performance and health. Use when setting up monitoring, analyzing metrics, or troubleshooting database issues.467skills.sh installs