Stats
Actions
Tags
From clarc
Detects breaking changes in changed OpenAPI, GraphQL, AsyncAPI, and Protobuf files, classifies them as BREAKING/NON-BREAKING/ADDITIVE, assesses consumer impact, and generates migration plans.
How this command is triggered — by the user, by Claude, or both
Slash command
/clarc:contract-reviewThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Contract Review Detect whether API changes break existing consumers before they reach production. ## Usage Pass `$ARGUMENTS` as the API type to narrow scope. Without arguments, all changed API definitions are reviewed. ## What This Command Does 1. **Detect changed API files** — OpenAPI YAML, AsyncAPI, GraphQL schema, Protobuf 2. **Classify each change** — BREAKING, NON-BREAKING, or ADDITIVE 3. **Identify consumer impact** — which consumers are affected and how 4. **Produce migration plan** — versioning strategy, deprecation notices, changelogs ## When to Use - Before merging any ...
Detect whether API changes break existing consumers before they reach production.
/contract-review — review all changed API definition files
/contract-review openapi — OpenAPI / REST changes only
/contract-review events — AsyncAPI / event schema changes only
/contract-review graphql — GraphQL schema changes only
Pass $ARGUMENTS as the API type to narrow scope. Without arguments, all changed API definitions are reviewed.
.yaml, .yml, .graphql, .proto, or asyncapi.* files| Change | Classification |
|---|---|
| Remove field / endpoint | BREAKING |
| Rename field | BREAKING |
| Change field type | BREAKING |
| Add required field | BREAKING |
| Add optional field | ADDITIVE |
| Add new endpoint | ADDITIVE |
| Add new event type | ADDITIVE |
| Add enum value | NON-BREAKING (usually) |
| Change description only | NON-BREAKING |
| Need | Command |
|---|---|
| Contract-based consumer-driven testing | /contract-test |
| This command: break detection on existing API | /contract-review |
| Full security scan of API | /security-review |
/contract-test — set up consumer-driven contract tests to prevent future breaks automatically/security-review — if endpoint changes touch auth or input handling/dep-audit — if schema change requires consumer updates in dependenciesnpx claudepluginhub marvinrichter/clarc --plugin clarc