Changelog generator

Produce consistent, auditable release notes from Conventional Commits.

How to use it

Claude Code
  1. Run the line below. It pulls the whole folder into ~/.claude/skills/changelog-generator-2, including the files SKILL.md points to.
  2. Describe your job in plain words. Claude Code follows the skill from there.
Claude Code — installs the whole folder, not just SKILL.md
npx degit alirezarezvani/claude-skills/engineering/skills/changelog-generator#main ~/.claude/skills/changelog-generator-2

For one project only, change the path to .claude/skills/changelog-generator-2. This skill also uses CHANGELOG.md, commits.txt, generate_changelog.py, commit_linter.py — copying SKILL.md alone won't be enough. See the folder on GitHub.

Claude (web or desktop app)
  1. On this page open ⋯ → Download .md.
  2. Save it as SKILL.md in a folder, zip the folder, then Customize → Skills → + → Create skill → Upload a skill.
  3. Pick the file and Save. Claude shows the name and description and runs a security scan.
  4. Check the skill is switched on.
  5. Start a new chat and describe your job in plain words. The AI follows the skill from there.
ChatGPT or another app
  1. ChatGPT: make a Project and paste it into Instructions.
  2. Neither? Paste it at the top of a new chat — it works for that chat.
Not working?
  • Check which app you pasted it into — the steps above name the right one.
  • Some skills need the paid tier of Claude or ChatGPT.
Step-by-step guide with screenshots · Ask in the forum

Paste into Claude, ChatGPT or Cursor.

Source of Changelog generator

Show the full text204 lines
namedescription
changelog-generatorProduce consistent, auditable release notes from Conventional Commits. Separates commit parsing, semantic-bump logic, and changelog rendering for automated releases with editorial control. Use when cutting a release, generating CHANGELOG.md from git history, computing the next semantic version from commits, automating release notes in CI, or planning a hotfix/rollback. Examples: 'generate the changelog for v1.4.0', 'what version bump do these commits require', 'we need an emergency hotfix process'.

Changelog Generator

Tier: POWERFUL
Category: Engineering
Domain: Release Management / Documentation

Overview

Use this skill to produce consistent, auditable release notes from Conventional Commits. It separates commit parsing, semantic bump logic, and changelog rendering so teams can automate releases without losing editorial control.

Core Capabilities

  • Parse commit messages using Conventional Commit rules
  • Detect semantic bump (major, minor, patch) from commit stream
  • Render Keep a Changelog sections (Added, Changed, Fixed, etc.)
  • Generate release entries from git ranges or provided commit input
  • Enforce commit format with a dedicated linter script
  • Support CI integration via machine-readable JSON output

When to Use

  • Before publishing a release tag
  • During CI to generate release notes automatically
  • During PR checks to block invalid commit message formats
  • In monorepos where package changelogs require scoped filtering
  • When converting raw git history into user-facing notes

Key Workflows

1. Generate Changelog Entry From Git
python3 scripts/generate_changelog.py \
  --from-tag v1.3.0 \
  --to-tag v1.4.0 \
  --next-version v1.4.0 \
  --format markdown
2. Generate Entry From stdin/File Input
git log v1.3.0..v1.4.0 --pretty=format:'%s' | \
  python3 scripts/generate_changelog.py --next-version v1.4.0 --format markdown

python3 scripts/generate_changelog.py --input commits.txt --next-version v1.4.0 --format json
3. Update CHANGELOG.md
python3 scripts/generate_changelog.py \
  --from-tag v1.3.0 \
  --to-tag HEAD \
  --next-version v1.4.0 \
  --write CHANGELOG.md
4. Compute the Next Version From Commits

When the user has not decided the next version, derive it instead of guessing:

git log v1.3.0..HEAD --oneline | \
  python3 scripts/version_bumper.py --current-version 1.3.0 --output-format json

Output JSON contains recommended_version, bump_type (major/minor/patch/none), and with --include-commands the exact git tag commands. Feed recommended_version into generate_changelog.py --next-version. Pre-releases: add --prerelease alpha|beta|rc. Input must be real git log --oneline output (hex hashes); a sample lives at assets/sample_git_log.txt.

5. Lint Commits Before Merge
python3 scripts/commit_linter.py --from-ref origin/main --to-ref HEAD --strict --format text

Or file/stdin:

python3 scripts/commit_linter.py --input commits.txt --strict
cat commits.txt | python3 scripts/commit_linter.py --format json

Conventional Commit Rules

Supported types:

  • feat, fix, perf, refactor, docs, test, build, ci, chore
  • security, deprecated, remove

Breaking changes:

  • type(scope)!: summary
  • Footer/body includes BREAKING CHANGE:

SemVer mapping:

  • breaking -> major
  • non-breaking feat -> minor
  • all others -> patch

Script Interfaces

  • python3 scripts/generate_changelog.py --help
    • Reads commits from git or stdin/--input
    • Renders markdown or JSON
    • Optional in-place changelog prepend
  • python3 scripts/commit_linter.py --help
    • Validates commit format
    • Returns non-zero in --strict mode on violations

Common Pitfalls

  1. Mixing merge commit messages with release commit parsing
  2. Using vague commit summaries that cannot become release notes
  3. Failing to include migration guidance for breaking changes
  4. Treating docs/chore changes as user-facing features
  5. Overwriting historical changelog sections instead of prepending

Best Practices

  1. Keep commits small and intent-driven.
  2. Scope commit messages (feat(api): ...) in multi-package repos.
  3. Enforce linter checks in PR pipelines.
  4. Review generated markdown before publishing.
  5. Tag releases only after changelog generation succeeds.
  6. Keep an [Unreleased] section for manual curation when needed.

Hotfix Severity & SLAs

When a release goes wrong, classify before acting (full procedures in references/hotfix-procedures.md):

Severity Definition SLA Approval
P0 — Critical Outage, data loss, exploited vulnerability Fix deployed ≤ 2h; emergency deploy bypasses normal gates Engineering Lead + On-call Manager
P1 — High Major feature broken, significant user impact Fix deployed ≤ 24h; expedited review Engineering Lead + Product Manager
P2 — Medium Minor issues, limited impact Next release cycle Standard PR review

Hotfix branch comes from the last stable tag, contains the minimal fix only, and gets its own patch-bump changelog entry via the workflow above.

Rollback Triggers

Pre-commit to these thresholds before tagging; roll back when any fires:

Trigger Threshold
Error rate spike > 2x baseline within 30 min
Performance degradation > 50% latency increase
Feature failure Core functionality broken
Security incident Vulnerability being exploited
Data corruption Database integrity compromised

Prefer feature-flag disable over code rollback; database rollbacks only for non-destructive migrations (forward-only migrations preferred). See references/hotfix-procedures.md.

References

Release Governance

Use this release flow for predictability:

  1. Lint commit history for target release range.
  2. Generate changelog draft from commits.
  3. Manually adjust wording for customer clarity.
  4. Validate semver bump recommendation.
  5. Tag release only after changelog is approved.

Output Quality Checks

  • Each bullet is user-meaningful, not implementation noise.
  • Breaking changes include migration action.
  • Security fixes are isolated in Security section.
  • Sections with no entries are omitted.
  • Duplicate bullets across sections are removed.

CI Policy

  • Run commit_linter.py --strict on all PRs.
  • Block merge on invalid conventional commits.
  • Auto-generate draft release notes on tag push.
  • Require human approval before writing into CHANGELOG.md on main branch.

Monorepo Guidance

  • Prefer commit scopes aligned to package names.
  • Filter commit stream by scope for package-specific releases.
  • Keep infra-wide changes in root changelog.
  • Store package changelogs near package roots for ownership clarity.

Failure Handling

  • If no valid conventional commits found: fail early, do not generate misleading empty notes.
  • If git range invalid: surface explicit range in error output.
  • If write target missing: create safe changelog header scaffolding.
1---
2name: "changelog-generator"
3description: "Produce consistent, auditable release notes from Conventional Commits. Separates commit parsing, semantic-bump logic, and changelog rendering for automated releases with editorial control. Use when cutting a release, generating CHANGELOG.md from git history, computing the next semantic version from commits, automating release notes in CI, or planning a hotfix/rollback. Examples: 'generate the changelog for v1.4.0', 'what version bump do these commits require', 'we need an emergency hotfix process'."
4---
5 
6# Changelog Generator
7 
8**Tier:** POWERFUL
9**Category:** Engineering
10**Domain:** Release Management / Documentation
11 
12## Overview
13 
14Use this skill to produce consistent, auditable release notes from Conventional Commits. It separates commit parsing, semantic bump logic, and changelog rendering so teams can automate releases without losing editorial control.
15 
16## Core Capabilities
17 
18- Parse commit messages using Conventional Commit rules
19- Detect semantic bump (`major`, `minor`, `patch`) from commit stream
20- Render Keep a Changelog sections (`Added`, `Changed`, `Fixed`, etc.)
21- Generate release entries from git ranges or provided commit input
22- Enforce commit format with a dedicated linter script
23- Support CI integration via machine-readable JSON output
24 
25## When to Use
26 
27- Before publishing a release tag
28- During CI to generate release notes automatically
29- During PR checks to block invalid commit message formats
30- In monorepos where package changelogs require scoped filtering
31- When converting raw git history into user-facing notes
32 
33## Key Workflows
34 
35### 1. Generate Changelog Entry From Git
36 
37```bash
38python3 scripts/generate_changelog.py \
39 --from-tag v1.3.0 \
40 --to-tag v1.4.0 \
41 --next-version v1.4.0 \
42 --format markdown
43```
44 
45### 2. Generate Entry From stdin/File Input
46 
47```bash
48git log v1.3.0..v1.4.0 --pretty=format:'%s' | \
49 python3 scripts/generate_changelog.py --next-version v1.4.0 --format markdown
50 
51python3 scripts/generate_changelog.py --input commits.txt --next-version v1.4.0 --format json
52```
53 
54### 3. Update `CHANGELOG.md`
55 
56```bash
57python3 scripts/generate_changelog.py \
58 --from-tag v1.3.0 \
59 --to-tag HEAD \
60 --next-version v1.4.0 \
61 --write CHANGELOG.md
62```
63 
64### 4. Compute the Next Version From Commits
65 
66When the user has not decided the next version, derive it instead of guessing:
67 
68```bash
69git log v1.3.0..HEAD --oneline | \
70 python3 scripts/version_bumper.py --current-version 1.3.0 --output-format json
71```
72 
73Output JSON contains `recommended_version`, `bump_type` (`major`/`minor`/`patch`/`none`), and with `--include-commands` the exact `git tag` commands. Feed `recommended_version` into `generate_changelog.py --next-version`. Pre-releases: add `--prerelease alpha|beta|rc`. Input must be real `git log --oneline` output (hex hashes); a sample lives at `assets/sample_git_log.txt`.
74 
75### 5. Lint Commits Before Merge
76 
77```bash
78python3 scripts/commit_linter.py --from-ref origin/main --to-ref HEAD --strict --format text
79```
80 
81Or file/stdin:
82 
83```bash
84python3 scripts/commit_linter.py --input commits.txt --strict
85cat commits.txt | python3 scripts/commit_linter.py --format json
86```
87 
88## Conventional Commit Rules
89 
90Supported types:
91 
92- `feat`, `fix`, `perf`, `refactor`, `docs`, `test`, `build`, `ci`, `chore`
93- `security`, `deprecated`, `remove`
94 
95Breaking changes:
96 
97- `type(scope)!: summary`
98- Footer/body includes `BREAKING CHANGE:`
99 
100SemVer mapping:
101 
102- breaking -> `major`
103- non-breaking `feat` -> `minor`
104- all others -> `patch`
105 
106## Script Interfaces
107 
108- `python3 scripts/generate_changelog.py --help`
109 - Reads commits from git or stdin/`--input`
110 - Renders markdown or JSON
111 - Optional in-place changelog prepend
112- `python3 scripts/commit_linter.py --help`
113 - Validates commit format
114 - Returns non-zero in `--strict` mode on violations
115 
116## Common Pitfalls
117 
1181. Mixing merge commit messages with release commit parsing
1192. Using vague commit summaries that cannot become release notes
1203. Failing to include migration guidance for breaking changes
1214. Treating docs/chore changes as user-facing features
1225. Overwriting historical changelog sections instead of prepending
123 
124## Best Practices
125 
1261. Keep commits small and intent-driven.
1272. Scope commit messages (`feat(api): ...`) in multi-package repos.
1283. Enforce linter checks in PR pipelines.
1294. Review generated markdown before publishing.
1305. Tag releases only after changelog generation succeeds.
1316. Keep an `[Unreleased]` section for manual curation when needed.
132 
133## Hotfix Severity & SLAs
134 
135When a release goes wrong, classify before acting (full procedures in [references/hotfix-procedures.md](references/hotfix-procedures.md)):
136 
137| Severity | Definition | SLA | Approval |
138|---|---|---|---|
139| P0 — Critical | Outage, data loss, exploited vulnerability | Fix deployed ≤ 2h; emergency deploy bypasses normal gates | Engineering Lead + On-call Manager |
140| P1 — High | Major feature broken, significant user impact | Fix deployed ≤ 24h; expedited review | Engineering Lead + Product Manager |
141| P2 — Medium | Minor issues, limited impact | Next release cycle | Standard PR review |
142 
143Hotfix branch comes from the last stable tag, contains the minimal fix only, and gets its own patch-bump changelog entry via the workflow above.
144 
145## Rollback Triggers
146 
147Pre-commit to these thresholds before tagging; roll back when any fires:
148 
149| Trigger | Threshold |
150|---|---|
151| Error rate spike | > 2x baseline within 30 min |
152| Performance degradation | > 50% latency increase |
153| Feature failure | Core functionality broken |
154| Security incident | Vulnerability being exploited |
155| Data corruption | Database integrity compromised |
156 
157Prefer feature-flag disable over code rollback; database rollbacks only for non-destructive migrations (forward-only migrations preferred). See [references/hotfix-procedures.md](references/hotfix-procedures.md).
158 
159## References
160 
161- [references/ci-integration.md](references/ci-integration.md)
162- [references/changelog-formatting-guide.md](references/changelog-formatting-guide.md)
163- [references/monorepo-strategy.md](references/monorepo-strategy.md)
164- [references/hotfix-procedures.md](references/hotfix-procedures.md)
165- [README.md](README.md)
166 
167## Release Governance
168 
169Use this release flow for predictability:
170 
1711. Lint commit history for target release range.
1722. Generate changelog draft from commits.
1733. Manually adjust wording for customer clarity.
1744. Validate semver bump recommendation.
1755. Tag release only after changelog is approved.
176 
177## Output Quality Checks
178 
179- Each bullet is user-meaningful, not implementation noise.
180- Breaking changes include migration action.
181- Security fixes are isolated in `Security` section.
182- Sections with no entries are omitted.
183- Duplicate bullets across sections are removed.
184 
185## CI Policy
186 
187- Run `commit_linter.py --strict` on all PRs.
188- Block merge on invalid conventional commits.
189- Auto-generate draft release notes on tag push.
190- Require human approval before writing into `CHANGELOG.md` on main branch.
191 
192## Monorepo Guidance
193 
194- Prefer commit scopes aligned to package names.
195- Filter commit stream by scope for package-specific releases.
196- Keep infra-wide changes in root changelog.
197- Store package changelogs near package roots for ownership clarity.
198 
199## Failure Handling
200 
201- If no valid conventional commits found: fail early, do not generate misleading empty notes.
202- If git range invalid: surface explicit range in error output.
203- If write target missing: create safe changelog header scaffolding.
204 

Discussion

Alternatives

Also in Developer docsSee all 533 in Development →