Api contract diff
Production-Ready Agent Skills : product analytics, growth experiments, CRM, research synthesis, postmortems, data contracts, SaaS spend, compliance, architecture maps, and LLM eval and many more.
npx -y skills add sisodiabhumca/agent-skills --skill api-contract-diffAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Vendor-neutral skill to compare two OpenAPI 3 specifications and produce a structured contract change report with breaking-change detection.
SKILL.md
1.5 KB, as published. Nobody here has run it
When to invoke
- When you need to assess API changes between two versions of an OpenAPI 3.x spec.
- When you need to flag likely breaking changes (removed paths, removed operations, removed/changed required request fields, response schema removals).
Inputs needed
--old: Path to the older OpenAPI 3 JSON file.--new: Path to the newer OpenAPI 3 JSON file.- Optional
--out: Path to write a JSON report.
Workflow
- Load both OpenAPI documents (JSON).
- Extract operations indexed by
(path, method). - Compare:
- Added/removed paths and operations.
- Parameter additions/removals (path/query/header).
- Request body requiredness and JSON schema required properties.
- Response status codes present/removed.
- Label changes as
breaking,non_breaking, orunknown_risk.
Output format
JSON with:
summary: counts of breaking/non-breaking/unknown.breaking_changes: list of items withkind,location, anddetails.non_breaking_changes: list of items.unknown_risk_changes: list of items.
Guardrails
- Do not assume semantic meaning beyond what is expressed in OpenAPI.
- Mark schema-type changes as
unknown_riskunless clearly breaking (e.g., removed required property). - Prefer false positives over false negatives for breaking changes.
Reference code
api_contract_diff.py