api-review
SKILL.md
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
Weekly Installs
1
Repository
melodic-softwar…-pluginsGitHub Stars
38
First Seen
11 days ago
Security Audits
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1