CommandOpen
generate-changelog
Generate a changelog from git history, grouping commits by type and version.
Front matter
name: generate-changelog
description: Generate a changelog from git history, grouping commits by type and version.Generate a changelog from git history, grouping commits by type and version.
Steps
- Determine the version range:
- If
--fromand--toare specified, use those tags. - Otherwise, generate from the last tag to HEAD.
- For initial changelog, process all commits.
- Parse commits using conventional commit format:
feat: Features section.fix: Bug Fixes section.perf: Performance section.docs: Documentation section.refactor: Code Refactoring section.test: Tests section.chore/ci/build: Maintenance section.BREAKING CHANGE: Breaking Changes section (always first).
- For each entry, include:
- Commit subject line.
- Scope in parentheses if present.
- PR number or commit hash as reference.
- Author attribution.
- Sort sections by importance: Breaking > Features > Fixes > Performance > Others.
- Write or update
CHANGELOG.mdwith the new version at the top. - If existing
CHANGELOG.mdexists, prepend the new version section.
Format
# Changelog
## [1.2.0] - 2026-02-04
### Breaking Changes
- **api**: Removed deprecated `/v1/users` endpoint (#123)
### Features
- **auth**: Add OAuth2 PKCE flow support (#120)
### Bug Fixes
- **db**: Fix connection pool leak under high concurrency (#118)
### Performance
- **cache**: Reduce Redis round-trips by 40% with pipelining (#115)Rules
- Follow Keep a Changelog format (keepachangelog.com).
- Always include the date in each version header.
- Group by type, then sort by scope within each group.
- Skip merge commits and CI-only changes.
- Link version headers to git comparison URLs when possible.
Author: rohitg00, Claude Code toolkit (rohitg00). License: Apache-2.0.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The Codex library holds 7,009 entries. Members can search all of them by meaning and read every one in full.