
Wp Abilities Api
If you're working with WordPress 6.9+ and need to register abilities, expose them via REST, or consume them in JavaScript using @wordpress/abilities, this skill walks you through the whole flow. It covers PHP registration with wp_register_ability, REST endpoint verification under wp-abilities/v1, and client-side consumption. The debug section is genuinely helpful because "ability doesn't show up" usually means you missed show_in_rest in meta or hooked registration at the wrong time. It assumes you're comfortable with filesystem agents, WP-CLI, and can run wp-project-triage first. Honestly, it's narrow but thorough, exactly what you want when adopting a newer core API.
- skills.sh installs
- 300
- GitHub stars
- 211
- last updated
- Jun 3, 2026
Install
$ npx -y skills add automattic/agent-skills --skill wp-abilities-api --agent claude-codeInstalls into .claude/skills of the current project.
Files
WP Abilities API
When to use
Use this skill when the task involves:
- 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”.
Inputs required
- Repo root (run
wp-project-triagefirst 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).
Procedure
1) Confirm availability and version constraints
- If this is WP core work, check
signals.isWpCoreCheckoutandversions.wordpress.core. - If the project targets WP < 6.9, you may need the Abilities API plugin/package rather than relying on core.
2) Find existing Abilities usage
Search for these in the repo:
wp_register_ability(wp_register_ability_category(wp_abilities_api_initwp_abilities_api_categories_initwp-abilities/v1@wordpress/abilities
Sponsors
Details
- Repository
- github.com/automattic/agent-skills
- Categories
- Backend & APIs, AI & Agent Building
- First seen
- Jun 3, 2026