WP Wpcli and Ops

94TrustedShips scripts

Command-line administration and database operations for WordPress sites.

What it does

This skill equips your assistant to perform technical site maintenance using WP-CLI. By understanding environment targeting and command-line safety, it ensures that your operations—from database migrations to plugin management—are executed with appropriate caution and correct path configuration.

It bridges the gap between general AI assistance and direct server-side interaction. When installed, the assistant gains the ability to interpret site structures, evaluate the potential impact of database changes, and draft scripts that follow best practices for WordPress infrastructure management.

When it earns its place

Reach for it when…

Use this when you need to perform high-impact operations like domain migrations via search-replace, bulk updates to plugins or themes, or debugging cron events and caches on a WordPress installation. It is particularly effective for setting up reproducible CI/CD pipelines and defining configuration defaults in a wp-cli.yml file.

Look elsewhere when…

This is not intended for managing frontend design, modifying CSS, or writing PHP code for themes and plugins. If your task involves editing the visual layout of a page or correcting syntax errors inside a plugin file, standard file editing tools are more appropriate.

What to say to use it

You never invoke a skill directly — the assistant picks it up when your request matches what it covers. These are the kinds of things that do that.

  • help me migrate my site domain to a new URL
  • how do I safely update plugins across a multisite installation
  • show me how to export the database and flush the object cache
  • create a wp-cli script to automate daily maintenance

Install it

Install for all your projects

Copy the skill directory into your personal skills folder. Claude picks it up on its own the next time your request matches what it does — there is nothing to enable.

bash
git clone --depth 1 --branch trunk https://github.com/WordPress/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/wp-wpcli-and-ops ~/.claude/skills/wp-wpcli-and-ops

Install for one project only

Put it in the project's own skills folder instead, so it can be committed and shared with everyone working on that repository.

bash
cp -r /tmp/agent-skills/skills/wp-wpcli-and-ops .claude/skills/wp-wpcli-and-ops

If a skill of the same name exists in both places, the personal one wins.

Installing on Claude.ai or through the API instead? The full guide covers every surface.

Pair it with an MCP server