This automates changelog generation from your Git commit history using Conventional Commits conventions. It pulls commits since the last tag, categorizes them by type (feat, fix, docs, refactor, perf, test, chore), and outputs a nicely formatted Markdown changelog with emoji indicators and version headers. Saves you from manually sorting through git log output when you're ready to cut a release. The workflow is straightforward: it reads your commits, groups them into sections like new features and bug fixes, and structures everything under version numbers with dates. Works best if your team already follows commit message conventions, otherwise you'll get a mixed bag of categorization.

GitHub stars
328
last updated
May 13, 2026

Install

$ npx -y skills add laolaoshiren/claude-code-skills-zh --skill changelog-gen --agent claude-code

Installs into .claude/skills of the current project.

Files

Changelog 自动生成

触发条件

当用户要求生成 changelog、更新日志、版本记录、release notes 时激活此技能。

工作流程

第 1 步:获取 Git 历史

# 先获取最近的 tag,再用 revision range 查询
git describe --tags --abbrev=0
git log --oneline <last-tag>..HEAD

# 或指定范围
git log --oneline v1.0.0..HEAD

# 仓库没有 tag 时,明确选择起始提交或查看全部历史
git log --oneline

第 2 步:分类提交

按 Conventional Commits 分类:

分类Type 标识图标
新功能feat✨
Bug 修复fix🐛
文档docs📝
重构refactor♻️
性能优化perf⚡
测试test🧪
构建/工具chore🔧
Breaking Changes含 BREAKING CHANGE: 或 !⚠️
安全修复fix(security) 或含 CVE🔒
依赖更新deps 或 chore(deps)📦

第 3 步:版本号确定策略

遵循 Semantic Versioning 规则:

变更类型版本变化示例
Breaking Changes主版本 +11.2.0 → 2.0.0
新功能 (feat)次版本 +11.2.0 → 1.3.0
Bug 修复 (fix)修订版本 +11.2.0 → 1.2.1
安全修复 (fix(security))修订版本 +1(紧急发布)1.2.0 → 1.2.1

判断依据:

  • 提交信息含 BREAKING CHANGE: 或 type 后加 !(如 feat!:)→ 主版本
  • 存在 feat 提交 → 次版本
  • 仅 fix/docs/chore 等 → 修订版本

第 4 步:生成 CHANGELOG

输出格式

# Changelog

## [1.3.0] - 2026-06-17

Sponsors

Details

Repository
github.com/laolaoshiren/claude-code-skills-zh
Categories
Git & Pull Requests, Release Management
License
MIT
First seen
Jun 11, 2026

More from laolaoshiren/claude-code-skills-zh

All 19
1meain avatarcommitmeain/dotfilesCreate git commits for dotfiles changes, grouping by component with conventional prefix style0skills.sh installs
2MetaMask avatarcommitMetaMask/ocap-kernelOptionally checks, then commits code to the current or a new feature branch.0skills.sh installs
3mlflow avataradd-review-commentmlflow/mlflowAdd a review comment to a GitHub pull request.0skills.sh installs
4mlflow avatarfetch-diffmlflow/mlflowFetch PR diff with filtering and line numbers for code review.0skills.sh installs
5pymc-labs avatarcommitpymc-labs/pymc-marketingCreate git commits for changes made during the session.0skills.sh installs
6quickwit-oss avatarsimple-prquickwit-oss/quickwitCreate a simple PR from staged changes with an auto-generated commit message0skills.sh installs