api-design-reviewer
Reviews REST API designs for consistency, naming conventions, versioning strategy, and error handling patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reviews REST API designs for consistency, naming conventions, versioning strategy, and error handling patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guides agents through auditing project dependencies for known vulnerabilities, outdated packages, and license compliance issues
Guides agents through test-driven development using the red-green-refactor cycle before writing implementation code
| name | api-design-reviewer |
| description | Reviews REST API designs for consistency, naming conventions, versioning strategy, and error handling patterns |
| skillctl | {"version":"1.2.0","category":"code-review","tags":["api","rest","code-review","design"],"capabilities":["read_file","read_code"]} |
Review REST API definitions for consistency and adherence to common conventions.
Activate when the user asks to review an API, adds or modifies HTTP endpoints, or designs a new service interface.
Do NOT activate for internal function signatures, gRPC/GraphQL schemas, or database queries.
/users, /orders, /invoices./users/{id}/orders.POST /orders not POST /create-order.| Method | Purpose | Idempotent | Response |
|---|---|---|---|
| GET | Read | Yes | 200 with body |
| POST | Create | No | 201 with Location header |
| PUT | Full replace | Yes | 200 or 204 |
| PATCH | Partial update | No | 200 with updated resource |
| DELETE | Remove | Yes | 204 no body |
Flag any endpoint using GET for mutations or POST for pure reads.
All errors must follow a consistent envelope:
{
"error": {
"code": "VALIDATION_FAILED",
"message": "Human-readable description",
"details": []
}
}
Check for:
code field alongside human-readable message.When check-versioning is enabled:
/v1/) or Accept header — not both.List endpoints returning unbounded collections must support pagination:
next link or cursor for the client.For each issue found, report:
Limit output to the configured max-issues count. Prioritize errors over warnings over suggestions.