Skip to content
automattic avatar

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
View on GitHub

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 readonly and show_in_rest meta 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 -y

Installs 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-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).

Procedure

1) Confirm availability and version constraints

  • If this is WP core work, check signals.isWpCoreCheckout and versions.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_init
  • wp_abilities_api_categories_init
  • wp-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 12

Similar to Wp Abilities Api

More PHP & Laravel