wp-abilities-api

Register WordPress plugin or theme capabilities as machine-readable Abilities via the wp_abilities_api_init hook.

21|1|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/Lonsdale201/wp-agent-skills --skill wp-abilities-api-lonsdale201
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-abilities-api
Source: https://github.com/Lonsdale201/wp-agent-skills/tree/main/wordpress/wp-abilities-api
Command: npx skills add https://github.com/Lonsdale201/wp-agent-skills --skill wp-abilities-api-lonsdale201

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

WordPress plugin and theme authors often struggle to publish a stable, machine-readable surface for their features. The Abilities API provides a single, discoverable registry that AI agents and external tools can query and invoke safely, reducing bespoke integration work.

Core Features & Use Cases

  • Register on wp_abilities_api_init to declare abilities with label, description, category, input_schema, output_schema, execute_callback, and permission_callback.
  • Use meta.show_in_rest to expose the ability via WordPress REST endpoints for authenticated clients.
  • Follow the public contract naming: namespace/ability-name to create stable APIs for AI adapters and MCP workflows.

Quick Start

Register your plugin's first Ability on the wp_abilities_api_init action, define input_schema/output_schema, and implement a permission_callback.

Frequently Asked Questions about wp-abilities-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose WordPress plugin features for AI agent discovery?

Register your WordPress plugin capabilities as machine-readable Abilities on the wp_abilities_api_init action, providing input_schema, output_schema, and a permission_callback so external tools can safely discover and invoke them.

What is the Abilities API for WordPress used for?

The Abilities API provides a single, discoverable registry for WordPress plugins and themes to publish machine-readable feature surfaces, reducing bespoke integration work for AI agents and external tools.

How do I expose a WordPress ability via REST endpoints?

Expose a WordPress ability via REST endpoints by setting meta.show_in_rest to true when registering the ability, allowing authenticated clients to access the feature through WordPress REST endpoints.

Should I expose a WordPress feature as an Ability or a REST route?

Expose a WordPress feature as an Ability when you need AI agents and MCP adapters to dynamically discover and invoke it, whereas a REST route is better for direct, fixed client integrations.

Can I integrate MCP adapters with WordPress using the Abilities API?

Integrate MCP adapters with WordPress by registering plugin capabilities as Abilities and following the namespace/ability-name public contract, creating stable APIs for AI workflows to discover and invoke.