| name | changelog |
| description | Generate a changelog from git commits. Use before releases or to summarize recent work. |
Generate Changelog
Creates a changelog entry from git commit history.
Usage
/changelog # Since last tag
/changelog v1.0.0 # Since specific tag
/changelog 5 # Last 5 commits
/changelog abc123..def456 # Specific range
Process
- Determine range: Parse argument to get commit range
- Fetch commits:
git log --oneline <range> - Categorize: Group by type (feat, fix, refactor, docs, etc.)
- Format: Generate markdown changelog entry
Output Format
## [Version] - YYYY-MM-DD
### Added
- Feature description (#PR)
### Changed
- Change description
### Fixed
- Bug fix description
### Internal
- Refactoring, docs, tests (optional section)
Commit Parsing
Expects conventional commits or infers from message:
feat:/add/implement→ Addedfix:/bug/resolve→ Fixedrefactor:/clean/improve→ Changeddocs:/test:/chore:→ Internal
Output Location
Prepends to CHANGELOG.md or outputs to stdout if file doesn't exist.