/devops-skills:release-versioning-and-changelog-automationfrom devops-skills
Establishes SemVer or CalVer versioning and automates changelog generation and release tagging from commit history using Conventional Commits and tools like semantic-release or release-please.
Ships in devops-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.
None: SKILL.md is the whole skill.
A version number is a promise: consumers of a library, API, or service use it to decide whether an upgrade is safe. When versioning is inconsistent (manually chosen, disconnected from what actually changed) or changelogs are stale/hand-written-after-the-fact, that promise breaks — consumers either upgrade blindly into a breaking change or avoid upgrading at all out of distrust. This skill covers deriving version numbers and changelogs automatically and consistently from commit history, so every release carries an accurate, machine-verifiable account of what changed and how risky the upgrade is.
feat:, fix:, feat!:/BREAKING CHANGE:,
chore:, etc.) is the most common because tooling (semantic-release,
release-please, commitlint) is built around it, but any structured
format works if it distinguishes breaking/feature/fix changes.semantic-release (npm package, but works for
any language's release artifact, not just JS); or release-please (Go
binary/GitHub Action, language-agnostic) as an alternative with a
slightly different model (it opens a standing "Release PR" that
accumulates changes, rather than releasing on every merge).MAJOR.MINOR.PATCH) suits libraries/APIs where consumers reason about
compatibility; CalVer (YYYY.MM.PATCH or similar) suits products/
services released on a cadence where "compatibility" is less the point
than "when was this built."commitlint (or equivalent) wired into CI/pre-commit if you want
malformed commit messages caught before they break automated version
inference, rather than discovered at release time.Adopt Conventional Commits as the structured input automation will parse:
feat(auth): add OAuth2 device code flow
fix(billing): correct rounding in tax calculation
feat(api)!: remove deprecated /v1/users endpoint
BREAKING CHANGE: /v1/users is removed; use /v2/users instead.
feat → minor bump, fix → patch bump, !/BREAKING CHANGE: footer
→ major bump. Enforce format with commitlint in a commit-msg hook or
CI check so bad commits are caught at PR time, not discovered when a
release computes the wrong version.
Configure semantic-release for "release on every merge to main" model:
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
["@semantic-release/npm", { "npmPublish": true }],
"@semantic-release/github",
["@semantic-release/git", {
"assets": ["CHANGELOG.md", "package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]"
}]
]
}
Run it as a dedicated CI job after tests pass on main:
release:
needs: [verify]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions: { contents: write, issues: write, pull-requests: write }
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: actions/setup-node@v4
with: { node-version: "20" }
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
fetch-depth: 0 is required — semantic-release needs full commit
history to compute the next version, not a shallow clone.
Or configure release-please for a "standing release PR" model, which is often easier to review before anything ships (the PR itself is the changelog preview):
- uses: googleapis/release-please-action@v4
with:
release-type: node
target-branch: main
Every merge to main updates a long-lived "chore(main): release
1.5.0" PR with the accumulated changelog; merging that PR is what
actually cuts the tag/release. This suits teams wanting a deliberate
"yes, ship this batch" moment rather than releasing on every merge.
For a monorepo with multiple independently-versioned packages, use
a tool that understands package boundaries — semantic-release with
semantic-release-monorepo extensions, release-please's manifest
mode, or Changesets (common in JS monorepos: contributors add a small
.changeset/*.md describing the change and bump type per affected
package, and a bot batches them into per-package releases).
Publish the changelog and artifact together, atomically. The
release job should tag Git, generate/commit CHANGELOG.md, publish
the package/image (pinned to that exact version — see
container-build-and-release),
and create the GitHub/GitLab release entry as one coordinated job —
not as separate manual steps that can drift out of sync (e.g., a tag
exists but the changelog wasn't updated, or vice versa).
Surface breaking changes prominently, not buried mid-changelog.
Most changelog generators already group by type (Features, Bug Fixes,
BREAKING CHANGES) — verify the BREAKING CHANGES section renders
first/most visibly in the generated notes, since that's the section
consumers most need before upgrading.
package.json, pyproject.toml).0.x.y releases are conventionally allowed to break on minor bumps) —
document that explicitly so consumers aren't misled.CHANGELOG.md), not only in a
release platform's UI, so it's versioned alongside the code and
diffable across releases.2026.07.3) so two releases in the same period remain
orderable, and still generate a changelog — CalVer solves "when," not
"what changed."Symptom: semantic-release computes a version bump that doesn't
match what the team expected (e.g., a release that should have been
major only bumps minor).
Fix: Check the actual commit messages since the last release for
the !/BREAKING CHANGE: marker — a breaking change described only in
prose without the structured marker will not be detected as breaking by
the commit-analyzer plugin, regardless of how the PR description reads.
Symptom: The changelog and the published package version disagree (changelog says 1.5.0, but the published package is still 1.4.2). Fix: The release steps ran out of order or partially failed — make tagging, changelog commit, and publish part of one atomic job/plugin chain (as semantic-release's plugin pipeline does) rather than separate jobs that can fail independently and leave things half-updated.
Symptom: A squash-merged PR's commit message on main is just the
PR title, losing the granular Conventional Commit messages from
individual commits within the PR.
Fix: Decide deliberately whether squash-merge is compatible with
your setup — if squashing, enforce that the PR title itself follows
Conventional Commits format (many teams add a commitlint/PR-title-lint
check specifically for this), since that becomes the only commit
message automation ever sees.
Symptom: semantic-release runs but produces no release at all,
with no clear error.
Fix: Confirm the checkout step used fetch-depth: 0 (full history)
— a shallow clone frequently causes the commit-analyzer to see no
releasable commits since it can't walk back to the last tag.
Symptom: Consumers of a library keep getting broken by "minor"
version bumps.
Fix: Audit recent releases for commits marked feat that actually
removed or changed existing behavior without a !/BREAKING CHANGE:
marker — this is a commit-discipline problem, not a tooling problem;
retrain contributors (and consider a PR template reminder) on when a
change is actually breaking under SemVer.
Scenario: payments-api uses semantic-release on every merge to
main. Three PRs merge in sequence:
fix(billing): correct rounding in tax calculation → merges, triggers
release: 1.4.1 → 1.4.2. Changelog gets a new "Bug Fixes" entry.feat(webhooks): add support for retry-after header → merges,
triggers release: 1.4.2 → 1.5.0. Changelog gets a "Features" entry.feat(api)!: remove deprecated /v1/users endpoint with a
BREAKING CHANGE: /v1/users removed; use /v2/users. footer → merges,
triggers release: 1.5.0 → 2.0.0. The generated CHANGELOG.md
places a BREAKING CHANGES section at the top of the 2.0.0 entry.Resulting CHANGELOG.md excerpt:
## [2.0.0](.../compare/v1.5.0...v2.0.0) (2026-07-28)
### ⚠ BREAKING CHANGES
* **api:** /v1/users is removed; use /v2/users instead.
### Features
* **api:** remove deprecated /v1/users endpoint
## [1.5.0](.../compare/v1.4.2...v1.5.0) (2026-07-20)
### Features
* **webhooks:** add support for retry-after header
## [1.4.2](.../compare/v1.4.1...v1.4.2) (2026-07-18)
### Bug Fixes
* **billing:** correct rounding in tax calculation
Each release is tagged in Git (v2.0.0, etc.), the container image is
built and pushed with the matching immutable tag (see
container-build-and-release),
and consumers evaluating the upgrade from 1.5.0 to 2.0.0 can see
immediately, from the changelog alone, that a breaking API removal is
involved — without reading a single raw commit.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin devops-skills16 skills in this plugin
/artifact-and-dependency-managementManages build artifacts and third-party dependencies through a private registry/proxy with lockfiles, version pinning, retention policies, and automated update workflows. Use when the user asks to "set up an artifact repository," "configure a package registry proxy/mirror," "pin/lock dependency versions," "clean up old artifacts," "handle a dependency update / Dependabot-Renovate PR," or "avoid a left-pad-style supply-chain incident."
/blue-green-canary-deploymentsDesigns and executes progressive delivery strategies — blue-green cutover, canary rollout, and traffic-shifted releases — with automated health checks and rollback triggers, typically on Kubernetes. Use when the user asks to "reduce deployment risk," "set up canary/blue-green deployments," "do a zero-downtime release," "gradually shift traffic to a new version," or "automatically roll back a bad deploy."
/ci-access-and-credential-lifecycle-managementManages the lifecycle of one-off/temporary repo and environment access grants and CI service-account credentials — granting time-boxed access for a specific task, revoking it reliably when the task ends, and rotating CI service-account tokens/keys before they expire or become stale. Use when the user asks to "give a contractor temporary repo access," "grant one-off access to the production environment," "rotate our CI service account token/API key," "find and revoke stale CI credentials," or "our CI token is about to expire, what do we do."
/ci-cd-pipeline-designDesigns and troubleshoots CI/CD pipelines (GitHub Actions, GitLab CI, or equivalent) including stage layout, caching, parallelization, quality gates, and secrets handling. Use when the user asks to "set up a CI/CD pipeline," "add a build/test/deploy workflow," "fix a failing pipeline stage," "speed up CI," "add branch protection / required checks," or "design a deployment pipeline" for an application or infrastructure repo.
/container-build-and-releaseBuilds, tags, scans, and publishes container images with reproducible, minimal, multi-stage Dockerfiles and a defensible tagging/release scheme. Use when the user asks to "write a Dockerfile," "reduce image size," "set up multi-arch builds," "tag and push a container image," "add image scanning to the pipeline," or "publish a release image to a registry."
/devops-delivery-metrics-and-dora-analysisMeasures and interprets the DORA four keys — deployment frequency, lead time for changes, mean time to restore (MTTR), and change failure rate — including how to compute each one correctly, common measurement pitfalls (vanity metrics, gaming the numbers, misclassifying a rollback), and how to use the results to drive process improvement rather than individual blame. Use when the user asks to "set up DORA metrics," "measure our deployment frequency/lead time," "what's our change failure rate," "are we an elite/high/medium/low performer," or "use delivery metrics to improve, not to blame the team."
Other plugins' skills for the same job