Wp Abilities Api
Developer guide for registering, exposing over REST, and consuming WordPress Abilities API endpoints and categories.
- CCM score
- 52 of 100
- skills.sh installs
- 313
- GitHub stars
- 211
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers abilities and categories in PHP, REST exposure under
wp-abilities/v1, and client consumption via@wordpress/abilities - Walks through a procedure: confirm WordPress 6.9+ support, locate existing usage, register, verify REST output, then wire up JS
- Explains the
readonlyandshow_in_restmeta flags, and which hooks to use so registration runs at the right time - Lists common failure modes like abilities missing from REST, mismatched category IDs, and unbundled JS dependencies
- Designed for WordPress core and plugin developers debugging an ability that never appears or a client that can't see one
Install
$ npx -y skills add automattic/agent-skills --skill wp-abilities-api -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/automattic/agent-skills
- Categories
- PHP & Laravel, Technical Documentation, Backend & APIs
- First seen
- Jun 3, 2026
Questions
What does the wp-abilities-api skill help with?
It teaches the agent the WordPress Abilities API, including registering abilities and ability categories with wp_register_ability and wp_register_ability_category. It also covers exposing abilities over REST at wp-json/wp-abilities/v1 and checking permissions for clients.
Who is the wp-abilities-api skill for?
It is for developers building or debugging WordPress plugins, themes or core work that use the Abilities API. It suits cases where an ability does not show up or a client cannot see it through the REST endpoints.
How do I install the wp-abilities-api skill?
Run npx -y skills add automattic/agent-skills --skill wp-abilities-api -y in your project. This lets the agent follow the Abilities API registration and REST exposure steps.
Which skills does wp-abilities-api rank alongside in PHP and Laravel?
On the PHP and Laravel category page it ranks in the top 100. Other skills in that category include laravel-specialist, php-pro, laravel-patterns, laravel-verification and laravel-plugin-discovery, though this skill targets WordPress rather than Laravel.
What does the skill need to run?
It targets WordPress 6.9 or later with PHP 7.2.24 or later. It works with a filesystem-based agent that has bash and node, and some workflows require WP-CLI.
More from automattic/agent-skills
All 12Similar to Wp Abilities Api
More PHP & Laravelwp-abilities-auditwordpress/agent-skills3.3K installsStructured audit document planning Abilities API registrations for WordPress plugin REST endpoints, grouped by semantic intent.
wp-rest-apiwordpress/agent-skills7K installsDeveloper guide for building, extending, and debugging WordPress REST API routes, controllers, and schema validation.
wp-interactivity-apiautomattic/agent-skills343 installsPractical guide for building and debugging WordPress Interactivity API features, covering directives, store state, and server-side rendering.
wordpress-plugin-developmentsickn33/agentic-awesome-skills125 installsWordPress plugin development workflow covering architecture, hooks, admin screens, REST endpoints, and WordPress 7.0 features.
wp-plugin-developmentautomattic/agent-skills566 installsWordPress plugin development guidance covering architecture, lifecycle hooks, Settings API, and security baseline.
moodle-external-api-developmentsickn33/agentic-awesome-skills526 installsDeveloper guide for building custom Moodle external web service APIs that follow Moodle's external API framework.