generate-changelog
从git提交创建变更日志。在准备发布说明时使用。
📖 中文导读:从git提交创建变更日志。在准备发布说明时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: generate-changelog description: "Create changelog from git commits. Use when preparing release notes." mcp_fallback: none category: generation tier: 2 user-invocable: false
Generate Changelog
Automatically extract commit messages and generate formatted changelog entries for release notes and version history.
When to Use
- Preparing release notes
- Documenting version history
- Creating user-facing change summaries
- Generating development notes
Quick Reference
# Extract commits since last tag
git log v1.0.0..HEAD --pretty=format:"%h - %s (%an) %d"
# Group by conventional commit type
git log --pretty=format:"%h %s" | grep -E "^[a-f0-9]+ (feat|fix|docs|refactor|test):"
# Generate markdown changelog
git log --reverse --pretty=format:"- %s (%h)" > CHANGELOG.md
Workflow
- Extract commits: Get commit messages since last release
- Parse convention: Identify conventional commit types (feat, fix, docs, etc.)
- Categorize changes: Group into sections (Features, Fixes, Documentation, etc.)
- Format output: Create readable markdown or text format
- Add context: Include version number, date, and links
Output Format
Changelog entry:
- Version number and release date
- Features section (new capabilities)
- Fixes section (bug fixes)
- Documentation section (doc updates)
- Breaking changes (if any)
- Contributors
- Version links (GitHub compare)
References
- See
doc-update-blogskill for blog post updates - See git documentation for commit message conventions
- See https://keepachangelog.com/ for changelog format standards