Register, validate, and debug WordPress REST API endpoints with schema enforcement and permission controls.
Works with
Covers route registration via register_rest_route() and WP_REST_Controller subclasses, custom field exposure through register_rest_field and meta registration, and CPT/taxonomy REST exposure via show_in_rest
Enforces schema validation, argument sanitization, and permission callbacks; supports cookie + nonce, application passwords, and custom auth plugins
Includes triage workflo
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionwp-rest-apiExecute the skills CLI command in your project's root directory to begin installation:
Fetches wp-rest-api from wordpress/agent-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate wp-rest-api. Access via /wp-rest-api in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
3
total installs
3
this week
1.1K
GitHub stars
0
upvotes
Run in your terminal
3
installs
3
this week
1.1K
stars
Use this skill when you need to:
my-plugin/v1) and routes.node skills/wp-project-triage/scripts/detect_wp_project.mjsregister_rest_routeWP_REST_Controllerrest_api_initshow_in_rest, rest_base, rest_controller_classIf this is a full site repo, pick the specific plugin/theme before changing code.
wp/v2:
show_in_rest => true + rest_base if needed.rest_controller_class.references/custom-content-types.md.register_rest_route() on rest_api_init.WP_REST_Controller subclass) for anything non-trivial.references/routes-and-endpoints.md and references/schema.md.vendor/v1; avoid wp/* unless core.permission_callback (use __return_true for public endpoints).WP_REST_Server::READABLE/CREATABLE/EDITABLE/DELETABLE constants.rest_ensure_response() or WP_REST_Response.WP_Error with an explicit status.Read references/routes-and-endpoints.md.
args with type, default, required, validate_callback, sanitize_callback.rest_validate_value_from_schema then rest_sanitize_value_from_schema.$_GET/$_POST directly inside endpoints; use WP_REST_Request.Read references/schema.md.
register_rest_field for computed fields; register_meta with show_in_rest for meta.object/array meta, define schema in show_in_rest.schema.?context=edit to access content.raw (auth required). Pair with _fields=content.raw to keep responses small.WP_REST_Response::add_link().Read references/responses-and-fields.md.
X-WP-Nonce (action wp_rest).permission_callback (authorization), not just “logged in”.Read references/authentication.md.
Link header or <link rel="https://api.w.org/">)._fields, _embed, _method, _envelope, pagination headers.per_page is capped at 100.Read references/discovery-and-params.md.
/wp-json/ index includes your namespace.OPTIONS on your route returns schema (when provided).wp/v2 when show_in_rest is true.rest_api_init not firing, route typo, or permalinks off (use ?rest_route=).permission_callback too strict._doing_it_wrong for missing permission_callback: add it (use __return_true if public).args schema or validation callbacks.show_in_rest false, meta not registered, or CPT lacks custom-fields support.If version support or behavior is unclear, consult the REST API Handbook and core docs before inventing patterns.
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
jwynia/agent-skills
mindrally/skills
github/awesome-copilot
kostja94/marketing-skills
wispbit-ai/skills
shubhamsaboo/awesome-llm-apps
wp-rest-api has been reliable in day-to-day use. Documentation quality is above average for community skills.
We added wp-rest-api from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Useful defaults in wp-rest-api — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
wp-rest-api fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Registry listing for wp-rest-api matched our evaluation — installs cleanly and behaves as described in the markdown.
I recommend wp-rest-api for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
wp-rest-api reduced setup friction for our internal harness; good balance of opinion and flexibility.
Solid pick for teams standardizing on skills: wp-rest-api is focused, and the summary matches what you get after install.
wp-rest-api is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Keeps context tight: wp-rest-api is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 49