From api-architect
Designs a RESTful or GraphQL API from the project's domain model, producing a structured endpoint table with request/response shapes, auth, versioning, and cross-cutting concerns.
How this command is triggered — by the user, by Claude, or both
Slash command
/api-architect:design-apiThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /api-architect:design-api Design a RESTful or GraphQL API based on the project's domain model and requirements. ## Process 1. Analyze the existing codebase to understand the domain: - Read database models, schemas, or type definitions to identify entities - Check existing routes or resolvers to understand current API surface - Look for DTOs, serializers, or validation schemas - Identify relationships between entities (one-to-many, many-to-many) 2. Design the resource hierarchy following REST conventions: - Map each core entity to a resource with a plural noun URL (`/use...
Design a RESTful or GraphQL API based on the project's domain model and requirements.
Analyze the existing codebase to understand the domain:
Design the resource hierarchy following REST conventions:
/users, /orders, /products)/users/{id}/orders, not /users/{id}/orders/{id}/items)GET /resources - List with pagination (cursor-based preferred over offset)GET /resources/{id} - Retrieve single resourcePOST /resources - Create new resourcePUT /resources/{id} - Full update (replace)PATCH /resources/{id} - Partial updateDELETE /resources/{id} - Remove resourceDefine request and response shapes:
{ "data": ..., "meta": { "total", "cursor" } }{ "error": { "code": "...", "message": "...", "details": [...] } }Design authentication and authorization:
Plan for versioning:
/v1/resources) for simplicityDesign cross-cutting concerns:
?cursor= and ?limit= parameters?status=active&created_after=2024-01-01)?sort=created_at:desc,name:asc?fields=id,name,email for bandwidth optimizationPOST /resources/batch for creating multiple itemsPresent the API design as a structured table of endpoints with:
npx claudepluginhub avelikiy/awesome-claude-code-toolkit --plugin api-architect6plugins reuse this command
First indexed Mar 30, 2026
/design-apiDesigns a RESTful or GraphQL API from the project's domain model, producing a structured endpoint table with request/response shapes, auth, versioning, and cross-cutting concerns.
/apiDesigns, implements, and applies best practices for REST or GraphQL APIs based on a required requirement and optional API type (rest or graphql).
/api-designerDesigns RESTful APIs, GraphQL schemas, and microservice architectures with auto-generated documentation, validation, security, and testing.
/api-designGuides API design following REST, GraphQL, and gRPC best practices through define, design, validate, and document phases. Generates OpenAPI or GraphQL schema documentation.