api-review
Use when reviewing API routes, schemas, errors, webhooks, auth boundaries, or developer experience.
SKILL.md.claude/skills/api-review/SKILL.md
GitHubAPI Review
Purpose
Review APIs for consistency, safety, and usability.
When To Use
Use for endpoint changes, webhook handlers, OpenAPI docs, SDK-facing behavior, and integration work.
When Not To Use
Do not use for purely visual frontend changes.
Required Reading
Read:
.apt/standards/installable-summaries/api-standards.md.docs/project-context.mdwhen present.- Route handlers, middleware, schemas, validators, and error helpers.
- API docs, OpenAPI files, examples, and SDK-facing code.
- Tests for routes, webhooks, and integration behavior.
- Environment and secret handling for external APIs.
Process
- Inventory endpoints, methods, request inputs, responses, and errors.
- Check naming consistency and route responsibility.
- Check validation, auth, authorization, and tenant/account boundaries.
- Check status codes, error shape, and client-facing messages.
- Check idempotency, retries, timeout behavior, and webhook duplicate delivery.
- Check logs for sensitive data exposure.
- Compare docs and tests against actual behavior.
Output Format
Return findings first, ordered by severity, with file references. Include open questions, validation gaps, suggested fixes, and tests to add.
Validation Checklist
- Contract changes are documented.
- Auth and errors are explicit.
- Webhooks and retries are safe.
- Sensitive values are not logged.
- Tests cover critical success and failure paths.
- Docs match implementation.