Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs production-grade REST, GraphQL, gRPC, and WebSocket APIs with consistent errors, versioning, pagination, and OpenAPI specs.
76% 100%+24 ptsof test cases passed
Passed 25 of 25 test cases with the skill, and 19 of 25 without it.
3 of 3 safety checks passed
Not used yet
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 |
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.