| name | api-contract-review |
| enabled | true |
| description | Use when performing api contract review — provides a structured review
checklist for evaluating API contracts including REST, gRPC, and GraphQL
endpoints. This template covers naming conventions, versioning, error
handling, pagination, authentication, rate limiting, and backward
compatibility to ensure APIs meet organizational standards before launch.
|
| required_connections | [{"prefix":"api-docs","label":"API Documentation Platform"}] |
| config_fields | [{"key":"api_name","label":"API Name","required":true,"placeholder":"e.g., Orders API v2"},{"key":"api_type","label":"API Type","required":true,"placeholder":"e.g., REST, gRPC, GraphQL"},{"key":"api_spec_url","label":"API Specification URL","required":false,"placeholder":"e.g., link to OpenAPI spec"}] |
| features | ["API_REVIEW","CONTRACT","ARCHITECTURE"] |
API Contract Review
Phase 1: General Design Review
Evaluate overall API design quality.
Phase 2: Endpoint Review
For each endpoint:
| Endpoint | Method | Auth | Rate Limited | Paginated | Idempotent | Cacheable |
|---|
| | Y/N | Y/N | Y/N | Y/N | Y/N |
Request Validation:
Response Design:
Phase 3: Error Handling Review
Error Response Checklist:
| Status Code | Usage | Error Code Defined | Message Template |
|---|
| 400 | Bad Request | | |
| 401 | Unauthorized | | |
| 403 | Forbidden | | |
| 404 | Not Found | | |
| 409 | Conflict | | |
| 422 | Unprocessable | | |
| 429 | Rate Limited | | |
| 500 | Internal Error | | |
Phase 4: Backward Compatibility Assessment
Breaking Change Checklist:
| Change | Breaking? | Migration Path | Timeline |
|---|
| Y/N | | |
Phase 5: Security and Performance Review
Security:
Performance:
Counter-Rationalizations
| Shortcut | Counter | Why |
|---|
| "We can skip some steps for this case" | Adapt the workflow steps, don't skip them | Skipped steps are where incidents and oversights originate |
| "The user seems to already know what to do" | Complete all workflow phases with the user | The workflow catches blind spots that experience alone misses |
| "This is a minor case, full process is overkill" | Scale the process down, don't turn it off | Minor cases become major when unstructured; the process scales, not disappears |
| "I'll fill in the details later" | Complete each section before moving on | Deferred details are forgotten; real-time capture is more accurate |
| "The template output isn't necessary" | Always produce the structured output format | Structured output enables comparison, audit trails, and handoff to other teams |
Output Format
Summary
- API: ___
- Type: ___
- Endpoints reviewed: ___
- Issues found: ___ (Critical: ___, High: ___, Medium: ___, Low: ___)
- Backward compatible: Y/N
Action Items