home / skills / velcrafting / codex-skills / compatibility-check
This skill assesses API compatibility between versions, classifies as compatible, breaking, or unsafe, and lists breaking changes for informed shipping.
npx playbooks add skill velcrafting/codex-skills --skill compatibility-checkReview the files below or copy the command above to add this skill to your agents.
---
name: compatibility-check
description: Validate API compatibility across versions or consumers.
metadata:
short-description: API compatibility gate
layer: api
mode: read-only
idempotent: true
---
# Skill: api/compatibility-check
## Purpose
Determine whether an API change is:
- backward-compatible
- conditionally compatible
- breaking
And make that status explicit before shipping.
---
## Inputs
- Old contract
- New contract
- Known consumers (if available)
---
## Outputs
- Compatibility assessment:
- compatible / breaking / unsafe
- Explicit list of breaking changes (if any)
- Recommendation:
- proceed
- version
- block
---
## Non-goals
- Modifying contracts
- Updating clients
- Implementing migrations
---
## Workflow
1) Compare old vs new contract shapes.
2) Identify removed or behaviorally changed fields.
3) Assess consumer impact.
4) Emit a clear compatibility verdict.
---
## Checks
- All removals and type changes enumerated
- Verdict is explicit and justified
---
## Failure modes
- Missing baseline contract → block and request one.
- Ambiguous change → recommend `meta/spec-sculptor`.
---
## Telemetry
Log:
- skill: `api/compatibility-check`
- verdict
- affected_consumers
- outcome
This skill validates API compatibility across versions or known consumers to determine whether changes are backward-compatible, conditionally compatible, or breaking. It produces a clear verdict, enumerates breaking changes when present, and gives an action recommendation before shipping. The goal is to make compatibility decisions explicit and auditable.
The skill compares an existing (old) contract with a new contract shape and enumerates removals, type changes, and behavioral differences. If known consumers are provided, it maps changes to affected consumers and assesses impact. It then emits a verdict (compatible / breaking / unsafe), lists concrete breaking changes, and recommends an outcome (proceed / version / block).
What inputs are required?
An old contract and a new contract are required; supplying known consumers is optional but recommended for impact assessment.
What happens if the baseline contract is missing?
The check blocks and requests a baseline; without a baseline the skill cannot determine compatibility reliably.
How are ambiguous changes handled?
Ambiguous or behaviorally complex changes are marked unsafe and the skill recommends consulting spec maintainers or a spec-sculptor process.