# OpenAPI Breaking-Change Gate

> Compares two OpenAPI specs and reports exactly which changes break existing API clients, with severity, fixes and migration notes.

OpenAPI Breaking-Change Gate is a free AI agent skill on Agensi by Prateek. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Prateek](https://www.agensi.io/creators/prateek)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/openapi-breaking-change-gate
- Tags: apis-backend, code-quality-review, devops-cloud

## What it does

- Compares two OpenAPI 3 specs and ranks every change
- Spots removed endpoints, fields, status codes and parameters
- Catches narrowed enums, new required fields and type changes
- Writes ordered migration notes for the consumers of your API
- Suggests the right semantic version bump
- Exits with code 1 so CI can block a breaking release

## Who it's for

- **Backend and platform teams:** Ship API changes without silently breaking client applications. Try: "Compare v1.json and v2.json and tell me if this release is safe."
- **API product owners:** Know whether a change needs a major version before announcing it. Try: "Is removing the email field from GET /users a breaking change?"
- **Developers reviewing spec pull requests:** Get a severity-ranked contract diff in seconds instead of by eye. Try: "Review this OpenAPI diff and list only the breaking changes."

## About this skill

Use this before you ship an API change. It compares your previous and new OpenAPI 3 spec and tells you, change by change, whether existing clients will break.

You get three groups — breaking, risky and safe — each with the endpoint, what changed, why it matters and what to do. Then you get ordered migration notes and a suggested semantic version bump.

The check runs locally on your two JSON spec files. Nothing is uploaded or sent anywhere.

It exits with code 1 when a breaking change is found, so the same command can gate a pull request or release pipeline.

## Requires

- Python 3.9+

## Known limitations

OpenAPI 3.x JSON only. It reports spec-level changes and cannot see runtime behavior, undocumented fields, or implementation differences. It never rewrites a spec.

## Technical details

Python 3.9+ with no third-party packages. Reads two local OpenAPI 3.x JSON files and prints a Markdown report, or JSON with --format json. Swagger 2.0 and YAML must be converted first. Exit code 1 means breaking changes were found, 0 means safe. No network access and no file writes.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the OpenAPI Breaking-Change Gate skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it work with Swagger 2.0 or YAML?

No. Convert the spec to OpenAPI 3.x JSON first, then compare.

### Does it modify my spec files?

No. The check is read-only.

### Can it block a CI pipeline?

Yes. It exits with code 1 when any breaking change is found.

### Is my API spec uploaded anywhere?

No. The comparison runs locally in your agent session.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
