wp-abilities-api

If you're working with WordPress 6.9+ and need to register abilities or categories in PHP, expose them via the wp-abilities/v1 RE…

wordpress 1.9k ↓ 2.4k NOASSERTION updated 26d ago
Claude Code
View source ↗

What it does

  • registering abilities or ability categories in PHP,
  • exposing abilities to clients via REST (wp-abilities/v1),
  • consuming abilities in JS (notably @wordpress/abilities),
  • diagnosing “ability doesn’t show up” / “client can’t see ability” / “REST returns empty”.
  • Repo root (run wp-project-triage first if you haven’t).
  • Target WordPress version(s) and whether this is WP core or a plugin/theme.
  • Where the change should live (plugin vs theme vs mu-plugin).

Requirements & configuration

  • If the project targets WP < 6.9, you may need the Abilities API plugin/package rather than relying on core.
  • If you need a logical grouping, register an ability category early (see references/php-registration.md).

Configuration: AGENTS

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

If you're working with WordPress 6.9+ and need to register abilities or categories in PHP, expose them via the wp-abilities/v1 REST...

Source

Repository: https://github.com/wordpress/agent-skills

wp-abilities-api FAQ

What does the wp-abilities-api skill do?

Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, /wp-json/wp-abilities/v1/*, @wordpress/abilities) including defining abilities, categories, meta, REST exposure, and permissions checks for clients. registering abilities or ability categories in PHP, exposing abilities to clients via REST (wp-abilities/v1),

What does wp-abilities-api require?

If the project targets WP < 6.9, you may need the Abilities API plugin/package rather than relying on core. If you need a logical grouping, register an ability category early (see references/php-registration.md). Configuration keys: AGENTS.

How do I install wp-abilities-api?

Run: npx -y skills add https://github.com/wordpress/agent-skills --skill wp-abilities-api --agent claude-code — the source lives at github.com/wordpress/agent-skills.

Maintain wp-abilities-api?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[wp-abilities-api on getagentictools](https://getagentictools.com/skills/wordpress-agent-skills-wp-abilities-api?ref=badge)
npx agentictools info skills/wordpress-agent-skills-wp-abilities-api

The second line is the CLI lookup for this page — handy in READMEs and docs.