
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 REST endpoints, or consume them client-side with @wordpress/abilities, this handles the full stack. It walks you through the registration hooks, confirms REST exposure with show_in_rest meta, and sets up the JS consumption path. The debugging section is solid: it covers the usual culprits when abilities don't appear (wrong hook, missing meta flags, caching). Most useful when you're adding capability-like features that need to be queryable from the frontend without rolling your own REST endpoints.
- skills.sh installs
- 4.6K
- GitHub stars
- 2.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add wordpress/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
Before deciding what to register, read references/domain-vs-projection.md — abilities live at the domain capability layer; MCP / Command Palette / REST exposure is a projection. Registration shape and exposure shape are different decisions, and conflating them forces re-registration every time a consumer's constraints change.
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.
Sponsors
Details
- Repository
- github.com/wordpress/agent-skills
- Categories
- Backend & APIs, AI & Agent Building, PHP & Laravel
- First seen
- Apr 16, 2026
More from wordpress/agent-skills
All 17- Wp Interactivity Api4.5K
- Wpds4.3K
- Blueprint4K
- Wp Plugin Directory Guidelines3.9K
- Wp Abilities Audit2.9K
- Wp Abilities Verify2.8K
- Wp Plugin Development8.6K
- Wp Performance6.7K
- Wp Rest Api6.3K
- Wp Block Themes6.3K
- Wordpress Router6K
- Wp Wpcli And Ops6K
- Wp Project Triage5.9K
- Wp Block Development5.9K
- Wp Playground5.1K
- Wp Phpstan4.9K