WP Rest API

94TrustedInstructions only

WordPress REST API endpoint creation, custom field registration, and route debugging.

What it does

Installing Wp Rest API equips your assistant to architect and troubleshoot custom endpoints within the WordPress ecosystem. It provides the necessary logic to handle request validation, response shaping, and permission management using native WordPress patterns.

By integrating this skill, the assistant gains access to standardized approaches for exposing post types or taxonomies to the web interface. It shifts the focus toward maintainable, server-side code structures that follow established WordPress architecture for data exchange.

When it earns its place

Reach for it when…

Use this when developing custom routes for data processing, debugging authentication errors in existing endpoints, or linking internal meta and fields to the REST response output.

Look elsewhere when…

This is not for managing frontend JavaScript frameworks or standalone decoupled application architecture that exists outside of a standard WordPress plugin or theme directory structure.

What to say to use it

You never invoke a skill directly — the assistant picks it up when your request matches what it covers. These are the kinds of things that do that.

  • create a new custom endpoint for my plugin data
  • debug why my rest api route is returning a 403 error
  • expose these custom fields to the rest api response
  • register a custom post type for rest access

Install it

Install for all your projects

Copy the skill directory into your personal skills folder. Claude picks it up on its own the next time your request matches what it does — there is nothing to enable.

bash
git clone --depth 1 --branch trunk https://github.com/WordPress/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/wp-rest-api ~/.claude/skills/wp-rest-api

Install for one project only

Put it in the project's own skills folder instead, so it can be committed and shared with everyone working on that repository.

bash
cp -r /tmp/agent-skills/skills/wp-rest-api .claude/skills/wp-rest-api

If a skill of the same name exists in both places, the personal one wins.

Installing on Claude.ai or through the API instead? The full guide covers every surface.

Pair it with an MCP server