API Design And Responses

Use this skill whenever designing or modifying API routes/endpoints, choosing between REST/GraphQL/tRPC, deciding HTTP verbs or status codes, shaping success/error JSON responses, adding pagination, validating request input, versioning an API, or writing error handling and logging code. Trigger on requests like "add an endpoint for X," "what status code should this return," "my API responses look inconsistent," "how should I handle this error," "set up logging," or "why is this query slow" (N+1 queries). Trigger proactively whenever any new route is being added, since inconsistent API shape compounds the longer it's left unaddressed.API Design & Error Handling

alyanhaider fd25ac4 4 files · 38.4 KB Updated

File contents

alyanhaider/system-architecture/tree/main/skills/api-design-and-responses commit fd25ac4e91

Frequently asked questions

npx skillmds@latest add alyanhaider/api-design-and-responses