automattic avatar

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

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

Sponsors

Details

Repository
github.com/automattic/agent-skills
Categories
Backend & APIs, AI & Agent Building
First seen
Jun 3, 2026

More from automattic/agent-skills

All 12
1aradotso avatarpgque-postgres-queuearadotso/trending-skillspgque postgres queue296skills.sh installs
2aradotso avatarfreebuff2api-openai-proxyaradotso/trending-skillsfreebuff2api openai proxy289skills.sh installs
3davila7 avatargwas-databasedavila7/claude-code-templatesQuery NHGRI-EBI GWAS Catalog for SNP-trait associations. Search variants by rs ID, disease/trait, gene, retrieve p-values and summary statistics, for genetic ep289skills.sh installs
4davila7 avatarpdb-databasedavila7/claude-code-templatesAccess RCSB PDB for 3D protein/nucleic acid structures. Search by text/sequence/structure, download coordinates (PDB/mmCIF), retrieve metadata, for structural b281skills.sh installs
5aradotso avatargpt2api-openai-gatewayaradotso/trending-skillsgpt2api openai gateway276skills.sh installs
6patricio0312rev avatarmcp-server-builderpatricio0312rev/skillsBuilds Model Context Protocol (MCP) servers for Claude with tools, resources, and prompts. Use when users request "create MCP server", "build Claude tool", "MCP265skills.sh installs