API Design Review
Review REST or GraphQL API design for consistency and best practices.
What happens when you install it
You run the install command
mcp install-skill api-design-reviewMCPHub CLI downloads this prompt from the registry.
Saved as a file in Claude Code
~/.claude/commands/api-design-review.mdClaude Code reads all .md files in this folder as slash commands.
Use it in any conversation
/api-design-reviewin Claude Code (after restart)Claude runs the prompt against your current file or selection — no copy-paste needed.
Content
API Design Review
Review the API design (routes, schemas, OpenAPI spec, or code) for consistency, correctness, and developer experience.
REST conventions
- HTTP methods used correctly (GET reads, POST creates, PUT/PATCH updates, DELETE removes)
- Status codes accurate (201 for create, 204 for empty success, 422 for validation errors)
- Resource naming: plural nouns, kebab-case (
/user-profiles, not/getUserProfile) - No verbs in URLs — actions belong in the method
Consistency
- Naming convention uniform (camelCase vs snake_case — pick one)
- Error response format the same across all endpoints
- Pagination, filtering, and sorting follow the same pattern
- Timestamps in ISO 8601
Design gaps
- Missing endpoints that callers will obviously need
- Redundant endpoints doing the same thing
- Overly chatty (requires too many calls to do one task)
Security
- Auth required where it should be
- No sensitive data in query params (use headers or body)
- Rate limiting considerations
- CORS policy intentional, not wildcard
Versioning
- Strategy is clear (
/v1/, header, or content negotiation) - Breaking vs non-breaking changes identified
Output
Prioritized list of issues with: what's wrong, why it matters, and the suggested fix.
Install
After install, restart Claude Code and type:
/api-design-reviewRequires MCPHub CLI
Author

stoplight
github.com/stoplightioSource
stoplightio/spectralLooking for Agents?
Agents run with a full system prompt and persistent behavior — not just a one-off command.
Browse agents →