response-shape-mismatch
Installation
SKILL.md
Response Shape Mismatch
Discovery
Infer as much as possible from the codebase before asking. Then confirm:
- Where are responses consumed? — fetch/axios calls, React Query hooks, SWR, RTK Query, or tRPC?
- Are response types declared? — hand-written interfaces, generated from OpenAPI, inferred from tRPC, or
any/untyped? - Is the backend accessible? — can we read route handlers, Prisma schema, or serializers directly, or only the frontend?
- What's the failure mode? — known crash, silent wrong data, or proactive audit before it breaks?
Audit Strategy
Run all four checks. Each catches a distinct failure class.