Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

wp-wpcli-and-ops

Skill by benbalter

Guides an AI assistant through WordPress operations with WP-CLI, including safe search-replace, database export and import, and plugin, theme, and user management. Built for developers and site operators who run WP-CLI against WordPress sites.

  • Score 80
  • 1.1k stars
  • GPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install wp-wpcli-and-ops

Built from the published package, never by AI.

git clone --depth 1 https://github.com/benbalter/wordpress-static-site-exporter /tmp/wordpress-static-site-exporter && mkdir -p ~/.claude/skills && cp -r /tmp/wordpress-static-site-exporter/.claude/skills/wp-wpcli-and-ops ~/.claude/skills/wp-wpcli-and-ops

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install wp-wpcli-and-ops in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This is an agent skill, defined in a SKILL.md file, for working with WP-CLI (wp) on WordPress sites. It covers search-replace for URL and domain changes, database export, import and inspection, plugin, theme, user and content management, cron events, cache and rewrite flushing, multisite operations, and scripting with wp-cli.yml.

The skill sets a safety-first procedure. Before any write, the assistant should confirm the environment, confirm the site path or URL, and take a backup. For URL migrations it follows a fixed order: export the database, run search-replace with --dry-run, then run the real replace. It also includes a read-only inspector script and reference notes for each area. It is meant for WordPress developers and operators who need WP-CLI help.

Written from the project's SKILL.md and checked against it.

What it can do

  • Safe search-replaceWalks through URL, domain and protocol changes with a backup and a dry run first.
  • Database operationsCovers wp db export, import, resets and inspections.
  • Plugin and theme managementHandles install, activate and update of plugins and themes, plus language packs.
  • Cron inspectionLists and runs individual cron events for debugging instead of running everything.
  • Cache and rewrite flushingFlushes caches and rewrite rules when a change requires it.
  • Multisite targetingDecides whether a command acts on one site with --url or across the network.
  • Automation with wp-cli.ymlSets defaults such as path, URL and PHP memory limits, and suggests logged scripts and CI checks.
  • Site inspector scriptRuns wpcli_inspect.mjs to check WP-CLI availability and site targeting.

What you need

  • WP-CLI in the execution environment
  • WordPress 6.9 or later
  • PHP 7.2.24 or later
  • Node.js to run the inspector script

Try asking

  • Help me change my WordPress site URL from http to https safely.
  • List the cron events on my WordPress site and run one for debugging.
  • Plan a multisite plugin update using WP-CLI without affecting other sites.

Good to know

  • Write operations should not run unless the environment and target site are confirmed.
  • Requires WP-CLI to be available where commands run.
  • If the repo uses Docker or wp-env and that cannot be accessed, the assistant should ask for the command runner or CI job.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/wp-wpcli-and-ops/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB
  • references/automation.md628 B
  • references/cron-and-cache.md490 B
  • references/debugging.md519 B
  • references/multisite.md568 B
Show all 9 files
  • references/packages-and-updates.md530 B
  • references/safety.md804 B
  • references/search-replace.md1006 B
  • scripts/wpcli_inspect.mjs3 KB

Alternatives to wp-wpcli-and-ops

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

wp-wpcli-and-ops: common questions

What WordPress versions does this skill target?

The skill's compatibility note says it targets WordPress 6.9 and later with PHP 7.2.24 or later. It also requires WP-CLI in the execution environment.

Is it safe to run search-replace with this skill?

The skill recommends exporting the database, running search-replace with --dry-run to review impact, and only then running the real replace. It warns that unexpected serialization issues can follow from wrong flags.

Can this skill operate on a multisite network?

Yes. It covers multisite operations using --url and --network, and it asks the user to decide whether a command targets a single site or the whole network.

How do I install wp-wpcli-and-ops?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is wp-wpcli-and-ops free?

The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.

Is wp-wpcli-and-ops safe to use?

It scores 80 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to wp-wpcli-and-ops?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

wp-wpcli-and-ops Install

Add to stack

Loading.