What problem does it solve?
This Skill keeps Next.js API route handlers aligned to the JSON:API v1.1 specification and prevents inconsistent responses, headers, or relationships that would break downstream consumers.
Core Features & Use Cases
- Strict Document Validation: Enforces that responses never mix data and errors, always include type and id strings, and populate correct relationship links.
- Header and Query Guardrails: Demands Content-Type and Accept headers of application/vnd.api+json, rejects unsupported sort, include, and fields parameters, and maps HTTP verbs to the mandated status codes.
- Review Use Case: Apply it when updating providers, relationships, or pagination so every Next.js route handler in ui/app/api mirrors JSON:API behavior before merging.
Quick Start
Use the jsonapi skill to review your updated route handler and confirm every response, header, and relationship matches the latest JSON:API rules before deploying.