API contract break detection — classifies REST, GraphQL, and event schema changes as BREAKING / NON-BREAKING / ADDITIVE and produces a migration plan. Invokes the contract-reviewer agent.
From clarcnpx claudepluginhub marvinrichter/clarc --plugin clarcDetect 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 dependencies