changelog-pro
Skill1 starsChanged 6 months agoMITView on GitHub
Generates reliable, hallucination-free changelogs and release notes directly from git history, with Conventional Commits parsing, noise filtering, and a semver suggestion. Use when the user asks for a "changelog", "release notes", or "what has changed since" a tag, commit, or date.
- Deletes or force-pushes
In this repository4 other files it gives its agents.
- eda-quicklookSkill
- notebook-polishSkill
- repo-onboardSkill
- token-dietSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 6 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 33
If this prints a tag, use it as BASE — but first validate it.
- Very specific: line 43
If there are no tags (BASE is empty), fall back to the first commit:
- Very specific: line 47
If the user supplied a --since date instead (e.g.
- Distinctive: line 65
Never invent entries that are not in it.
- Very specific: line 116
Add a compare link under the version heading, using the resolved $BASE value: https://github.com/OWNER/REPO/compare/$BASE...HEAD (use the …
- Very specific: line 119
If the remote is not GitHub (or there is no remote), keep plain-text #123 references and omit the compare link — do not fabricate URLs.
- Very specific: line 136
Every bullet must cite at least one real short hash in parentheses at the end of the line: - Added dark mode toggle (a1b2c3d).
- Distinctive: line 138
After drafting, re-read the Step 2 output and cross-check every line of the draft against it:
- Distinctive: line 143
Never merge two unrelated commits into one invented "summary" feature.
- Distinctive: line 152
Follow the Keep a Changelog format:
- Very specific: line 158
Not releasing → merge the bullets into the existing ## [Unreleased] section.
- Distinctive: line 160
Never duplicate: before inserting, check whether a bullet citing the same hash already exists in the target section.
- Very specific: line 162
If CHANGELOG.md does not exist, create it with the standard Keep a Changelog header, then the new section.
- Distinctive: line 179
When the user asks for a changelog of a single package/app, scope every git log invocation with a pathspec:
- Very specific: line 188
Always quote both the ref ("$BASE") and the pathspec ("$PATH_SPEC") — see the SECURITY note above.
- Very specific: line 196
Write to the package's own CHANGELOG.md if one exists there.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
changelog-pro
Produce a changelog that is fully traceable to real commits. Every line in the output must map to at least one actual commit hash. Follow this pipeline as a deterministic sequence — do not skip, reorder, or improvise steps.
Inputs (optional, ask only if ambiguous)
BASE— a tag, commit, or--sincedate to diff from. Default: resolved in Step 1.AUDIENCE—user(default),dev, ormarketing. See "Audience modes".PATH— a subdirectory for monorepo scoping. See "Monorepo support".
SECURITY — never interpolate refs or paths unquoted. Git tag/ref names can contain shell metacharacters (
$, backtick,(,),|,>,<, spaces). A malicious tag likev5-$(rm -rf ~)would execute code if pasted into an unquoted command. Always assign refs/paths/dates to a shell variable, wrap every use in double quotes ("$BASE","$PATH","$DATE"), and validate any ref before using it (see Step 1). Do not improvise the commands below.
Pipeline
Step 1 — Resolve the base ref
BASE="$(git describe --tags --abbrev=0 2>/dev/null)"- If this prints a tag, use it as
BASE— but first validate it. Reject any ref containing shell metacharacters, then confirm it points at a real commit:if printf '%s' "$BASE" | grep -q '[$`|<>()[:space:]]'; then echo "Refusing unsafe ref: $BASE" >&2; exit 1 fi git rev-parse --verify --quiet -- "$BASE^{commit}" >/dev/null || { echo "Not a valid commit: $BASE" >&2; exit 1 } - If there are no tags (
BASEis empty), fall back to the first commit:BASE="$(git rev-list --max-parents=0 HEAD | tail -1)" - If the user supplied a
--sincedate instead (e.g. "what changed since last Monday"), assign it to a variable and quote it in Step 2 (DATE="last Monday"; git log --since="$DATE" ...), skipping the"$BASE"..HEADrange.
Step 2 — Collect the raw commit data
git log "$BASE"..HEAD --no-merges --pretty=format:'%h%x1f%an%x1f%s%x1f%b%x1e'Fields are: short hash, author name, subject, body — separated by the unit
separator \x1f (%x1f), and each commit record terminated by the record
separator \x1e (%x1e). These control characters never appear in normal
commit text, so they survive multiline bodies (%b) that contain | or
newlines. Parse by splitting the whole output on \x1e into records, then each
record on \x1f into the 4 fields; a single record may span multiple lines.
This output is the single source of truth for the rest of the pipeline.
Never invent entries that are not in it.
For monorepo scoping, append -- "$PATH" (quoted; see "Monorepo support").
Step 3 — Parse Conventional Commits into sections
Classify each commit by its subject prefix (type(scope): message):
| Prefix | Section | Order |
! after type, or footer BREAKING CHANGE: in body | 🚨 Breaking Changes | 1 (always at the very top) |
feat | ✨ Features | 2 |
fix | 🐛 Fixes | 3 |
perf | ⚡ Performance | 4 |
refactor | 🔧 Internal | 5 |
docs, chore, ci, build, test, style | Excluded — include only for AUDIENCE=dev (under 🔧 Internal) | 6 |
Commits that do not follow Conventional Commits: classify by intent from the subject line (e.g. "add X" → Features, "fix Y" → Fixes); if genuinely unclear, put them under 🔧 Internal rather than guessing a user-facing meaning.
Rewrite each subject as a clear, past-or-present-tense bullet. Keep the scope as
a bold prefix when it adds context: **auth:** added session refresh.
Step 4 — Filter noise
Drop entirely:
- Version bump commits (
bump version,v1.2.3,release 1.2.3, changes to version files only). - Merge commits (already excluded by
--no-merges, but also drop subjects starting withMerge). - Bot commits (author contains
[bot],dependabot,renovate,github-actions).
Dependency updates that survive (human-made chore(deps) / build(deps)):
collapse them into a single line, e.g.
- Updated dependencies (abc1234, def5678, 9abcdef).
Step 5 — Resolve links
Get the repository URL once:
git remote get-url originNormalize it to https://github.com/OWNER/REPO (strip .git, convert
git@github.com:OWNER/REPO.git SSH form). Then:
- Replace every
#123issue/PR reference in bullets with[#123](https://github.com/OWNER/REPO/issues/123). - Add a compare link under the version heading, using the resolved
$BASEvalue:https://github.com/OWNER/REPO/compare/$BASE...HEAD(use the new tag instead ofHEADif the user named one). - If the remote is not GitHub (or there is no remote), keep plain-text
#123references and omit the compare link — do not fabricate URLs.
Step 6 — Suggest a semver bump
Based on the sections that ended up non-empty:
- Any 🚨 Breaking Changes → major
- Else any ✨ Features → minor
- Else → patch
Report the suggestion explicitly, e.g. "Suggested bump: 1.4.2 → 1.5.0 (minor: new features, no breaking changes)". If the project is pre-1.0, note that breaking changes conventionally bump the minor instead.
Step 7 — Anti-hallucination verification (mandatory)
- Every bullet must cite at least one real short hash in parentheses at the
end of the line:
- Added dark mode toggle (a1b2c3d). - After drafting, re-read the Step 2 output and cross-check every line of
the draft against it:
- Hash not present in the git log → delete the bullet.
- Bullet describes something the cited commit does not contain → rewrite it to match the commit, or delete it.
- Never merge two unrelated commits into one invented "summary" feature. A bullet may cite multiple hashes only when the commits are genuinely the same change (e.g. a fix and its follow-up).
This step is not optional. A shorter, verified changelog beats a richer, speculative one.
Step 8 — Idempotent write to CHANGELOG.md
Follow the Keep a Changelog format:
- If
CHANGELOG.mdexists:- Releasing a version → insert a new
## [X.Y.Z] - YYYY-MM-DDsection directly below the## [Unreleased]heading (create[Unreleased]if missing). - Not releasing → merge the bullets into the existing
## [Unreleased]section. - Never duplicate: before inserting, check whether a bullet citing the same hash already exists in the target section; skip those.
- Releasing a version → insert a new
- If
CHANGELOG.mddoes not exist, create it with the standard Keep a Changelog header, then the new section. - Show the user the final rendered section before (or while) writing it.
Audience modes
AUDIENCE | Tone | Included sections |
user (default) | Plain language, benefit-oriented, no internal jargon | Breaking, Features, Fixes, Performance |
dev | Technical, keeps scopes and refactor details | All sections, including Internal and docs/chore/ci/build |
marketing | Enthusiastic but factual highlights, 3–6 bullets max | Features and major Fixes only; no hashes in the prose, but keep a hash-cited appendix for verification |
Even in marketing mode, Step 7 still applies internally: do not announce
anything that lacks a backing commit.
Monorepo support
When the user asks for a changelog of a single package/app, scope every
git log invocation with a pathspec:
PATH_SPEC="packages/my-app"
git log "$BASE"..HEAD --no-merges \
--pretty=format:'%h%x1f%an%x1f%s%x1f%b%x1e' -- "$PATH_SPEC"Always quote both the ref ("$BASE") and the pathspec ("$PATH_SPEC") — see the
SECURITY note above; a path is just as injectable as a ref.
Also prefer package-scoped tags (my-app@1.2.0, my-app-v1.2.0) as BASE when
they exist (validate them exactly as in Step 1):
BASE="$(git describe --tags --abbrev=0 --match 'my-app*' 2>/dev/null)"Write to the package's own CHANGELOG.md if one exists there.
Credits
The idea for this skill is inspired by changelog-generator from
ComposioHQ/awesome-claude-skills.
That project ships without a license, so this skill is a clean-room
reimplementation written from scratch — no text or structure was copied.
Formatting conventions follow keepachangelog.com
and Conventional Commits.
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.

