auto-api-design
Installation
SKILL.md
API Design — What Claude Gets Wrong
You write endpoints that return bare data, use inconsistent error shapes, skip pagination on lists, and leak database models to clients. Each endpoint looks different. Clients need N parsers for N endpoints.
The Six Rules
- Consistent response envelope — every endpoint, same shape
- Proper HTTP status codes — not just 200 and 500
- Cursor-based pagination — on every list endpoint
- Input validation — beyond deserialization
- Structured error responses — with codes, not just messages
- DTO separation — API response != database row