Skip to content
cccskills
FreePublished on GitHub

changelog-gen

Changelog 生成器 - 从 Git 历史自动生成 CHANGELOG

The English summary is being prepared. Showing the original description.

Run score Not tested

See how to install

Files included (1)

  • SKILL.md2.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

### ⚠️ Breaking Changes
- 移除废弃的 `/api/v1/users` 端点,统一使用 `/api/v2/users` (#130)

### ✨ 新功能
- 新增用户认证模块 (#123)
- 支持 OAuth2 登录 (#124)
- 新增批量导出功能 (#128)

### 🔒 安全修复
- 升级 lodash 修复原型污染漏洞 CVE-2025-XXXX (#129)

### 🐛 Bug 修复
- 修复分页查询偏移量错误 (#125)
- 修复并发写入导致的数据竞争 (#127)

### ⚡ 性能优化
- 优化大列表渲染性能,减少 50% 内存占用 (#126)

### 📝 文档
- 更新 API 文档 (#131)

### 📦 依赖更新
- 升级 axios 1.6.0 → 1.7.0 (#132)

注意事项

  • Breaking Changes 必须放在最前面,加粗突出显示
  • 每条记录关联 Issue/PR 编号,便于追溯
  • 安全修复需注明 CVE 编号(如有)
  • 版本号应与 git tag 保持一致
  • 如果是预发布版本,使用 -beta.1、-rc.1 后缀
  • 可维护一个 CHANGELOG.md 文件,每次 release 追加到顶部

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

依据真实 OpenAPI、路由实现和现有测试生成并验证 API 测试。用于用户要求测试接口、补集成测试、验证 API 契约、生成回归用例或排查接口兼容性时;区分“生成测试”和“执行请求”的授权,不猜测状态码、响应结构或 SLA,不在未确认环境中发送写请求。

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 23, 2026

数据库迁移助手 - Schema 对比、迁移脚本生成

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 23, 2026

审计 Node.js、Python、Go、Rust、JVM、Ruby 项目的依赖漏洞、版本健康度与许可证事实;当用户要求检查 package.json、lockfile、requirements、go.mod、Cargo.toml、pom.xml、Gemfile.lock,或生成不改依赖的中文审计报告时使用

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 23, 2026

项目目录结构地图 - 生成带说明的可视化目录树,快速理解任意代码库

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 23, 2026

环境变量管理器:扫描、校验、同步 .env 文件,生成安全配置模板

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 23, 2026

编程错误消息翻译专家 — 将英文错误消息翻译成中文,解释原因并提供修复方案

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 23, 2026

See all skills by laolaoshiren

Report a problem with this skill