Skip to content
Back to skills

Review Api Breaking Changes

ASecurity

Reviews an API diff or spec for changes that break existing clients, such as removed fields, changed semantics, new defaults, error changes and versioning gaps. Use before releasing.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 26, 2026
ai-agentsgocode-reviewapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add hermes-hq/hodios-dist --skill review-api-breaking-changes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review Api Breaking Changes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Review Api Breaking Changes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hermes-hq-review-api-breaking-changes-hodios-dist/badge)](https://www.skillsdirectory.com/skills/hermes-hq-review-api-breaking-changes-hodios-dist)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: review-api-breaking-changes
description: Reviews an API diff or spec for changes that break existing clients, such as removed fields, changed semantics, new defaults, error changes and versioning gaps. Use before releasing.
license: CC0-1.0
metadata:
  version: 1.0.0
  kind: prompt
  category: code-review
  source: https://hermes-ide.com/prompts/review-api-breaking-changes
  catalog: 2026.1014.1
---

# Review an API change for breaking changes

## Inputs

- [DIFF_OR_SPEC] (required): The diff of the API definition (OpenAPI, GraphQL SDL, protobuf, JSON Schema) or of handler code, or the before and after specs.
- [CLIENTS] (optional): Who calls the API and how tolerant they are, for example public developers, mobile apps that cannot force upgrades, or internal services deployed together.

Take each value from the invocation or the user’s message. If a required value is missing, ask for it once.

<context>
Schema diff tools catch removed fields and renamed operations. They miss the changes that break clients quietly: a field that is still there but now nullable, a default that changed, a new required request field, an enum value older clients cannot parse, a list that is now paginated, an error code that moved from 404 to 403, a stricter validation rule, or a different ordering that a client relied on. Whether a change breaks depends on the clients: an old mobile app version in the field cannot be upgraded, while internal services deployed in lockstep can absorb more.
</context>

<task>
Review this API change for client compatibility:
<diff_or_spec>
[DIFF_OR_SPEC]
</diff_or_spec>
Only if [CLIENTS] was provided: 
Clients: [CLIENTS]

Go through every change and classify it as breaking, risky (breaks some reasonable clients) or safe. Check at least:
1. **Removed or renamed:** operations, endpoints, fields, query parameters, enum values, headers, GraphQL types and fields, proto fields (and whether removed proto field numbers are marked `reserved`).
2. **Type and shape:** type changes, int to string ids, number precision, nullable or optional changes in either direction (response field becoming optional breaks readers; request field becoming required breaks writers), object to array, wrapping in an envelope, pagination added.
3. **Semantics:** a changed default, units, time zone, rounding, sort order, idempotency, side effects, or meaning of an existing field.
4. **Validation:** stricter formats, lengths, ranges, or newly rejected values.
5. **Errors:** changed status codes, error body shape or error codes clients branch on; new error cases on existing operations.
6. **Enums:** new values in responses (break clients that switch exhaustively unless they were told to expect unknown values).
7. **Auth and limits:** new scopes or permissions required, lower rate limits, smaller maximum page or payload sizes.
8. **Versioning:** whether the change is shipped behind a new version, a feature flag or a header, and whether the deprecation of the old behaviour is signalled.
For each breaking or risky change, give the specific client code that would fail and a compatible alternative (add a new field instead of changing one, accept both forms during a transition, version the operation, keep the old error code).
</task>

<constraints>
- Cite the exact location (path, operation, field or line) for every change you classify.
- Judge tolerance from the clients given; if none are given, assume external clients that cannot be upgraded in lockstep and say so.
- Do not call a change safe because a diff tool would; reason about semantics.
- Do not flag pure additions of optional request fields or new operations as breaking.
- Separate what you verified from what you inferred. Mark inferences as such.
- When you do not know, say "I don't know" once and state what would settle it.
</constraints>

<output_format>
## Verdict
One line: compatible | compatible with risks | breaking, and whether a version bump is required.
## Breaking changes
A table: location, change, which clients break and how, compatible alternative.
## Risky changes
Same columns.
## Safe changes
Bullets.
## Recommended path
Numbered steps to ship the intent without breaking clients, or the versioning and deprecation plan if a break is unavoidable.
## Tests to add
Contract or compatibility tests that would catch these in CI next time.
</output_format>

Files in this skill

  • SKILL.md4.3 KB
  • agents/openai.yaml316 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.