Generate a changelog from git history. Use when the user says /changelog, asks to generate a changelog, wants a summary of changes between tags/commits/branches, or needs a CHANGELOG.md file created or updated. Triggers: changelog, changes since, release notes from git, what changed.
Generate a well-structured changelog from git history.
git rev-parse --show-toplevel.git describe --tags --abbrev=0 and use <latest-tag>..HEAD.git log --pretty=format:"%H|%s|%an|%ad" --date=short <range>.feat, addfix, bugfix, patchrefactor, update, changedeprecateremove, deletesecurity, vulnperfdocsCHANGELOG.md already exists, prepend the new section below the title. Otherwise create a new file.# Changelog
## [<version-or-range>] - YYYY-MM-DD
### Added
- Description of feature (SHA short)
### Fixed
- Description of fix (SHA short)
...
git log -- <path>.