skills/wp-wpcli-and-ops/SKILL.md
Use when working with WP-CLI (wp) for WordPress operations: safe search-replace, db export/import, plugin/theme/user/content management, cron, cache flushing, multisite, and scripting/automation with wp-cli.yml.
npx skillsauth add WordPress/agent-skills wp-wpcli-and-opsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the task involves WordPress operational work via WP-CLI, including:
wp search-replace (URL changes, domain migrations, protocol switch)wp db *)wp site *, --url, --network)wp-cli.yml, shell scripts, CI jobs)--path=<wordpress-root> and (multisite) --url=<site-url>WP-CLI commands can be destructive. Before running anything that writes:
Read:
references/safety.mdRun the inspector:
node skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs --path=<path> [--url=<url>]If WP-CLI isn’t available, fall back to installing it via the project’s documented tooling (Composer, container, or system package), or ask for the expected execution environment.
search-replace)Follow a safe sequence:
wp db export (backup)wp search-replace --dry-run (review impact)Read:
references/search-replace.mdUse wp plugin * / wp theme * and confirm you’re acting on the intended site (and network) first.
Read:
references/packages-and-updates.mdInspect cron state and run individual events for debugging rather than “run everything blindly”.
Read:
references/cron-and-cache.mdMultisite changes can affect many sites. Always decide whether you’re operating:
--url=), or--network / iterating sites)Read:
references/multisite.mdFor repeatable ops, prefer:
wp-cli.yml for defaults (path/url, PHP memory limits)Read:
references/automation.mdwpcli_inspect after changes that could affect targeting or config.--path, wrong container, or missing wp-config.php--url or wrong URLSee:
references/debugging.mddevelopment
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps/resources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.
tools
Use as the WordPress Playground routing wrapper for ambiguous Playground work, local CLI runs with @wp-playground/cli, playground.wordpress.net share links, browser previews, snapshots, mounts, version switching, and Xdebug. For Blueprint JSON authoring or review, use the blueprint skill directly.
development
Use when developing WordPress block themes: theme.json (global settings/styles), templates and template parts, patterns, style variations, and Site Editor troubleshooting (style hierarchy, overrides, caching).
tools
Use when the user asks about WordPress codebases (plugins, themes, block themes, Gutenberg blocks, WP core checkouts) and you need to quickly classify the repo and route to the correct workflow/skill (blocks, theme.json, REST API, WP-CLI, performance, security, testing, release packaging).