What problem does it solve?
This Skill prevents inconsistent and brittle REST APIs by guiding teams to define clear resource structures, predictable HTTP semantics, and reliable response patterns that clients can integrate with confidently.
Core Features & Use Cases
- Resource Naming & Hierarchy: Uses plural, kebab-case paths and recommends relationship nesting limits while favoring query parameters for filtering.
- HTTP Methods & Status Codes: Maps operations to GET/POST/PATCH/PUT/DELETE and standardizes success and error responses (e.g., 201 with Location, 204 for deletes, 400/401/403/404/409/422/429).
- Pagination, Filtering, and Sorting: Chooses offset vs cursor pagination, supports exact filtering vs search, and uses safe sorting with whitelists.
- Response Shape & Versioning: Standardizes success/error payload structures and recommends versioning via URL paths (with a deprecation timeline).
- Rate Limiting & API Security Best Practices: Establishes header-based rate limiting and baseline security controls like validation, parameterized queries, and non-leaking errors.
Quick Start
Ask the Skill to draft a REST API design for your new service endpoints, including resource paths, HTTP methods, pagination choice, filtering/sorting rules, versioning approach, and a consistent response/error contract.