Install any skill in seconds. Free to start, no credit card required.
Get Started Free →code-saurabh/api-design
Design production-grade APIs — REST, GraphQL, gRPC, and WebSocket — with a focus on consistency, versioning, error standards, and developer experience.
Passed 25 of 25 test cases with the skill, and 19 of 25 without it.
and 9 more in the full report
6 fixed19 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
A client submits a registration form with an invalid email address format and a password that is too short. Provide the exact JSON error response structure returning both validation errors in a single HTTP 400 response.
| Checked | Without skill | With skill |
|---|---|---|
| Returns validation errors in a single details array within the error object. | Missed | Passed |
| Includes a requestId field inside the error object. | Missed | Passed |
The instructions your model reads when the skill loads.
Approach every API as a product. The developer calling your API is your user. An API that is hard to understand, inconsistent, or unpredictable is a broken product — even if it technically works.
Design the API before writing a single line of implementation. An API is a contract. Changing it after clients depend on it is expensive. Getting it right upfront is cheap.
Before designing any endpoint, answer these questions:
cancel, approve, publish are better verbs than generic CRUD.| Style | Best for | Avoid when |
|---|---|---|
| REST | Resource-oriented APIs, public APIs, broad client compatibility, simple CRUD | Complex queries with many relationships, real-time, or highly variable response shapes |
| GraphQL | Flexible queries, multiple clients with different data needs, frontend-driven development, deeply nested data | Simple APIs, teams without GraphQL tooling, when over-fetching is not a real problem |
| gRPC | High-performance internal service communication, streaming, strongly-typed contracts, polyglot microservices | Browser clients (requires grpc-web proxy), teams unfamiliar with protobuf |
| WebSocket | Real-time bidirectional communication (chat, live dashboards, multiplayer) | Request-response patterns that do not need real-time; adds complexity without benefit |
test cases passed, vs 19 / 25 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.