loom-api-design
Installation
SKILL.md
API Design
Overview
Design intuitive, consistent, evolvable API contracts across REST, GraphQL, and gRPC. Get the resource model, HTTP semantics, error envelope, pagination, and versioning right up front — they are the hardest things to change once clients depend on them.
Design Workflow
- Model resources and relationships before URLs; name the nouns, then map operations onto them.
- Pick the paradigm: REST (resource CRUD, caching, broad tooling), GraphQL (client-shaped reads, aggregation, mobile), gRPC (internal, low-latency, streaming, strong contracts).
- Lock the error envelope, pagination shape, and versioning policy once — reuse everywhere.
- Design for change: additive evolution, tolerant readers, deprecation windows.
- Write the spec (OpenAPI/SDL/proto) as the source of truth; generate clients/servers from it.