Tools for building and debugging WordPress REST API endpoints.
Install
mkdir -p .claude/skills/superpowers-sage-wp-rest-api && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16234" && unzip -o skill.zip -d .claude/skills/superpowers-sage-wp-rest-api && rm skill.zipInstalls to .claude/skills/superpowers-sage-wp-rest-api
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
WordPress REST API — register_rest_route, WP_REST_Controller, WP_REST_Request, REST namespace, custom endpoints, Application Passwords, JWT REST authentication, permission_callback, schema validation, WP_REST_Response, REST API versioning, rest_ensure_response, coexistence with Acorn Routes, register_rest_route vs routes/web.php decision, REST API debugging, wp rest-api namespace list, wp json discovery, CORS, REST nonce, cookie auth, REST API disable, JSON schema validationKey capabilities
- →Choose between native WordPress REST and Acorn Routes
- →Register native REST endpoints using `register_rest_route()`
- →Implement authentication methods for REST API
- →Expose custom fields and Custom Post Types (CPTs)
- →Avoid common REST API anti-patterns
- →Troubleshoot REST API failures
How it works
The skill guides the user in choosing between native REST and Acorn Routes, registering endpoints with `register_rest_route()`, implementing authentication, and exposing custom data, while also providing anti-pattern avoidance and troubleshooting.
Inputs & outputs
When to use superpowers-sage:wp-rest-api
- →Creating custom REST endpoints
- →Debugging WordPress API
- →Validating JSON schemas
About superpowers-sage:wp-rest-api
Provides patterns for custom REST endpoints using register_rest_route, manages permissions, and aids in choosing between REST and Acorn routes.
>
When not to use it
- →When the REST API is entirely disabled by a security plugin or custom code
- →When performance is critical and requires a dedicated caching layer
- →When the API must serve a mobile app with offline support and requires a dedicated API framework
Limitations
- →Requires `permission_callback` for every `register_rest_route()` call.
- →Argument schemas must define `type`, `required`, and `sanitize_callback` where applicable.
- →Closures in route callbacks cannot be cached and break serialization.
How it compares
This skill provides structured patterns and decision matrices for WordPress REST API development, including coexistence with Acorn Routes and anti-pattern avoidance, which is more guided than manual implementation.
Compared to similar skills
superpowers-sage:wp-rest-api side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| superpowers-sage:wp-rest-api (this skill) | 0 | 7mo | No flags | Intermediate |
| laravel-specialist | 12 | 6mo | No flags | Intermediate |
| developing-with-turbo-streams | 1 | 8mo | No flags | Intermediate |
| payment-integration | 1 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
laravel-specialist
Jeffallan
Use when building Laravel 10+ applications requiring Eloquent ORM, API resources, or queue systems. Invoke for Laravel models, Livewire components, Sanctum authentication, Horizon queues.
developing-with-turbo-streams
hotwired-laravel
Basics of developing with Turbo Streams in web applications. Activate when working on projects that utilize Turbo Streams for enhancing user experience through real-time updates, dynamic content changes, and partial page updates without full reloads.
payment-integration
mrgoonie
Integrate payments with SePay (VietQR), Polar, Stripe, Paddle (MoR subscriptions), Creem.io (licensing). Checkout, webhooks, subscriptions, QR codes, multi-provider orders.
developing-with-prism
prism-php
Guide for developing with Prism PHP package - a Laravel package for integrating LLMs. Activate or use when working with Prism features including text generation, structured output, embeddings, image generation, audio processing, streaming, tools/function calling, or any LLM provider integration (OpenAI, Anthropic, Gemini, Mistral, Groq, XAI, DeepSeek, OpenRouter, Ollama, VoyageAI, ElevenLabs). Activate for any Prism-related development tasks.
restapi-translations
mikopbx
Управление переводами REST API ключей (rest_*) для MikoPBX. Автоматически находит отсутствующие русские ключи в RestApi.php и синхронизирует их с исходным кодом. Использовать при проверке переводов API, после добавления новых endpoints или перед релизом.
moodle-external-api-development
davila7
Create custom external web service APIs for Moodle LMS. Use when implementing web services for course management, user tracking, quiz operations, or custom plugin functionality. Covers parameter validation, database operations, error handling, service registration, and Moodle coding standards.