wp-rest-api-development

Automates WordPress REST API code reviews for routes, authorization, validation, and responses.

69|9|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/jorgerosal/wordpress-skills --skill wp-rest-api-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-rest-api-development
Source: https://github.com/jorgerosal/wordpress-skills/tree/main/codex-skills/wp-rest-api-development
Command: npx skills add https://github.com/jorgerosal/wordpress-skills --skill wp-rest-api-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Codex needs a structured, repeatable approach to reviewing WordPress REST API code to ensure secure, correct, and consistent endpoints.

Core Features & Use Cases

  • Validate route registrations via register_rest_route, including path and namespace usage.
  • Verify permission_callback logic, argument validation, and safe handling of WP_REST_Request data.
  • Assess response shapes, status codes, and versioning for stable API contracts across endpoints.

Quick Start

Review a plugin's REST route file and verify authentication, input validation, and consistent response structure.

Frequently Asked Questions about wp-rest-api-development

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

FAQPage Schema
How do I review WordPress REST API code for security and validation?

To review WordPress REST API code, you need to verify route registration, permission_callback logic, and request argument validation. This process ensures custom endpoints securely handle WP_REST_Request data and enforce proper authorization checks.

What does permission_callback logic check for in a custom WordPress REST route?

Permission_callback logic checks authorization for custom WordPress REST routes to ensure only permitted users access endpoints. Verifying this callback prevents unauthorized data exposure and secures WP_REST_Request handling within your plugin or theme controllers.

How do I validate request arguments in register_rest_route?

To validate request arguments in register_rest_route, you must enforce checks within your custom WordPress REST API controllers. This ensures WP_REST_Request data is sanitized and validated according to your schema definitions before processing responses.

Can I use automated code review for WordPress plugin controllers and schema definitions?

Yes, automated code review can assess WordPress plugin controllers and schema definitions. It operates on plugin and theme codebases to verify route registration, authorization, validation, and consistent response shapes across versioned endpoints.

What's the best way to maintain stable API contracts across versioned WordPress endpoints?

The best way to maintain stable API contracts across versioned WordPress endpoints is to assess response shapes and status codes consistently. Reviewing versioning contracts ensures your REST API endpoints remain stable and predictable across updates.

Why does my WordPress REST API return inconsistent response shapes?

Inconsistent WordPress REST API response shapes often result from unverified response structures and status codes in your controllers. Reviewing your endpoint codebase enforces consistent response shapes and validates versioning contracts to prevent contract drift.