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

  1. Load both OpenAPI documents (JSON).
  2. Extract operations indexed by (path, method).
  3. 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.
  4. Label changes as breaking, non_breaking, or unknown_risk.
Installs
11
First Seen
May 10, 2026
api-contract-diff — sisodiabhumca/agent-skills