wordpress avatar

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

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.

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
1agricidaniel avatarads-server-side-trackingagricidaniel/claude-adsAudit server-side paid-media measurement including server-side tag management, platform conversion APIs, event taxonomy, browser/server deduplication, consent, 3.6Kskills.sh installs
2affaan-m avatarpubmed-databaseaffaan-m/eccDirect PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitori3.3Kskills.sh installs
3payloadcms avatarpayloadpayloadcms/payloadUse when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, secur2.7Kskills.sh installs
4mindrally avatarmysql-best-practicesmindrally/skillsMySQL development best practices for schema design, query optimization, and database administration2.7Kskills.sh installs
5google-deepmind avataropenfda-databasegoogle-deepmind/science-skillsQuery, search, and download data from the openFDA API for drugs, devices, foods, tobacco, cosmetics, animal and veterinary products, substances, and transparenc2.3Kskills.sh installs
6tencentcloudbase avatarauth-wechat-miniprogramtencentcloudbase/skillsCloudBase WeChat Mini Program native authentication guide. This skill should be used when users need mini program identity handling, OPENID/UNIONID access, or `2.2Kskills.sh installs