
Wp REST API
Guides an agent through building and debugging WordPress REST API routes and fields
Wp REST API is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 14
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Wp REST API
This skill walks a coding agent through work on WordPress REST API endpoints, from registering routes and controller classes to shaping responses and exposing custom post types and taxonomies through show_in_rest. It points the agent to a triage script that locates existing REST usage in a plugin or theme before any code is changed, then directs it to reference notes on routes, schema, responses, authentication and discovery.
The guidance covers practical rules such as using a unique namespace, always supplying a permission_callback, validating arguments with schema helpers instead of reading superglobals, and adding fields rather than removing core ones. It also includes a checklist for confirming routes appear in the index and return the expected status codes, plus a debugging section for common 401, 403 and 404 failures.
The skill expects a WordPress codebase at a known path, a chosen namespace and version, and a decided authentication mode such as cookie with nonce or application passwords. It targets WordPress 7.0 and PHP 7.4 or later, and it runs a Node script for triage, with WP-CLI needed for some workflows.
When your agent uses it
Use when building, extending, or debugging WordPress REST API endpoints/routes: register_rest_route, WP_REST_Controller/controller classes, schema/argument validation, permission_callback/authentication, response shaping, register_rest_field/register_meta, or exposing CPTs/taxonomies via show_in_rest.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 7 files (10 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the kivo-wise plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add hekivo/kivo-wise
/plugin install kivo-wise@kivo-wiseOr copy only this skill to ~/.claude/skills/wp-rest-api:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/wp-rest-api &&
cp -R "$tmp/third-party/wp-rest-api" ~/.claude/skills/wp-rest-api &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/wp-rest-api inside it instead.
Copy the skill folder to ~/.agents/skills/wp-rest-api to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/wp-rest-api &&
cp -R "$tmp/third-party/wp-rest-api" ~/.agents/skills/wp-rest-api &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/wp-rest-api inside it instead.
Copy the skill folder to ~/.cursor/skills/wp-rest-api to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/wp-rest-api &&
cp -R "$tmp/third-party/wp-rest-api" ~/.cursor/skills/wp-rest-api &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/wp-rest-api inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/hekivo/kivo-wise.git --path third-party/wp-rest-apiOr copy the folder to ~/.gemini/skills/wp-rest-api yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/wp-rest-api:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/wp-rest-api &&
cp -R "$tmp/third-party/wp-rest-api" ~/.copilot/skills/wp-rest-api &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/wp-rest-api inside it instead.
Get the folder:
git clone --depth 1 https://github.com/hekivo/kivo-wise.gitThen copy kivo-wise/third-party/wp-rest-api into your agent's skills folder as wp-rest-api. Agents that support SKILL.md read one folder per skill.
What it does
- Route registration patterns
- Covers register_rest_route usage, namespaces, HTTP method constants and controller classes.
- Argument validation
- Explains defining argument schemas and applying schema-based validation and sanitization.
- Custom fields and meta
- Describes adding computed fields and exposing registered meta through the REST response.
- Post type and taxonomy exposure
- Shows how to make custom content types available under wp/v2 using show_in_rest.
- Authentication and permissions
- Outlines nonce-based cookie auth, application passwords and capability checks in callbacks.
- Debugging checklist
- Lists common causes of 404, 401 and 403 errors and the verification steps to confirm a working endpoint.
Good for
- Add a custom REST endpoint to a WordPress plugin
- Expose a custom post type through the wp/v2 API
- Fix a 403 error on a WordPress REST route
- Add a computed field to post responses
- Validate and sanitize arguments for a REST endpoint
Wp REST API FAQ
What does the skill need before Wp REST API starts?
It needs the repository root, the target plugin, theme or mu-plugin path, a desired namespace and version, the authentication mode, and the WordPress version constraints.
Which WordPress versions does Wp REST API target?
It targets WordPress 7.0 and later with PHP 7.4.0 or later, and it calls out cases where the site is below 7.0.
When does the skill trigger?
It triggers when building, extending or debugging REST endpoints, routes, controllers, schema validation, permission callbacks, or exposing post types and taxonomies via show_in_rest.
How do I install Wp REST API in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/wp-rest-api to use it in all your projects, or to .claude/skills/wp-rest-api in one project. Or install the kivo-wise plugin, which includes it: /plugin marketplace add hekivo/kivo-wise, then /plugin install kivo-wise@kivo-wise.
Does Wp REST API run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Wp REST API?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Wp REST API?
The closest alternatives to Wp REST API are Wp abilities API, API design, API design, API design and Acorn routes API.
Where this comes from
- Description: from the skill's own SKILL.md.
More from hekivo/kivo-wise

Writes approved design plans as WordPress block markup and scaffolds missing blocks
- Open source
- 14 GitHub stars
- Developer tools

Maps Figma components to project code blocks through Code Connect, with approval first
- Open source
- 14 GitHub stars
- Design and media

Turns a Figma frame, HTML file or URL into a WordPress page on the Roots stack
- Open source
- 14 GitHub stars
- Developer tools

Turns a Figma frame into neutral section specs for kivo-creator via the Figma MCP server
- Open source
- 14 GitHub stars
- Design and media

Turns an HTML file or URL into kivo-creator section specs with reference screenshots
- Open source
- 14 GitHub stars
- Developer tools

Maps design sections to a project's existing blocks before any code is generated
- Open source
- 14 GitHub stars
- Developer tools




