Guides RESTful API endpoint design, resource naming, status code selection, pagination structure, versioning strategy, and error response schemas. Use when the user asks about designing APIs, defining HTTP endpoints, REST conventions, API versioning, request/response formats, URL structure, OpenAPI/Swagger specs, or reviewing an existing API contract for best practices.
72
89%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Use this when someone is designing a new HTTP API or reviewing an existing one.
URLs should describe resources, not actions. Use plural nouns for collections, singular for items.
GET /users — listGET /users/{id} — single userPOST /users — createPATCH /users/{id} — partial updateDELETE /users/{id} — removeUse kebab-case for multi-word path segments (/access-tokens, not /access_tokens or /accessTokens).
Pick the right code. Don't return 200 with an error body.
200 for successful reads and updates201 for successful creates204 for successful deletes400 for client errors (bad input)401 for missing or invalid auth403 for authorized-but-forbidden404 for not found409 for conflict (e.g., duplicate)422 for semantic validation errors500 for unexpected server errorsFor list endpoints, paginate. Return a structured response.
Version via URL prefix (/v1/users) or Accept header. Pick one and stick with it.
Errors should be useful. Include enough info for the client to act on.
73eda88
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.