home / skills / shotaiuchi / dotclaude / review-api-design
This skill reviews API design and contract quality across REST, GraphQL, and SDK surfaces to improve usability and backward compatibility.
npx playbooks add skill shotaiuchi/dotclaude --skill review-api-designReview the files below or copy the command above to add this skill to your agents.
---
name: review-api-design
description: >-
API design and contract-focused code review. Apply when reviewing
REST APIs, GraphQL schemas, SDK interfaces, public function signatures,
versioning, backward compatibility, and API documentation.
user-invocable: false
---
# API Design Review
Review code from an API design and contract perspective.
## Review Checklist
### Naming & Consistency
- Verify endpoint/method naming follows conventions
- Check parameter naming is clear and unambiguous
- Ensure consistent patterns across similar endpoints
- Verify HTTP methods match semantics (GET=read, POST=create, etc.)
### Request & Response Design
- Check request payloads are minimal and well-structured
- Verify response shapes are consistent across endpoints
- Ensure pagination is implemented for list endpoints
- Check filtering/sorting capabilities where needed
### Error Responses
- Verify error response format is consistent and documented
- Check HTTP status codes are semantically correct
- Ensure error messages are helpful without leaking internals
- Verify validation errors include field-level detail
### Versioning & Compatibility
- Check for breaking changes to existing contracts
- Verify backward compatibility is maintained
- Look for required fields that should be optional
- Check deprecation is properly signaled
### Documentation & Discoverability
- Verify API documentation is accurate and complete
- Check request/response examples are provided
- Ensure required vs optional parameters are clear
- Verify authentication/authorization requirements are documented
### Rate Limiting & Quotas
- Check rate limiting is applied to public endpoints
- Verify appropriate limits for different client tiers
- Ensure rate limit headers are included in responses
- Check bulk endpoints have payload size limits
## Output Format
| Category | Description |
|----------|-------------|
| Breaking | Change breaks existing clients |
| Design | API design issue affecting usability |
| Contract | Missing or ambiguous contract definition |
| Enhancement | Improvement for better developer experience |
This skill performs API design and contract-focused code reviews to catch issues before they reach clients. It evaluates REST endpoints, GraphQL schemas, SDK interfaces, and public function signatures for clarity, consistency, and backward compatibility. The goal is to reduce integration friction and prevent breaking changes.
I inspect endpoint and operation naming, HTTP methods, request/response payloads, error formats, and versioning signals. I look for consistent shapes, pagination and filtering support, documented examples, and appropriate rate-limiting behavior. Findings are categorized as Breaking, Design, Contract, or Enhancement to guide prioritization.
How do you decide if a change is Breaking vs Design?
A Breaking issue changes the contract clients rely on (renamed/removed fields, altered types, or behavioral changes). Design covers usability or consistency problems that don't immediately break clients.
Do you validate runtime behavior or only interfaces?
Focus is on contracts and design. I review schemas, signatures, examples, and docs. Runtime testing and performance checks should be added separately.