From mk
Guides REST and GraphQL API design with patterns for resource naming, HTTP methods, status codes, pagination, versioning, and error formats. Produces a design document before implementation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mk:api-design [api description] [--rest | --graphql | --both]When to use
Use when designing REST or GraphQL APIs (resource naming, HTTP methods, error formats, pagination). NOT for backend implementation (use mk:database for schema).
[api description] [--rest | --graphql | --both]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
REST and GraphQL design patterns for building consistent, developer-friendly APIs.
REST and GraphQL design patterns for building consistent, developer-friendly APIs.
Activate when:
Phase: 1 (Plan) — Produces an API design document before implementation begins. Handoff: Developer agent implements the endpoints per the design document.
references/rest-patterns.md for REST; references/graphql-patterns.md for GraphQL.| File | Purpose |
|---|---|
references/rest-patterns.md | Resource naming, HTTP methods, status codes, pagination, versioning, rate limiting, error format |
references/graphql-patterns.md | Schema design, queries, mutations, error handling, pagination, N+1 prevention, auth |
Produce an API design document with:
## API Design: [Domain Name]
### Resources
[Table of resources and their relationships]
### Endpoints
| Method | Path | Description | Auth |
|--------|------|-------------|------|
| GET | /v1/users | List users | Required |
| POST | /v1/users | Create user | Required |
| ...
### Request/Response Examples
[One example per non-trivial endpoint]
### Error Format
[Standard error response structure]
### Pagination
[Strategy chosen and example response]
### Versioning
[Strategy and current version]
### Rate Limiting
[Limits and headers]
/users not /getUsers)/users/{id}/orders is fine; /users/{id}/orders/{id}/items/{id} is too deep (flatten to /order-items)npx claudepluginhub ngocsangyem/meowkit --plugin mkGuides REST and GraphQL API design including endpoint structure, error handling, versioning, and documentation. Best for new APIs or contract reviews.
Designs RESTful APIs and GraphQL schemas following best practices for endpoints, request/response schemas, and architecture.
Guides API design decisions including REST vs GraphQL, resource modeling, versioning, error contracts, pagination, and authentication patterns.