api-changelog
FreeNo executable scriptsNot checkedDraft or audit the REST API changelog (docs/developers-guide/api-changelog.md) by semantically diffing the checked-in OpenAPI spec between two git refs. Use…
by metabase★ 50,742 GitHub starsAbout this skill
API changelog
Answers "what changed in the REST API between two versions, and is the changelog honest about it?"
Ground truth
resources/openapi/openapi.json is generated from the Malli endpoint schemas, so
the spec at any git ref is what the API actually was at that ref. Diff the spec,
do not read endpoint source or boot a server.
Response coverage is partial: about 199 response entries declare a real schema
and are compared, but roughly 1,700 are description-only 2XX/4XX/5XX stubs. For
an endpoint with no declared response schema, a response-shape change is
invisible here. Say so rather than implying the diff is complete.
Check the spec is fresh first - it usually is not
The self-healing CI job (.github/workflows/openapi-check.yml) only runs on PRs
labelled openapi-self-healing, so the committed spec drifts behind master by
default. Verify before trusting a diff:
./bin/mage openapi-staleness
If the source is newer, regenerate before diffing the new ref:
bun run generate-openapi # rewrites resources/openapi/openapi.json in place
This staleness check only matters when you are diffing the committed spec.
--refs (below) generates each ref's spec from its own source, so it is not
subject to this drift at all - prefer it.
When you do read a committed spec, a change present in source but absent from
that spec is a false negative: the diff will not report it, and an empty
result is indistinguishable from an API that did not change. Confirm suspected
gaps with grep -rn "defendpoint" src/.../api.clj.
Steps
Pick the refs. Default old ref = the previous release branch (
origin/release-x.63.x), new ref = the one being released (origin/release-x.64.x) ororigin/master. Confirm with the user if ambiguous.git fetch originfirst.Extract and diff:
# Preferred: generate both specs from source. ~2 min (two JVM boots), no drift. ./bin/mage openapi-diff --refs origin/release-x.63.x origin/release-x.64.x --severity breaking # Fast, but reads the committed spec, which lags source. Warns when it does. ./bin/mage openapi-diff --refs --committed origin/release-x.63.x origin/release-x.64.x # Two spec files directly. ./bin/mage openapi-diff /tmp/old.json /tmp/new.json --severity breaking--refschecks each ref out into a throwaway worktree and runs that ref's owngenerate-openapi-spec, so it is not limited to refs that carry a committed spec and never touches your checkout. Very old refs may not build with the current toolchain; it falls back to the committed spec and says so when that happens. Prefer it.--committedcompares whatever blob each ref happens to carry, and when a release branch and master share a stale one it reports far fewer findings than the API actually changed - an artifact of the spec, not of the API.
Start from the grouped view
A single upstream change can produce hundreds of findings. --grouped collapses
identical findings and sorts by blast radius, which is the shape you draft from:
./bin/mage openapi-diff --refs <old> <new> --severity breaking --grouped
On the real v63 -> master delta that turns 239 breaking findings into 113
distinct changes. The top entry spans 217 endpoints and is one PR (#82447,
closing mu/defn argument schemas) - one changelog entry, not 217.
Drop --grouped when you need the per-endpoint view to check a specific route.
A change spanning many endpoints is usually one upstream PR: write it once, name
the cause, and say which endpoints it spans. The long tail of single-endpoint
changes is where the individually-interesting entries are - the v63 -> master run
surfaced a pinned_state -> pinned-state query param rename there.
Findings are classified and sorted breaking-first.
A change is breaking when an existing caller, sending exactly what it sent before, can now fail or get a different result. That covers three cases: the API requires more of the request, provides less in the response, or behaves differently for the same request. The first two invert between request and response:
| Breaking | Not breaking | |
|---|---|---|
| Request | field or param becomes required; type, enum, or bound (minimum, minLength, pattern, ...) narrowed; additionalProperties: false added; default changed or dropped |
new optional field or param; type, enum, or bound widened; field made nullable; schema opened; default added |
| Response | field removed or no longer always returned; field may now be null; new enum value |
new field returned; field that was nullable never is |
| Endpoint | removed | added |
When the tool cannot tell, it ranks the change breaking: a false alarm costs you one look, a miss ships undocumented. Two rules follow from that, not from the definition, so check them before drafting an entry:
Install api-changelog in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the api-changelog skill do?
Draft or audit the REST API changelog (docs/developers-guide/api-changelog.md) by semantically diffing the checked-in OpenAPI spec between two git refs. Use when asked "has the API changelog been updated", "what are the breaking API changes in vNN", when cutting a release branch, or when reviewing whether a PR needs a changelog entry.
How do I install the api-changelog skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the api-changelog skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
by Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
by Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
by Anthropic