api-contract-reviewer
/api-contract-reviewer
Reviews API and event contracts for correctness, consistency, backward compatibility, error semantics, versioning and testability. Use when introducing or changing an HTTP API, event schema or client library.
- Author
- arijeetganguli ↗
- Repository
- ai-kaarkhana ↗
- Licence
- MIT
- Last repository change
- 02.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 02.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Reviews API and event contracts for correctness, consistency, backward compatibility, error semantics, versioning and testability. Use when introducing or changing an HTTP API, event schema or client library.
Original author description
Reviews API and event contracts for correctness, consistency, backward compatibility, error semantics, versioning and testability. Use when introducing or changing an HTTP API, event schema or client library.
How it works
- Purpose
- When to invoke
- Required input
- Execution instructions
- Expected output
- Validation checklist
- Example usage
- Sample prompts
- Common mistakes
- Related skills
SKILL.md preview
--- name: api-contract-reviewer description: "Reviews API and event contracts for correctness, consistency, backward compatibility, error semantics, versioning and testability. Use when introducing or changing an HTTP API, event schema or client library." license: MIT metadata: activity: architecture difficulty: intermediate frameworks: "OpenAPI, REST, events" version: "1.0" --- # API Contract Reviewer ## Purpose Protect consumers. Detect breaking changes, ambiguous semantics and missing error contracts before they ship. ## When to invoke - Adding or changing an endpoint, event, message schema or SDK. - Consumers exist that you cannot update simultaneously. - Writing contract tests or an OpenAPI description. ## Required input - Old and new contract (OpenAPI document, schema, or code). - Known consumers and their compatibility expectations. - Error handling and versioning conventions of the organisation or project. If a required input is missing, ask for it. Do not guess. ## Execution instructions 1. List operations, fields and types in the new contract; diff against the old one. 2. Classify each difference as compatible or breaking (removed or renamed field, type change, new required field, changed semantics, stricter validation, changed status code). 3. Check semantics: HTTP method safety and idempotency, status codes, pagination, filtering, ordering, time zones and formats, null versus absent. 4. Check error model: consistent structure, machine readable codes, no sensitive data in messages. 5. Check security aspects: authentication, authorisation per operation, rate limits, input limits. 6. Check evolution: versioning approach, deprecation path, unknown field tolerance. 7. Define contract tests for each documented behaviour including errors, and consumer-driven checks where relevant. ## Expected output - Contract diff with compatibility classification. - Findings: severity, location, issue, recommendation. - Contract test plan. - Migration or deprecation plan for breaking changes. ## Validation checklist - [ ] Every difference between old and new was classified. - [ ] Error responses are specified, not only success. - [ ] Idempotency and retries are addressed for unsafe operations. - [ ] Consumers affected by breaking changes are identified. - [ ] Contract tests exist or are planned for each rule. ## Example usage Input: > Change: `POST /orders` adds required field `deliveryWindow`. Illustrative output (abridged, hand-written for this guide, not captured from a model run): ```text Breaking: new required field rejects existing clients. Options: make it optional with a documented default, or introduce `/v2`. Recommend optional with default and a deprecation note. Contract tests: request without the field -> 201 (compatibility), invalid window -> 422 with `INVALID_DELIVERY_WINDOW`. ``` ## Sample prompts ```text Act as the API Contract Reviewer. Compare old and new contract below. Classify each change as compatible or breaking, review status codes, idempotency, errors, pagination and security, and propose contract tests. Old: [OLD]. New: [NEW]. Known consumers: [CONSUMERS] ``` ## Common mistakes - Treating a new required field as non-breaking. - Specifying only 200 responses. - Using 200 for errors with a body flag. - Changing semantics while keeping the same field names. ## Related skills - [Integration Test Engineer](../integration-test-engineer/SKILL.md) - [Security Reviewer](../security-reviewer/SKILL.md) - [Architecture Reviewer](../architecture-reviewer/SKILL.md) ## Related resources Handbook: - [Chapter 8: Architecture and Design](../../../handbook/08_architecture_and_design/README.md) Prompts: - [API Design Review](../../../prompts/architecture/api-design-review.md) - [Contract Testing](../../../prompts/testing/contract-testing.md) Workflows: - [Introduce a new API](../../../workflows/04_new_api.md) Examples: - [examples/typescript/README.md](../../../examples/typescript/README.md) scenario S8
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · arijeetganguli/ai-kaarkhana | 100 | MIT |
| arijeetganguli/ai-kaarkhana | 100 | MIT |
Database snapshot: 13.11.2026 · package version d47295e52564 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 3 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100api-contract-review
Review REST API contracts for HTTP semantics, versioning, backward compatibility, and response consistency. Use when user asks "review API", "check endpoints", "REST review", or before releasing API changes. - 100api-contract-changes
Change Open Agentic Catalog HTTP routes, request or response semantics, API authorization and error contracts together with OpenAPI and affected clients. Use for contract changes; running existing API tests or changing UI presentation alone uses the existing workflows. - 100rest-api-design
Use when defining or reviewing HTTP API contracts, resource operations, representations, status and error semantics, pagination, compatibility, or versioning. - 100contract-design
Design an API, event, or schema contract with compatibility as the primary concern - versioning strategy, backward compatibility, migration path for existing consumers, and failure semantics - plus a consumer impact list. Use when creating or changing anything that crosses a… - 100api-design-reviewer
Use when reviewing API designs for consistency, usability, versioning, error semantics, security, backward compatibility, and developer experience before implementation or release. - 100api-contract-engineering
Use when introducing or changing endpoints, schemas, SDKs or service contracts. Design evolvable HTTP/RPC/event interfaces with explicit failures and safe compatibility. Do not use when purely internal function with no client contract.