api-review
API Review Command
Review an API design for best practices, consistency, and potential issues.
Usage
/sd:api-review [spec-file-or-pattern]
Arguments
spec-file-or-pattern(optional): Path to OpenAPI spec, API file, or glob pattern- If provided: Review the specified file(s)
- If omitted: Search for common API spec files (openapi.yaml, swagger.json, etc.)
Examples
/sd:api-review openapi.yaml
/sd:api-review src/api/**/*.ts
/sd:api-review
Workflow
-
Locate API Definitions
- If spec file provided, read it
- Otherwise, search for:
openapi.yaml,openapi.json,swagger.yaml,swagger.json,*.graphql,*.proto - Also look for route/endpoint definitions in code
-
Spawn API Reviewer Agent Use the
api-revieweragent to analyze the API design. The agent will:- Identify the API type (REST, GraphQL, gRPC)
- Apply best practices from loaded skills
- Generate a structured review report
-
Present Findings Display the review organized by:
- Critical issues (must fix)
- Warnings (should address)
- Suggestions (nice to have)
- Positive observations
What Gets Reviewed
REST APIs
- Resource naming and URL structure
- HTTP method usage
- Status codes
- Error response format
- Pagination patterns
GraphQL APIs
- Schema design
- Query complexity
- N+1 prevention
- Error handling
gRPC APIs
- Message design
- Service patterns
- Backward compatibility
Cross-Cutting
- Versioning strategy
- Rate limiting
- Idempotency
- Security patterns
- Documentation quality
Output
The command produces a structured review report with:
- Summary of the API and overall assessment
- Issues categorized by severity
- Specific recommendations with examples
- Positive patterns to reinforce
More from melodic-software/claude-code-plugins
design-thinking
Design Thinking methodology for human-centered innovation. Covers the 5-phase IDEO/Stanford d.school approach (Empathize, Define, Ideate, Prototype, Test) with workshop facilitation and exercise templates.
197plantuml-syntax
Authoritative reference for PlantUML diagram syntax. Provides UML and non-UML diagram types, syntax patterns, examples, and setup guidance for generating accurate PlantUML diagrams.
163system-prompt-engineering
Design effective system prompts for custom agents. Use when creating agent system prompts, defining agent identity and rules, or designing high-impact prompts that shape agent behavior.
142architecture-documentation
Generate architecture documents using templates with diagram integration. Use for creating C4 diagrams, viewpoint documents, and technical overviews.
128data-modeling
Data modeling with Entity-Relationship Diagrams (ERDs), data dictionaries, and conceptual/logical/physical models. Documents data structures, relationships, and attributes.
102resume-optimization
Resume structure, achievement bullet formulas, ATS optimization, and job-targeted tailoring for software engineers. Use when reviewing resumes, crafting achievement bullets, extracting keywords from job descriptions, or tailoring content for specific roles.
94