agentsclimarketplace

Api contract diff

Skill sisodiabhumca/agent-skills/skills/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.

Install
npx -y skills add sisodiabhumca/agent-skills --skill api-contract-diff

Assembled 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

  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.

Output format

JSON with:

  • summary: counts of breaking/non-breaking/unknown.
  • breaking_changes: list of items with kind, location, and details.
  • 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_risk unless clearly breaking (e.g., removed required property).
  • Prefer false positives over false negatives for breaking changes.

Reference code

  • api_contract_diff.py

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.