← All skills
Prompt · Slash command

API Design Review

Review REST or GraphQL API design for consistency and best practices.

What happens when you install it

1

You run the install command

mcp install-skill api-design-review

MCPHub CLI downloads this prompt from the registry.

2

Saved as a file in Claude Code

~/.claude/commands/api-design-review.md

Claude Code reads all .md files in this folder as slash commands.

3

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

mcp install-skill api-design-review

After install, restart Claude Code and type:

/api-design-review

Requires MCPHub CLI

Author

Looking for Agents?

Agents run with a full system prompt and persistent behavior — not just a one-off command.

Browse agents →