Skip to main content
skill CX Codex

wp-abilities-api — Claude Code skill: what it does, how to install

A skill for WordPress Abilities API work: registering abilities and categories in PHP, exposing them over REST, reading them in JS. Useful when a client can't see an ability.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add WordPress/agent-skills --skill wp-abilities-api -a claude-code
Open on GitHub

What wp-abilities-api does

The skill walks an agent through Abilities API work in order. It confirms the target WordPress version, greps the repo for wp_register_ability(, wp_register_ability_category( and the init hooks, then registers a category and the ability itself with a stable id, label, description and the show_in_rest flag.

Reference files carry the detail it points to along the way: references/php-registration.md for hooks and meta, references/rest-api.md for endpoints, references/grouping-heuristic.md for how many abilities to actually ship, plus notes on shared services, delegate helpers and a vocabulary of WP_Error codes. domain-vs-projection.md makes the case that registration and exposure are separate decisions, so a change in what a consumer needs doesn't force a re-registration.

It targets WordPress 7.0+ on PHP 7.4.0+. The agent needs bash and node, and some workflows lean on WP-CLI. On a project below 6.9 the core functions aren't there, so you'll need the Abilities API plugin or package instead. Worth checking the version before you start.

What it helps with

  • register an ability in PHP without losing show_in_rest
  • split abilities into categories instead of one flat list
  • debug an ability that never shows up in wp-abilities/v1
  • bundle @wordpress/abilities on the client side
  • pick WP_Error codes an agent can act on

Example prompts for the agent

  • Register a vibe/get-post-summary ability with show_in_rest: true so the client can reach it over wp-abilities/v1.
  • The REST endpoint returns nothing even though registration runs. Check the init hook and meta.show_in_rest.
  • Move client-side ability access to @wordpress/abilities and confirm the dependency gets bundled.

How to install wp-abilities-api

1Skills CLI (Vercel)

npx skills add WordPress/agent-skills --skill wp-abilities-api -a claude-code

2Manually: put the files in place

~/.claude/skills/wp-abilities-api/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/wp-abilities-api/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about wp-abilities-api

How do I install wp-abilities-api in Claude Code?

Run npx skills add WordPress/agent-skills --skill wp-abilities-api -a claude-code. The skill lands at ~/.claude/skills/wp-abilities-api/SKILL.md.

What does wp-abilities-api do?

It guides an agent through PHP registration of abilities and categories, checks the REST output under wp-abilities/v1, and covers JS consumption. It also maps the usual breakages: no registration, missing REST flag, dependency not bundled.

What WordPress version does it need?

WordPress 7.0+ and PHP 7.4.0+. Projects below 6.9 need the Abilities API plugin or package, and some workflows require WP-CLI.

Similar skills

Everything for Backend and APIs →

From the same set19

wp-project-triage The skill inspects a WordPress repo and prints JSON: project kind, tooling and tests found, version hints. Handy before you touch an unfamiliar plugin or theme. CX Codex +1 5,400installs wp-wpcli-and-ops A skill for WordPress operations through wp: move domains, export the database, install plugins, inspect cron. Useful when the agent has to touch a live site, not just theme files. CX Codex +1 5,500installs wp-playground A thin routing wrapper that picks the right WordPress Playground workflow for the agent: Blueprint, local CLI, browser share links or debugging. CX Codex +1 4,700installs wp-phpstan Sets up PHPStan static analysis in WordPress plugins and themes, while managing baselines and WordPress-specific PHPDoc types. CX Codex +1 4,600installs wp-interactivity-api Guides AI agents through WordPress Interactivity API implementation and debugging. Helps configure directives, connect script modules, and eliminate hydration mismatches. CX Codex +1 4,200installs wpds Feeds WordPress Design System docs to your agent through an MCP server, so UI work lands on real components and tokens instead of guesses. CX Codex +1 4,000installs blueprint Create and inspect JSON Blueprints for WordPress Playground with this skill. Use it to configure an environment as a Blueprint file, rather than just launch or share one. CX Codex +1 3,700installs wp-plugin-directory-guidelines Audits WordPress plugins against 18 WordPress.org Directory guidelines, verifying GPL license compatibility and freemium rules before submission. CX Codex +1 3,600installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor