git-changelog
由 fratua 提供
Git & GitHub简介
Auto-generate beautiful changelogs from git history, grouped by conventional commit types.
描述
该技能的功能
Reads git commit history and produces a categorized, markdown-formatted changelog grouped by conventional commit types. Handles tag ranges, date ranges, and breaking change detection automatically. Output is ready to paste into CHANGELOG.md or a GitHub release.
Parsing conventional commits and grouping them by type by hand is tedious and error-prone, especially across long ranges; this skill automates the whole process in one step.
何时使用
- Generating release notes before tagging a new version
- Creating a CHANGELOG.md entry after a sprint
- Reviewing what changed between two git tags
- Catching breaking changes before publishing a package
- Summarizing recent commits for a team update
示例工作流
User asks: generate a changelog from v1.1.0 to HEAD
- 1
Verify the current directory is a git repository using git rev-parse
- 2
Determine the commit range from v1.1.0 to HEAD
- 3
Extract commits with hash, subject, author, and date using git log
- 4
Parse each commit subject for conventional commit prefixes and group into categories
- 5
Check for BREAKING CHANGE footers and feat! commits, then render the full markdown output
A markdown changelog with sections for Features, Bug Fixes, and any other detected categories, including short commit hashes and scopes
安装
clawhub install fratua/git-changelog运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。