/developer-platform-skills:api-changelog-automationfrom developer-platform-skills
Designs a CI pipeline that detects breaking changes in published API contracts (OpenAPI, GraphQL SDL, protobuf, AsyncAPI), gates PRs on policy-defined breaks, and generates a structured per-version changelog feed.
Ships in developer-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You are building the machinery that notices every change to a published API contract, decides whether it breaks callers by your own written rules, stops the unapproved breaks, and writes a record integrators and their tools can read. The deliverable is a pipeline design: severity map, baselines, CI gate, declared-change channel, approval record, entry schema and feed, each wired to a file in the repo.
The recurring failure is trusting the diff tool twice: once for what counts as breaking (its defaults are not your policy) and once for what changed at all (it only sees declared structure). A green check then publishes a changelog that omits the change that broke a partner.
Boundaries:
samber/developer-platform-skills@api-versioning-policy. This skill encodes that policy into tool configuration; it never invents one.samber/developer-relations-skills@changelog-writing; the before/after upgrade guide to samber/developer-relations-skills@version-migration-guide. This skill hands them traced, structured entries.samber/developer-platform-skills@integration-health-monitoring.Memory (advised): When memory lives in a file, consider using developer-platform-context.md; if a different memory system is in use, rely on that instead. Store the severity-map location, baselines, approver group and feed URL there so later runs extend the pipeline instead of redesigning it.
Ask these before designing anything. Batch them; this is an engineering setup, not a strategy debate.
info.version, or continuous deploy with no versions? What does "a release" mean for the changelog?Question 3 gates the workflow. With no written definition, every severity choice is the tool author's opinion; route the policy to api-versioning-policy and, if the user must ship a gate first, mark every severity-map row provisional pending policy sign-off.
Pick which rungs to build before the workflow; steps 6-7 run only when the chosen rung includes them. Rank by value per unit of effort, and say the order out loud:
PR gate > release diff + declared channel > approval record > feed > usage-aware classification > version-derived changelogversion-derived > usage-aware > feed > release diff + declared channel > approval record > PR gateversion-derived > release diff + declared channel > PR gate > approval record > usage-aware > feed| Rung | You do | You get | Effort |
|---|---|---|---|
| PR gate | Diff vs merge base, fail on err, severity map | Accidental breaks stopped before merge | An hour or two, mostly reviewing the severity map |
| Release diff + declared channel | Diff vs last release, PR question, fragments | A complete record of what shipped, incl. behavior changes | Half a day plus a habit |
| Approval record | Acknowledgement rows with fingerprint, approver, link | Audit trail; entry text for every accepted break | A few hours, then per-break minutes |
| Feed | JSON + Atom with stable ids, per version | Monitoring pipelines and agents consume changes | About a day |
| Usage-aware classification | Operation-level telemetry feeding the gate | Fewer false alarms; safe removal of deprecated elements | A day or two, needs telemetry |
| Version-derived changelog | Each breaking change as a version-change record in code | Entries written at the change, impossible to omit | Weeks; only with per-version transformation |
samber/developer-platform-skills@api-reference-quality.operationIds, $ref (not inline) schemas, $ref'd oneOf branches, stable enum order. Semantic diff tools ignore key order; phantom changes come from positional and inline-versus-$ref churn, and they train reviewers to ignore the gate.Take each line of the written breaking-change definition and find the check that enforces it. Tools disagree on the same change, so never adopt a default unread:
openapi-diff and oasdiff flag it by default.graphql-inspector (suppressRemovalOfDeprecatedField) can pass it while callers still use it.Keep two files next to the spec:
severity-map.md, for humans: one row per check id - the policy line it enforces, the chosen level, the reason, and provisional while the policy is unsigned.--severity-levels file accepts only <check-id> <level> per line: no comments, no extra columns.Then:
api-major-version-not-bumped and siblings) default to INFO and never fail a build. With semver info.version, raise them to err. With date, header or URI-path versions, oasdiff skips them; the per-version baselines in step 3 do the job.deprecated, a sunset date (x-sunset), stability (x-stability-level).x-extensible-enum on that field. Pin the enum check to info only when the policy declares every response enum open; the annotation also tells SDK generators to accept unknown values.Per-paradigm flags, a CI workflow, the drift recipe, and how to give non-oasdiff findings stable fingerprints: read references/tool-configuration.md.
Each comparison answers a different question. Using one baseline for all three is the most common design error.
| Job | Compare the candidate against | Misses if you use another baseline |
|---|---|---|
| PR gate | the merge base on the default branch | Release baseline blames this PR for changes merged earlier |
| Published changelog | the spec of the last released version (tag, GA spec, deployed release) | Default-branch baseline splits one release across many tiny diffs and loses the multi-PR total |
| Drift alarm | the spec the production service actually serves, or live traffic validated against it | Both others compare documents with documents |
For date- or header-versioned APIs, diff per version: version N's spec against version N's previous release, and the new version against its predecessor. A break that ships only in a new version must appear in that version's entries and nowhere else.
When one codebase serves every version through transformers or version gates, produce one spec per supported version at build time: run the generator once per version (version header, build flag or transformer-aware export) and commit each as specs/<version>.yaml. The release baseline for version N is specs/N.yaml at the previous release tag. A diff in a version that was supposed to be frozen is itself a defect.
err. Show warn in the PR summary as "potentially breaking", never silently drop it.--stability-level (default beta) excludes draft and alpha operations; exclude internal ones by extension name (--filter-extension x-internal) or path (--unmatch-path). An operation that gains the internal marker disappears from the filtered diff as a removal: callers lose it, so it stays breaking.err: put the spec, severity-map.md and the acknowledgement file under one code-owners rule with required review. The approver field records who reviewed; it enforces nothing, and without the rule an author approves their own break in the same PR.considerUsage) only after the static gate works. Usage windows miss quiet clients: monthly jobs, mobile apps, SDKs with no recent traffic. Set the window to the longest client cycle you know of, not the tool default.A structural diff cannot see behavior. Give authors a second channel and merge it into the same changelog:
The full blind-spot list and the fragment format: read references/blind-spots-and-declared-changes.md.
An ignore file without a record is where breaking changes disappear. Every acknowledgement row carries:
historic (audited, origin unknown),Fingerprints move when the baseline moves (PR merge base versus release tag). The release run re-matches a PR-time approval only on check, operation, path and exact text, and only when a single finding has that location; any other match stays unapproved and needs explicit sign-off.
Spec corrections still produce a changelog entry: callers were told something false and deserve to learn the truth. Review the acknowledgement file each release; a row whose change no longer appears is deleted, never left to match a future change.
Generate the tool's ignore file from the acknowledgement rows in the PR job, before the gate (python3 scripts/build-entries.py --acks acks.json --ignore-out oasdiff-err-ignore.txt); never edit it by hand. Commit an empty acknowledgement list and ignore file at setup.
An existing hand-edited ignore file is audited before the new gate goes live, line by line:
historic when nobody knows why it was added), ticket if one exists, approver unknown - audited <date> if nobody signed it.Freeze new hand-added lines from the day the audit starts, or the audit never ends.
oasdiff changelog -f json, or another tool's output mapped to the same fields), fragments, acknowledgement rows. Run once per spec: fingerprints carry no file name. Keep the tool's wording beside any human summary, and attach the author's narrative from the PR or fragment.breaking, potentially-breaking, non-breaking), its source (diff:<check-id> or declared:<fragment-id>), the fingerprints it covers, the affected operations, the action required, and the sunset date when one applies.python3 scripts/build-entries.py --changelog changelog.json --api-version 2026-07-01 \
--date 2026-07-01 --fragments changes/ --acks acks.json --out entries.json \
--ignore-out oasdiff-err-ignore.txt
It writes skeleton entries with summary and action_required left for a human, groups shared-schema findings, rejects fragments with a non-canonical classification or kind, and prints a notice for each break no acknowledgement covers. Entry schema, feed shapes and good/bad examples: read references/entry-and-feed-format.md.
python3 scripts/check-entry-trace.py --diff changelog.json --entries entries.json \
--fragments changes/ --api-version 2026-07-01 --acks acks.json
It fails when an entry traces to no finding or fragment, changes the classification of what it covers, carries another version, or lacks an action; when a breaking or potentially breaking finding or fragment has no entry; and when a breaking entry's approval is missing or does not cover all its sources. Both scripts need Python 3.8+ and the standard library only; exit 0 means pass, 1 findings to fix, 2 unusable input.
changelog-writing for prose, and each breaking entry to version-migration-guide when callers need before/after code.| Rationalization | Why it is wrong |
|---|---|
| "The diff is green, so nothing breaking shipped." | The diff saw declared structure only. Check the declared-change channel and the drift alarm. |
| "The tool's defaults are industry standard." | Tools disagree with each other and with published provider policies on enums, auth and deprecated removals. |
| "Add it to the ignore file and move on." | An unrecorded ignore hides the break from the changelog and matches future changes. Record it (step 6). |
| "It was deprecated, so removing it is safe." | Deprecation is a label. The versioning policy's sunset and usage rules decide removal; encode them with x-sunset and usage-aware checks. |
fail-on none. Fix the generator output, never the threshold.err findings per release. A rising rate means the severity map drifted from the policy or the policy from reality.samber/developer-platform-skills@public-grpc-api-design - proto package versioning and buf governance for the protobuf surface this pipeline diffs.samber/developer-platform-skills@public-graphql-api-design - additive-friendly schema design that keeps the GraphQL gate quiet.samber/developer-platform-skills@webhook-platform-design - event payload versioning whose AsyncAPI diffs this pipeline classifies.samber/developer-platform-skills@api-beta-program - beta surfaces excluded from the gate by stability level until GA.samber/developer-platform-skills@sdk-package-publishing - SDK release notes for generator-caused breaks, kept apart from API-caused entries.evals/evals.json (opens in a new tab)references/blind-spots-and-declared-changes.md (opens in a new tab)references/entry-and-feed-format.md (opens in a new tab)references/tool-configuration.md (opens in a new tab)scripts/build-entries.py (opens in a new tab)scripts/check-entry-trace.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub samber/developer-platform-skills --plugin developer-platform-skills62 skills in this plugin
/agent-integration-surfacesPlans how a SaaS or developer platform opens itself to AI agents, provider side - which agent classes may reach which surface, how an agent proves its identity and acts for a user (Web Bot Auth, delegated tokens, provision-then-claim signup), which execution path each gets, where agents find it (Context7, api-catalog) and how agent usage is counted. Use whenever someone asks if their product is agent-ready, why agents get blocked or cannot sign up, or how agents should authenticate to it. Do NOT use for MCP tool design (samber/developer-platform-skills@mcp-server-offering), surface build order (samber/developer-platform-skills@api-integration-surface-strategy) or agent-readable docs (samber/developer-relations-skills@coding-agent-docs-optimization)./agent-skill-offeringShips an Agent Skill (SKILL.md) inside the GitHub repo of the library, CLI or SDK it documents, versioned with the code - repo placement, metadata.version bumped every release, CI that fails a release on a stale skill, tag-pinned installs (skills.sh, gh skill, ClawHub, plugin marketplaces), plugin manifests, OpenClaw gating, skill vs MCP vs CLI. Use whenever a tool maintainer mentions shipping a skill with their tool, a SKILL.md for their library, keeping a skill in sync with releases, or plugin.json versions for a skill beside code - even if they never say "agent skill". Not for standalone skill collections. Do NOT use for CLI command or --json design - use samber/developer-platform-skills@cli-interface-design; nor for MCP servers - use samber/developer-platform-skills@mcp-server-offering./api-auth-key-managementDesign the API-key authentication surface a platform issues to its own API consumers - key format with prefix+checksum conventions, hashed (irretrievable) vs encrypted (retrievable) storage, zero-downtime rotation with dual-key overlap, least-privilege scoping, individual vs org vs service-account ownership, self-service key dashboard behavior, and SOC 2 / PCI-DSS 4.0 lifecycle governance. Use whenever the user mentions API keys, secret keys, key prefixes, key rotation, key scoping, or revoking keys after an employee departure - even if they never say "API key management". Provider side only, not consuming another vendor's API. Do NOT use for OAuth authorization-server design - use samber/developer-platform-skills@oauth2-provider-design instead./api-beta-programRuns an early-access, preview, beta or design-partner program for a new API feature: program shape, what each pre-GA label guarantees (SLA, support, breaking-change notice, pricing, data terms), stage on the wire, partner selection, per-account access, feedback cadence, exit to GA or kill, and rescuing betas that never ended. Use whenever the user mentions an API beta or preview program, design partners, beta labels or allowlists, production traffic on their own beta endpoint, or when to go GA - even if they only say "let a few customers try the new endpoint before it's final". Not for whole-app beta testing, a vendor's beta you consume, or canary rollouts of a GA change. Do NOT use for the stable version lifecycle - use samber/developer-platform-skills@api-versioning-policy./api-ephemeral-token-issuanceDesign the platform side of minting short-lived, narrowly scoped API tokens from the API itself - one per sandbox or AI-agent run, from hundreds to 1M+ mints per second - and expiring or revoking them on time at that scale. Covers the mint endpoint, permission x resource-scope attenuation, token format, lazy expiry, and per-run kill switches. Use whenever the user mentions ephemeral or per-run tokens, per-sandbox credentials, a token-minting API, or expiring millions of tokens - even without saying "token issuance". Provider side only, never consuming another vendor's tokens. Do NOT use for long-lived keys - use samber/developer-platform-skills@api-auth-key-management; nor user sessions, consent or refresh tokens - use samber/developer-platform-skills@oauth2-provider-design./api-error-designDesign the error surface of a public API so integrators self-serve fixes - a machine-readable error-code taxonomy (flat catalog, code/subcode, Google-style domain/reason), the RFC 9457 problem-details envelope with extension members, actionable error messages, retryability signaling (retryable flag, Retry-After), and per-endpoint error documentation with request-ID tracking. Use whenever the user mentions API error codes, an error taxonomy, RFC 9457, application/problem+json, 4xx/5xx response bodies, or confusing API error messages - even if they never say "error design". Do NOT use for client-side retry mechanics - use samber/developer-platform-skills@api-idempotency-retry - nor for incident and status-page communication - use samber/developer-platform-skills@api-status-communication instead.Other plugins' skills for the same job