changelog-generator
Skill440 starsChanged 6 months agoMITView on GitHub
智能变更日志生成器 - 自动分析Git提交历史,生成符合规范的CHANGELOG.md。支持语义化版本管理、多种输出格式、增量更新和GitHub/GitLab集成。
- Installs packages
- Commits and pushes
75 other projects use a version of this.
Adopted by
Most recently taken up by
- Sma1lboy/rovetheir own version, first seen Oct 4, 2026
- BrightGold70/skillstheir own version, first seen Sep 29, 2026
- angelgabrieljacintohuayllasco/clipboard-skillstheir own version, first seen Sep 20, 2026
- RealDougEubanks/ClaudeMarketplacetheir own version, first seen Sep 10, 2026
- decebals/claude-code-javatheir own version, first seen Sep 6, 2026
- anthuanvasquez/agents-skillstheir own version, first seen Sep 4, 2026
Used with
Projects with it also use api-test-suite-builder, karpathy-coder and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Arnav-0Skillapi-test-suite-builder
Use when the user asks to generate API tests, create integration test suites, test REST endpoints, or build contract tests.
Also in 5 projects that use this
csiddhant796-blipSkillkarpathy-coder
Use when writing, reviewing, or committing code to enforce Karpathy's 4 coding principles — surface assumptions before coding, keep it simple, make surgical changes, define verifiable goals. Triggers on "review my diff", "check complexity", "am I overcomplicating this", "karpathy check", "before I commit", or any code quality concern where the LLM might be overcoding.
Also in 4 projects that use this
trendinuxSkilltwitter-algorithm-optimizer
Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.
Also in 11 projects that use this
Arnav-0Skillagenthub
Multi-agent collaboration plugin that spawns N parallel subagents competing on the same task via git worktree isolation. Agents work independently, results are evaluated by metric or LLM judge, and the best branch is merged. Use when: user wants multiple approaches tried in parallel — code optimization, content variation, research exploration, or any task that benefits from parallel competition. Requires: a git repo.
Also in 4 projects that use this
Hussain-ElfalahSkillai-act-readiness
Also in 3 projects that use this
Hussain-ElfalahSkillandreessen
Also in 3 projects that use this
- +6 more from Hussain-Elfalah
Other versions75 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 75
- ComposioHQ/awesome-claude-skills★ 77ksame name
- composio-community/awesome-codex-skills★ 17ksame name
- Prat011/awesome-llm-skills★ 1.8ksame name
- MoizIbnYousaf/ai-agent-skills★ 1.1ksame name
- decebals/claude-code-java★ 747same name
- Prorise-cool/Claude-Code-Multi-Agent★ 305same name
- maslennikov-ig/claude-code-orchestrator-kit★ 259same name
- Sma1lboy/rove★ 147same name
- CommandCodeAI/agent-skills★ 131same name
- ArogyaReddy/ComposioHQ-awesome-claude-skills★ 49same name
65 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- backend-dev-agentSkill
- devops-engineer-agentSkill
- drawnote-skillSkill
- frontend-dev-agentSkill
- fullstack-engineer-agentSkill
- product-manager-agentSkill
- qa-engineer-agentSkill
- softcopyrightSkill
- tech-leader-agentSkill
- thread-managerSkill
- tidymydesktopSkill
The file
Files
changelog-generator - 智能变更日志生成器
概述
当用户需要生成或更新 CHANGELOG 时,此 skill 会自动完成以下流程:
- 分析 Git 提交历史
- 根据 Conventional Commits 规范解析提交
- 智能分类和组织变更
- 生成符合 Keep a Changelog 标准的 CHANGELOG.md
- 支持版本发布和增量更新
支持的触发指令
用户可以通过以下方式触发此 skill:
- "changelog" - 简易触发词
- "变更日志" - 简易触发词
- "帮我生成 CHANGELOG" - 生成完整的 CHANGELOG
- "更新 CHANGELOG" - 增量更新 CHANGELOG
- "发布新版本" - 发布正式版本
- "初始化 changelog 配置" - 创建配置文件
工作流程
步骤 1: 初始化配置(首次使用)
命令:
cd ~/.claude/skills/changelog-generator
npm install
# 在项目目录中初始化配置
cd /path/to/your/project
changelog-generate init配置文件: .changelogrc.json
交互式配置会询问:
- 当前版本号
- 语言选择(中文/英文)
- 是否使用 emoji
- 是否显示作者信息
步骤 2: 生成 CHANGELOG
场景 A: 首次生成完整 CHANGELOG
# 生成所有历史提交的 CHANGELOG
changelog-generate generate --all
# 生成指定范围的 CHANGELOG
changelog-generate generate --from v1.0.0 --to v2.0.0场景 B: 增量更新 CHANGELOG
# 更新 [Unreleased] 区域
changelog-generate update
# 从指定标签开始更新
changelog-generate update --from v2.0.0场景 C: 发布新版本
# 自动确定版本号(交互式)
changelog-generate release
# 手动指定版本号
changelog-generate release --version 2.1.0
# 指定日期
changelog-generate release --version 2.1.0 --date 2023-11-10步骤 3: 输出文件
默认输出路径: ./CHANGELOG.md
生成的 CHANGELOG 示例:
# Changelog
All notable changes to this project will be documented in this file.
## [Unreleased]
## [2.0.0] - 2023-11-10
### 💥 BREAKING CHANGES
- **api:** Remove deprecated v1 endpoints (#123)
### ✨ Features
- **auth:** Add JWT authentication (#120)
- **api:** Add user profile endpoint (#121)
### 🐛 Bug Fixes
- **ui:** Fix button alignment issue (#122)
### 📝 Documentation
- Update API documentation
## [1.0.0] - 2023-10-01
...核心功能
1. 智能提交解析
支持 Conventional Commits 规范:
feat(auth): add login functionality
^ ^ ^
type scope subject
BREAKING CHANGE: Remove old auth API支持的提交类型:
feat: ✨ Featuresfix: 🐛 Bug Fixesdocs: 📝 Documentationstyle: 💄 Styles (可隐藏)refactor: ♻️ Code Refactoringperf: ⚡ Performancetest: ✅ Testsbuild: 📦 Build Systemci: 👷 CI/CDchore: 🔧 Chores (可隐藏)
2. 自动版本管理
根据提交类型自动确定版本号:
| 提交类型 | 版本影响 | 示例 |
| BREAKING CHANGE | Major | 1.0.0 → 2.0.0 |
| feat | Minor | 1.0.0 → 1.1.0 |
| fix | Patch | 1.0.0 → 1.0.1 |
3. PR 和 Issue 引用
自动识别和链接:
feat: add new feature (#123)
fix: resolve bug (fixes #456)生成链接:
- **feat:** add new feature ([#123](https://github.com/user/repo/pull/123))4. 破坏性变更检测
两种检测方式:
方式 1: 使用 BREAKING CHANGE footer
feat: add new API
BREAKING CHANGE: Old API is removed方式 2: 使用 "!" (感叹号) 标记
feat!: remove deprecated method配置选项
完整配置示例
{
"version": "1.0.0",
"format": "keepachangelog",
"language": "zh-CN",
"display": {
"emoji": true,
"groupByType": true,
"showAuthor": true,
"showPR": true,
"showIssue": true
},
"types": [
{ "type": "feat", "section": "Features", "emoji": "✨" },
{ "type": "fix", "section": "Bug Fixes", "emoji": "🐛" },
{ "type": "chore", "hidden": true }
],
"exclude": {
"types": ["style", "chore"],
"scopes": ["deps"]
}
}使用场景
场景 1: 新项目首次生成
# 1. 初始化配置
changelog-generate init
# 2. 生成 CHANGELOG
changelog-generate generate --all
# 输出: CHANGELOG.md 包含所有历史提交场景 2: 日常开发增量更新
# 在每次 PR 合并后或定期更新
git pull
changelog-generate update
# 查看 [Unreleased] 的内容
changelog-generate preview场景 3: 发布新版本
# 1. 更新 CHANGELOG
changelog-generate update
# 2. 预览将要发布的内容
changelog-generate preview
# 3. 发布版本
changelog-generate release
# 4. 提交和推送
git add CHANGELOG.md
git commit -m "chore(release): 2.0.0"
git tag v2.0.0
git push && git push --tags场景 4: CI/CD 自动化
GitHub Actions:
name: Update Changelog
on:
push:
branches: [main]
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Update Changelog
run: |
npm install -g changelog-generate
changelog-generate update
- name: Commit
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add CHANGELOG.md
git commit -m "docs: update changelog" || true
git pushCLI 命令参考
init - 初始化配置
changelog-generate init交互式创建 .changelogrc.json 配置文件。
generate - 生成 CHANGELOG
changelog-generate generate [options]
Options:
-f, --from <tag> 起始标签
-t, --to <tag> 结束标签 (默认: HEAD)
-o, --output <file> 输出文件 (默认: CHANGELOG.md)
--all 包含所有历史提交update - 增量更新
changelog-generate update [options]
Options:
-f, --from <tag> 起始标签(默认为最新标签)
-o, --output <file> CHANGELOG 文件 (默认: CHANGELOG.md)release - 发布版本
changelog-generate release [options]
Options:
-v, --version <version> 版本号
-d, --date <date> 发布日期
-o, --output <file> CHANGELOG 文件preview - 预览 Unreleased
changelog-generate preview显示 [Unreleased] 区域的内容。
最佳实践
1. 规范的 Commit Message
使用 Conventional Commits 规范:
# 好的示例
git commit -m "feat(auth): add OAuth2 support"
git commit -m "fix(ui): resolve button alignment issue"
git commit -m "docs: update installation guide"
# 避免的示例
git commit -m "update code"
git commit -m "fix bug"
git commit -m "wip"2. 使用 Commitlint
安装 commitlint 检查提交消息:
npm install --save-dev @commitlint/cli @commitlint/config-conventional配置 .commitlintrc.json:
{
"extends": ["@commitlint/config-conventional"]
}3. Git Hooks 自动化
使用 husky 在提交时检查:
npm install --save-dev husky
# .husky/commit-msg
npx commitlint --edit $14. 定期更新
建议在以下时机更新 CHANGELOG:
- 每次 PR 合并后
- 每周定期更新
- 发布前必须更新
5. 版本发布流程
# 1. 确保所有变更已提交
git status
# 2. 更新 CHANGELOG
changelog-generate update
# 3. 预览内容
changelog-generate preview
# 4. 发布版本
changelog-generate release
# 5. 审查 CHANGELOG.md
git diff CHANGELOG.md
# 6. 提交和标签
git add CHANGELOG.md
git commit -m "chore(release): 2.0.0"
git tag v2.0.0
# 7. 推送
git push && git push --tags依赖安装
# 使用 nvm 管理 Node.js 版本
nvm use 18
# 安装依赖
cd ~/.claude/skills/changelog-generator
npm install技术栈
- simple-git: Git 操作
- conventional-commits-parser: 提交解析
- semver: 版本管理
- handlebars: 模板引擎
- commander: CLI 框架
- inquirer: 交互式命令行
- chalk: 终端颜色
- ora: 加载动画
故障排除
问题 1: 找不到 Git 仓库
错误: Not a git repository
解决:
# 确保在 Git 仓库目录中
git status
# 或初始化 Git 仓库
git init问题 2: 无法解析提交
原因: 提交消息不符合 Conventional Commits 规范
解决: 修改配置,将不符合规范的提交归类到 "Other" 类型。
问题 3: 生成的 CHANGELOG 为空
检查:
# 查看提交历史
git log --oneline
# 检查配置中的排除规则
cat .changelogrc.json | grep exclude扩展和自定义
自定义模板
创建自定义模板 custom-template.hbs:
# 变更日志
{{#each versions}}
## 版本 {{version}} ({{date}})
{{#each changes}}
**{{section}}**
{{#each commits}}
- {{subject}}
{{/each}}
{{/each}}
{{/each}}配置使用:
{
"template": {
"path": "./custom-template.hbs"
}
}添加新的提交类型
在 .changelogrc.json 中添加:
{
"types": [
{
"type": "security",
"section": "Security",
"emoji": "🔒",
"priority": 2
}
]
}与其他工具集成
与 semantic-release 集成
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
]
}与 Renovate 集成
.renovate.json:
{
"automerge": true,
"prCreation": "immediate",
"commitMessagePrefix": "chore(deps):"
}版本: 1.0.0 作者: Peter Fei 许可: MIT
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

