// Generate changelog entries from git commits, plan files, or structured data. Use for version releases, creating CHANGELOG.md sections, or documenting changes between versions.
| name | generate-changelog |
| description | Generate changelog entries from git commits, plan files, or structured data. Use for version releases, creating CHANGELOG.md sections, or documenting changes between versions. |
| allowed-tools | Read, Bash |
Automatically generate changelog entries following Keep a Changelog format.
Accept change information from various sources.
Expected Input:
version: String (e.g., "0.8.0")date: String (ISO-8601 or YYYY-MM-DD)source: String (git|plan-file|manual)sourceData: Object (git range, plan file path, or manual entries)Source Types:
Extract and categorize changes.
Categories (Keep a Changelog standard):
Git Commit Parsing:
Group changes by category and remove duplicates.
Grouping Rules:
Create formatted changelog section.
Format:
## [Version] - Date
### Added
- New feature 1
- New feature 2
### Fixed
- Bug fix 1
- Bug fix 2
### Changed
- Change 1
Return complete changelog section ready for insertion.
Expected Output:
## [0.8.0] - 2025-10-17
### Added
- Dark mode toggle for user preferences
- OAuth2 authentication support
### Fixed
- Memory leak in connection pool
- CORS configuration error
### Changed
- Migrated to v2 authentication API
- Optimized query performance
Input:
{
"version": "0.8.0",
"date": "2025-10-17",
"source": "git",
"sourceData": {
"fromRef": "v0.7.0",
"toRef": "HEAD"
}
}
Git Commits:
feat(auth): add OAuth2 support
fix(api): resolve memory leak
docs: update API documentation
chore(deps): bump dependencies
Output:
## [0.8.0] - 2025-10-17
### Added
- Add OAuth2 support (auth)
### Fixed
- Resolve memory leak (api)
### Changed
- Update API documentation
Input:
{
"version": "0.8.0",
"date": "2025-10-17",
"source": "plan-file",
"sourceData": {
"planFile": ".version-update-plan.json"
}
}
Plan File Content:
{
"changes": {
"added": ["Dark mode toggle", "User profiles"],
"fixed": ["Login redirect bug", "Dashboard crash"],
"changed": ["Improved performance"]
}
}
Output:
## [0.8.0] - 2025-10-17
### Added
- Dark mode toggle
- User profiles
### Fixed
- Login redirect bug
- Dashboard crash
### Changed
- Improved performance
Input:
{
"version": "0.8.0",
"date": "2025-10-17",
"source": "manual",
"sourceData": {
"added": ["New payment gateway integration"],
"fixed": ["Cart calculation error"],
"security": ["Fixed XSS vulnerability in search"]
}
}
Output:
## [0.8.0] - 2025-10-17
### Added
- New payment gateway integration
### Fixed
- Cart calculation error
### Security
- Fixed XSS vulnerability in search
Input:
{
"version": "0.8.0",
"date": "2025-10-17",
"source": "git",
"sourceData": {
"fromRef": "v0.7.0",
"toRef": "v0.7.0"
}
}
Output:
## [0.8.0] - 2025-10-17
No changes in this release.
commit-mapping.json: Conventional commit to changelog category mapping