release-versioning
Skill18 starsChanged 3 months agoMITView on GitHub
Discipline for release classification, version bumps, and changelogs, Conventional Commits classify the release range, SemVer computes the version from those commits, Keep a Changelog renders the result. Use when the user asks to cut a release, bump a version, write a changelog, decide if a change is a major/minor/patch, or choose a branching model for versioned releases.
In this repository33 other files it gives its agents.
- api-design-standardsSkill
- architecture-diagramSkill
- capacity-estimationSkill
- codebase-designSkill
- code-reviewSkill
- code-style-lintSkill
- dependency-upgrade-managementSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- explain-plainlySkill
- grillingSkill
- handoffSkill
- improve-codebase-architectureSkill
- incident-responseSkill
- observabilitySkill
- project-groundworkSkill
- prototypeSkill
- repo-secureSkill
- repo-shipSkill
- researchSkill
- resolving-merge-conflictsSkill
- safe-deploymentSkill
- secure-codingSkill
- spec-to-ticketsSkill
- tddSkill
- teachSkill
- test-strategySkill
- to-questionnaireSkill
- triageSkill
- wait-whatSkill
- wayfinderSkill
- wizardSkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Every commit that touches shipped behaviour is typed:
- Distinctive: line 32
Write generated commit and changelog prose without em dashes: use a comma, colon, period, or a reworded sentence instead.
- Distinctive: line 46
Never hand-pick a version number "because it feels like a big release".
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Release Versioning
The version number and changelog are derived, never chosen by feel. Conventional Commits classifies each change; that classification computes the SemVer bump; the bump renders straight into a Keep a Changelog entry. Skip a step and the other two have nothing to compute from.
Phase 1: Commit classification (Conventional Commits)
Every commit that touches shipped behaviour is typed:
<type>(<optional scope>)!: <description>
<optional body>
<optional footer(s)>| Type | Meaning | SemVer effect |
fix | bug fix | PATCH |
feat | new backwards-compatible capability | MINOR |
feat! / fix! / any type with ! or a BREAKING CHANGE: footer | incompatible API change | MAJOR |
docs, style, refactor, perf, test, build, ci, chore | no shipped behaviour change | none |
refactorandperfcarry no version bump only if the public interface is unchanged; aperfthat changes a function signature is afeator a breaking change, not aperf.- The
!and theBREAKING CHANGE:footer are the only signals that force a MAJOR bump. Do not infer "this feels big"; if nothing changed for a consumer's existing calls, it is not breaking. - One commit, one logical change. A commit mixing a
fixand an unrelatedfeatforces the classifier to guess; split it. - Write generated commit and changelog prose without em dashes: use a comma, colon, period, or a reworded sentence instead.
Done when every commit in the range to be released has an unambiguous type and, for any breaking one, a BREAKING CHANGE: footer describing what a consumer must change.
Phase 2: Version computation (SemVer)
Given MAJOR.MINOR.PATCH, and reading the range since the last release in Conventional Commit order of precedence (MAJOR beats MINOR beats PATCH; one breaking commit anywhere in the range forces MAJOR regardless of how many fixes sit next to it):
- Any breaking commit → bump MAJOR, reset MINOR and PATCH to 0.
- Else any
feat→ bump MINOR, reset PATCH to 0. - Else any
fix→ bump PATCH. - Else (only non-releasing types) → no release; do not cut one just because time passed.
- Below
1.0.0: MINOR may carry breaking changes by convention (the public API is declared unstable); state this explicitly in the project's README if relied on, since it silently overrides the table above.
Never hand-pick a version number "because it feels like a big release"; if the commits don't justify the bump, the commits are mis-typed. Fix the classification, not the number.
Phase 3: Changelog (Keep a Changelog)
Render the computed release as one dated section, changes grouped under the fixed category headings, only the categories that have entries appear:
## [1.4.0] - 2026-08-09
### Added
- <feat commits, plain-language, user-facing wording, not the raw commit message>
### Changed
### Deprecated
### Removed
### Fixed
- <fix commits>
### Security- An Unreleased section at the top of the file accumulates entries as commits land, and is renamed to the version + date at release time, never write changelog entries only at release time from a blank slate, or the entry quality degrades into "various fixes."
- Each entry is written for the consumer reading the changelog, not a copy-paste of the commit subject; "Fixed a race condition in the retry queue that could drop the last job" beats
fix(queue): race condition. - A
Securityentry is mandatory for any fix classified as a vulnerability patch, even if it could also read as aFixedbug; security fixes must be independently discoverable by someone scanning only that heading.
Phase 4: Branching model
Default to trunk-based development: one long-lived branch, short-lived feature branches (hours to a couple of days, never weeks), merged behind a feature flag if the feature isn't ready to release. State to the user, don't silently assume, when the repo's actual practice differs.
Trunk-based only holds up with all three supports in place, missing any one degrades it back into long-lived branching under a different name:
- Fast, reliable CI on every merge to trunk (if CI is slow or flaky, people start avoiding merging, which recreates long-lived branches).
- Feature flags to decouple "merged to trunk" from "visible to users": an unfinished feature merges dark, behind a flag, rather than staying on a branch.
- A merge queue or equivalent discipline keeping trunk green: a red trunk blocks everyone, so nothing merges into an already-broken trunk.
Reach for a longer-lived release-branch model (Gitflow-style) only when the project genuinely maintains multiple production versions in parallel (e.g. an SDK supporting N-1 major versions), not as a default for a single deployed service.
Done when
- Every commit in the release range has an unambiguous Conventional Commits type, and every breaking one has a
BREAKING CHANGE:footer. - The version bump is the one the commit types compute, not a hand-picked number.
- The changelog entry groups changes under the standard headings, in consumer-facing language, with a
Securityheading used wherever it applies. - The branching model in use has its three trunk-based supports in place, or the deviation is a stated, deliberate choice, not silent drift.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

