agentleFS
qiuskyeqiuskye/claude-skills/skills/changelog-pro/SKILL.md

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

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
  1. Very specific:

    If this prints a tag, use it as BASE — but first validate it.

    line 33
  2. Very specific:

    If there are no tags (BASE is empty), fall back to the first commit:

    line 43
  3. Very specific:

    If the user supplied a --since date instead (e.g.

    line 47
  4. Distinctive:

    Never invent entries that are not in it.

    line 65
  5. Very specific:

    Add a compare link under the version heading, using the resolved $BASE value: https://github.com/OWNER/REPO/compare/$BASE...HEAD (use the …

    line 116
  6. Very specific:

    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.

    line 119
  7. Very specific:

    Every bullet must cite at least one real short hash in parentheses at the end of the line: - Added dark mode toggle (a1b2c3d).

    line 136
  8. Distinctive:

    After drafting, re-read the Step 2 output and cross-check every line of the draft against it:

    line 138
  9. Distinctive:

    Never merge two unrelated commits into one invented "summary" feature.

    line 143
  10. Distinctive:

    Follow the Keep a Changelog format:

    line 152
  11. Very specific:

    Not releasing → merge the bullets into the existing ## [Unreleased] section.

    line 158
  12. Distinctive:

    Never duplicate: before inserting, check whether a bullet citing the same hash already exists in the target section.

    line 160
  13. Very specific:

    If CHANGELOG.md does not exist, create it with the standard Keep a Changelog header, then the new section.

    line 162
  14. Distinctive:

    When the user asks for a changelog of a single package/app, scope every git log invocation with a pathspec:

    line 179
  15. Very specific:

    Always quote both the ref ("$BASE") and the pathspec ("$PATH_SPEC") — see the SECURITY note above.

    line 188
  16. Very specific:

    Write to the package's own CHANGELOG.md if one exists there.

    line 196

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 --since date to diff from. Default: resolved in Step 1.
  • AUDIENCE — user (default), dev, or marketing. 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 like v5-$(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 (BASE is empty), fall back to the first commit:
    BASE="$(git rev-list --max-parents=0 HEAD | tail -1)"
  • If the user supplied a --since date 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"..HEAD range.

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):

PrefixSectionOrder
! after type, or footer BREAKING CHANGE: in body🚨 Breaking Changes1 (always at the very top)
feat✨ Features2
fix🐛 Fixes3
perf⚡ Performance4
refactor🔧 Internal5
docs, chore, ci, build, test, styleExcluded — 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 with Merge ).
  • 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 origin

Normalize it to https://github.com/OWNER/REPO (strip .git, convert git@github.com:OWNER/REPO.git SSH form). Then:

  • Replace every #123 issue/PR reference in bullets with [#123](https://github.com/OWNER/REPO/issues/123).
  • Add a compare link under the version heading, using the resolved $BASE value: https://github.com/OWNER/REPO/compare/$BASE...HEAD (use the new tag instead of HEAD if the user named one).
  • 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.

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)

  1. Every bullet must cite at least one real short hash in parentheses at the end of the line: - Added dark mode toggle (a1b2c3d).
  2. 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.
  3. 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.md exists:
    • Releasing a version → insert a new ## [X.Y.Z] - YYYY-MM-DD section 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.
  • If CHANGELOG.md does 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

AUDIENCEToneIncluded sections
user (default)Plain language, benefit-oriented, no internal jargonBreaking, Features, Fixes, Performance
devTechnical, keeps scopes and refactor detailsAll sections, including Internal and docs/chore/ci/build
marketingEnthusiastic but factual highlights, 3–6 bullets maxFeatures 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.