api-contract-diff
Installation
SKILL.md
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.