src/main/resources/targets/claude/skills/conditional/review/x-review-api/SKILL.md
Validates REST API endpoints for RFC 7807 error responses, pagination, URL versioning, OpenAPI documentation, status codes, and DTO patterns.
npx skillsauth add edercnj/ia-dev-environment x-review-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review REST API design for compliance with best practices: RFC 7807 error responses, pagination wrappers, URL versioning, OpenAPI annotations, proper HTTP status codes, and DTO separation from domain models.
Include this skill when the project uses REST protocol.
/x-review-api merchants -- review API endpoints for a specific feature/x-review-api /api/v1/transactions -- review a specific endpoint path/x-review-api -- review all REST endpoints| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| endpoint-or-feature | String | No | (all) | Endpoint path or feature name to review |
| Pack | Files | Purpose |
|------|-------|---------|
| api-design | skills/api-design/references/api-design-principles.md | URL structure, status codes, error format, pagination |
| protocols | skills/protocols/references/rest-conventions.md | REST resource naming, HTTP methods, versioning, RFC 7807 |
Search for REST controller/resource classes:
@Path, @RestController, @Get, @app.route)Check each endpoint:
/api/v1/resources, not /api/v1/createResource)/api/v1/)/api/v1/parents/{id}/children)For each endpoint:
Check for:
Check list endpoints:
Check request/response separation:
Check for:
Summarize findings as checklist:
| Scenario | Action | |----------|--------| | No REST endpoints found | Report INFO: no endpoints discovered in the codebase | | OpenAPI dependency missing | Warn about missing documentation support | | Endpoint missing error handling | Report violation with file path and remediation guidance |
development
Documentation freshness gate: validates 6 dimensions (readme, api, adr, etc.) per PR.
testing
Conditional dep-policy gate: CVEs, licenses, versions, freshness; SARIF + report.
documentation
Incrementally updates the service or system architecture document; never regenerative.
development
Scans code and git history for leaked credentials, API keys, and tokens; SARIF output.