What problem does it solve?
REST APIs are often inconsistent, ambiguous, and hard for clients to use reliably because of poor resource naming, incorrect status code usage, missing pagination, unclear error formats, and ad-hoc versioning. This Skill captures conventions and concrete patterns to make APIs predictable, debuggable, and safe for public or partner consumption.
Core Features & Use Cases
- Resource and URL conventions: guidance on nouns, pluralization, kebab-case, and sub-resources to keep endpoints intuitive.
- HTTP semantics and status codes: mappings for success, client, and server errors and examples of correct usage.
- Pagination, filtering, and versioning: recommendations for cursor vs offset pagination, filter/query formats, and URL or header-based versioning strategies.
- Error and response schemas: standardized error envelopes, field-level validation errors, and examples for common frameworks (TypeScript, Django, Go).
- Use Case: Use these patterns to design a new public users endpoint, add cursor pagination to a feed API, or standardize error responses across microservices.
Quick Start
Use the api-design skill to review and standardize the new /api/v1/orders endpoint for pagination, filtering, and error responses.