| name | api-design |
| description | Reviews and designs REST or GraphQL API contracts. Checks endpoint naming, HTTP methods, request/response schemas, authentication, error codes, versioning, and consistency across the API surface. |
| argument-hint | [path-to-api-spec-or-route-files] |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, WebSearch |
| effort | 3 |
| when_to_use | When designing or reviewing REST/GraphQL API contracts, endpoint naming, schemas, or versioning |
When this skill is invoked:
-
Read the target API spec or route files in full.
-
Identify the API type (REST, GraphQL, WebSocket) and apply appropriate standards.
-
Evaluate REST design quality (if REST):
-
Evaluate request/response schemas:
-
Evaluate authentication & authorization:
-
Evaluate error responses:
-
Evaluate versioning & backward compatibility:
-
Output the review:
## API Design Review: [API/Endpoint Name]
### REST Design: [CLEAN / ISSUES FOUND]
[List specific issues with examples]
### Schema Quality: [CLEAN / ISSUES FOUND]
[List schema inconsistencies or problems]
### Auth & Security: [SECURE / ISSUES FOUND]
[List authentication and authorization issues]
### Error Handling: [CONSISTENT / ISSUES FOUND]
[List error response problems]
### Versioning: [HANDLED / UNADDRESSED]
[Notes on breaking change risk]
### Positive Observations
[What is well-designed]
### Required Changes
[Must-fix items before shipping]
### Suggestions
[Nice-to-have improvements]
### Verdict: [APPROVED / APPROVED WITH SUGGESTIONS / CHANGES REQUIRED]
Protocol
- Question: Auto-starts from argument (path to API spec or route files); no clarification needed
- Options: Skip — single review path
- Decision: Skip — verdict is advisory
- Draft: Full review report shown in conversation only
- Approval: Skip — read-only; no files written
Output
Deliver exactly:
- Endpoint compliance score (X/Y checks passing across naming, methods, validation, errors)
- Security issues with severity — CRITICAL / HIGH / MEDIUM (or "None")
- Required changes — must fix before shipping (or "None")
- Verdict:
APPROVED / APPROVED WITH SUGGESTIONS / CHANGES REQUIRED