Internal Safety Override
- Status: local-only unless explicitly opted into external access.
- Before using network tools, account connectors, browser automation, or APIs, state the destination, data scope, and credential source.
- Do not transmit repository files, secrets, credentials, or private documents by default.
- Audit categories: network.
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. 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
- Mixing merge commit messages with release commit parsing
- Using vague commit summaries that cannot become release notes
- Failing to include migration guidance for breaking changes
- Treating docs/chore changes as user-facing features
- Overwriting historical changelog sections instead of prepending
Best Practices
- Keep commits small and intent-driven.
- Scope commit messages (
feat(api): ...) in multi-package repos.
- Enforce linter checks in PR pipelines.
- Review generated markdown before publishing.
- Tag releases only after changelog generation succeeds.
- Keep an
[Unreleased] section for manual curation when needed.
References
- references/ci-integration.md
- references/changelog-formatting-guide.md
- references/monorepo-strategy.md
- README.md
Release Governance
Use this release flow for predictability:
- Lint commit history for target release range.
- Generate changelog draft from commits.
- Manually adjust wording for customer clarity.
- Validate semver bump recommendation.
- 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-generator3description: Changelog Generator4---56## Internal Safety Override78- Status: local-only unless explicitly opted into external access.9- Before using network tools, account connectors, browser automation, or APIs, state the destination, data scope, and credential source.10- Do not transmit repository files, secrets, credentials, or private documents by default.11- Audit categories: network.1213# Changelog Generator1415**Tier:** POWERFUL 16**Category:** Engineering 17**Domain:** Release Management / Documentation1819## Overview2021Use 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.2223## Core Capabilities2425- Parse commit messages using Conventional Commit rules26- Detect semantic bump (`major`, `minor`, `patch`) from commit stream27- Render Keep a Changelog sections (`Added`, `Changed`, `Fixed`, etc.)28- Generate release entries from git ranges or provided commit input29- Enforce commit format with a dedicated linter script30- Support CI integration via machine-readable JSON output3132## When to Use3334- Before publishing a release tag35- During CI to generate release notes automatically36- During PR checks to block invalid commit message formats37- In monorepos where package changelogs require scoped filtering38- When converting raw git history into user-facing notes3940## Key Workflows4142### 1. Generate Changelog Entry From Git4344```bash45python3 scripts/generate_changelog.py \46 --from-tag v1.3.0 \47 --to-tag v1.4.0 \48 --next-version v1.4.0 \49 --format markdown50```5152### 2. Generate Entry From stdin/File Input5354```bash55git log v1.3.0..v1.4.0 --pretty=format:'%s' | \56 python3 scripts/generate_changelog.py --next-version v1.4.0 --format markdown5758python3 scripts/generate_changelog.py --input commits.txt --next-version v1.4.0 --format json59```6061### 3. Update `CHANGELOG.md`6263```bash64python3 scripts/generate_changelog.py \65 --from-tag v1.3.0 \66 --to-tag HEAD \67 --next-version v1.4.0 \68 --write CHANGELOG.md69```7071### 4. Lint Commits Before Merge7273```bash74python3 scripts/commit_linter.py --from-ref origin/main --to-ref HEAD --strict --format text75```7677Or file/stdin:7879```bash80python3 scripts/commit_linter.py --input commits.txt --strict81cat commits.txt | python3 scripts/commit_linter.py --format json82```8384## Conventional Commit Rules8586Supported types:8788- `feat`, `fix`, `perf`, `refactor`, `docs`, `test`, `build`, `ci`, `chore`89- `security`, `deprecated`, `remove`9091Breaking changes:9293- `type(scope)!: summary`94- Footer/body includes `BREAKING CHANGE:`9596SemVer mapping:9798- breaking -> `major`99- non-breaking `feat` -> `minor`100- all others -> `patch`101102## Script Interfaces103104- `python3 scripts/generate_changelog.py --help`105 - Reads commits from git or stdin/`--input`106 - Renders markdown or JSON107 - Optional in-place changelog prepend108- `python3 scripts/commit_linter.py --help`109 - Validates commit format110 - Returns non-zero in `--strict` mode on violations111112## Common Pitfalls1131141. Mixing merge commit messages with release commit parsing1152. Using vague commit summaries that cannot become release notes1163. Failing to include migration guidance for breaking changes1174. Treating docs/chore changes as user-facing features1185. Overwriting historical changelog sections instead of prepending119120## Best Practices1211221. Keep commits small and intent-driven.1232. Scope commit messages (`feat(api): ...`) in multi-package repos.1243. Enforce linter checks in PR pipelines.1254. Review generated markdown before publishing.1265. Tag releases only after changelog generation succeeds.1276. Keep an `[Unreleased]` section for manual curation when needed.128129## References130131- [references/ci-integration.md](references/ci-integration.md)132- [references/changelog-formatting-guide.md](references/changelog-formatting-guide.md)133- [references/monorepo-strategy.md](references/monorepo-strategy.md)134- [README.md](README.md)135136## Release Governance137138Use this release flow for predictability:1391401. Lint commit history for target release range.1412. Generate changelog draft from commits.1423. Manually adjust wording for customer clarity.1434. Validate semver bump recommendation.1445. Tag release only after changelog is approved.145146## Output Quality Checks147148- Each bullet is user-meaningful, not implementation noise.149- Breaking changes include migration action.150- Security fixes are isolated in `Security` section.151- Sections with no entries are omitted.152- Duplicate bullets across sections are removed.153154## CI Policy155156- Run `commit_linter.py --strict` on all PRs.157- Block merge on invalid conventional commits.158- Auto-generate draft release notes on tag push.159- Require human approval before writing into `CHANGELOG.md` on main branch.160161## Monorepo Guidance162163- Prefer commit scopes aligned to package names.164- Filter commit stream by scope for package-specific releases.165- Keep infra-wide changes in root changelog.166- Store package changelogs near package roots for ownership clarity.167168## Failure Handling169170- If no valid conventional commits found: fail early, do not generate misleading empty notes.171- If git range invalid: surface explicit range in error output.172- If write target missing: create safe changelog header scaffolding.