api-contract-review
Review backend API contracts, OpenAPI, GraphQL, protobuf, DTOs, compatibility, generated clients, status codes, validation, and migration impact.
- License 许可
- MIT
- 最近更新
- 2026-07-24
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- api-contract-review
- description
- Review backend API contracts, OpenAPI, GraphQL, protobuf, DTOs, compatibility, generated clients, status codes, validation, and migration impact.
03 SKILL.md 正文
When to Use
- API request or response shape changes.
- OpenAPI, GraphQL, protobuf, or DTO files change.
- Generated clients or SDKs are updated.
- Status codes, validation, or error contracts change.
When NOT to Use
- Internal-only refactors with no contract change.
- Frontend-only consumption changes.
- Database-only changes without API impact.
Workflow
- Identify public and internal API boundaries.
- Check compatibility and versioning.
- Review generated clients and schemas.
- Check validation, error, and status code behavior.
- Report migration, rollout, and test requirements.
Review Steps
- Identify breaking versus additive changes.
- Check fields, enum changes, nullability, and defaults.
- Verify generated clients match source contracts.
- Check validation error stability and public documentation.
- Confirm rollout order for clients and servers.
- Require contract, integration, or compatibility tests.
Constraints
- Do not assume all consumers deploy together.
- Do not hide breaking changes inside generated diffs.
- Avoid repo-specific API governance rules.
- Keep review focused on observable contract behavior.
Expected Outputs
- Compatibility summary.
- Breaking-change risks.
- Client generation and rollout notes.
- Contract test gaps.
04 同仓库更多 Skills
skill-name
Describe what this skill reviews and when to use it.
retry-safe-worker
Review backend workers, queues, schedulers, and async jobs for retry safety, deduplication, cancellation, poison message handling, rollback, and operational recovery.
observability-review
Review backend logging, metrics, tracing, audit events, error context, alert quality, and safe diagnostic detail for production operations.
idempotency-review
Review payment APIs, retry-safe handlers, duplicate request prevention, replay responses, idempotency keys, and backend idempotency design for production retry safety.
github-actions-review
Review GitHub Actions workflows for backend CI, secret exposure, permissions, dependency install, cache safety, pinned actions, and release or deployment risk.
docker-devex
Review Docker, Compose, local dependencies, bootstrap scripts, developer ergonomics, reproducibility, security defaults, and backend local environment reliability.