New advertisers: 50% off your first month with code FIRSTMONTHSee slots
wordpress avatar

Wp Abilities Api

Lead-in line for the WordPress Abilities API skill, covering registration, REST exposure, and client consumption.

skills.sh installs
4.8K
GitHub stars
2.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers registering abilities and categories in PHP, exposing them over wp-abilities/v1, and consuming them with @wordpress/abilities
  • Includes references on domain-versus-projection design, grouping heuristics, shared core services, and standardized WP_Error codes
  • Enforces meta.show_in_rest for client visibility and checks readonly for informational abilities, with debugging steps for missing abilities and empty REST results
  • Designed for WordPress 7.0+ plugin and theme work, with WP-CLI used where workflows require it

Install

$ npx -y skills add wordpress/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

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

Details

Repository
github.com/wordpress/agent-skills
Categories
PHP & Laravel, Backend & APIs
First seen
Apr 16, 2026

More from wordpress/agent-skills

All 17

Similar to Wp Abilities Api

More PHP & Laravel