Changelog generator
Skill diguike/book-claude-skill/examples/ch24-graduation/changelog-generator
Claude Code Skill 开发指南
npx -y skills add diguike/book-claude-skill --skill changelog-generatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Generate a changelog from git commits using conventional commit format. 从 git 提交记录生成 CHANGELOG。
SKILL.md
1.5 KB, as published. Nobody here has run it
Changelog Generator
Generate a structured CHANGELOG.md from git commits between two tags or refs.
Workflow
- Determine the range:
- If user specifies two refs, use them:
git log ref1..ref2 - If user specifies one ref, use
ref..HEAD - If no ref, use last tag to HEAD:
git describe --tags --abbrev=0..HEAD
- If user specifies two refs, use them:
- Run
scripts/parse-commits.tsto parse git log into structured data - Classify each commit using
rules/conventional-commits.md - Group by category and sort by importance
- Generate CHANGELOG.md in the format below
Output Format
# Changelog
## [version] - YYYY-MM-DD
### Breaking Changes
- **module**: description (#PR)
### Features
- **module**: description (#PR)
### Bug Fixes
- **module**: description (#PR)
### Performance
- **module**: description (#PR)
### Other
- **module**: description (#PR)
Rules
- Follow classification in
rules/conventional-commits.md - Include PR/issue number if present in commit message
- Extract scope (module name) from conventional commit prefix:
feat(auth): ...→ scope isauth - Skip merge commits and CI-only commits
- If a commit has
BREAKING CHANGE:in body, always list under Breaking Changes
Constraints
- Do not modify any source files — only generate/update CHANGELOG.md
- Preserve existing CHANGELOG.md content below the new section
- If no meaningful commits found, report "No changes to document"