api-contracts
Installation
SKILL.md
API Contracts
When to Use
Use when adding/modifying API routes, reviewing endpoint auth, checking request/response shapes, detecting breaking changes, or auditing the API surface. Not for video pipeline internals, UI design, n8n workflows, or ORM migration work (use migration-validator for that).
Critical Rules
- Every new route must have Zod validation on request body (POST/PATCH/PUT).
- Never change response shape of a production endpoint without a deprecation path.
- Auth must be explicit — every route is either public, session-gated, or token-gated. No implicit auth.
- Rate-limit public endpoints — contact forms, magic-link sends, checkout creation.
- Worker routes use query params for userId — no session cookies on Express.
- Document new routes in the API catalog below and update this skill.