Agent skill

Changelog Generator

by peterfei in peterfei/ai-agent-team

智能变更日志生成器 - 自动分析Git提交历史,生成符合规范的CHANGELOG.md。支持语义化版本管理、多种输出格式、增量更新和GitHub/GitLab集成。

MITAuto-check passedDevelopment

Install Changelog Generator

skills CLI
$ npx skills add peterfei/ai-agent-team --skill changelog-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install peterfei/ai-agent-team changelog-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/peterfei/ai-agent-team.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/changelog-generator .claude/skills/changelog-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
changelog-generator
GitHub stars
441
Token cost
~2k tokens
SKILL.md length
305 words
Files
29
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

智能变更日志生成器 - 自动分析Git提交历史,生成符合规范的CHANGELOG.md。支持语义化版本管理、多种输出格式、增量更新和GitHub/GitLab集成。

  • Works in 9 steps: 智能提交解析 → 自动版本管理 → PR 和 Issue 引用 → …
  • Tasks that involve Changelog and release notes
  • SKILL.md covers 概述, 支持的触发指令, 工作流程 and 核心功能, plus 4 more sections
  • Runs JavaScript scripts from its folder; calls git, npm and npx; reaches github.com

What it does

Changelog Generator is an agent skill from peterfei/ai-agent-team. 智能变更日志生成器 - 自动分析Git提交历史,生成符合规范的CHANGELOG.md。支持语义化版本管理、多种输出格式、增量更新和GitHub/GitLab集成。

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 34 other files (for example `CHANGELOG.md`, `README.md` and `bin/cli.js`).

It sits in Development, covering Changelog and release notes. It works with Git, GitHub and GitLab. The repository describes itself as: AI Agent Team-拥有24/7专业AI开发团队:产品经理、前端开发、后端开发、测试工程师、DevOps工程师、技术负责人。一键安装,支持中英文命令,大幅提升开发效率!. The licence is MIT.

When your agent uses it

  • Tasks that involve Changelog and release notes

Example prompts

  • “/changelog-generator”

Requirements

  • Node.js

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. 智能提交解析
  2. 自动版本管理
  3. PR 和 Issue 引用
  4. 破坏性变更检测
  5. 规范的 Commit Message
  6. 使用 Commitlint
  7. Git Hooks 自动化
  8. 定期更新
  9. 版本发布流程

What it can do on your machine

Read from SKILL.md and the folder at commit 9d85024. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • git
    • npm
    • npx
    • nvm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Changelog Generator loads about 2k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 305 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from peterfei/ai-agent-team at commit 9d85024, republished under its MIT licence (© peterfei). 305 words, ~2,001 tokens.

Download SKILL.mdSave it as .claude/skills/changelog-generator/SKILL.md (or your agent's skills folder). This skill also uses 28 other files; get the full folder from GitHub.
name
changelog-generator
description
智能变更日志生成器 - 自动分析Git提交历史,生成符合规范的CHANGELOG.md。支持语义化版本管理、多种输出格式、增量更新和GitHub/GitLab集成。
license
MIT

changelog-generator - 智能变更日志生成器

概述

当用户需要生成或更新 CHANGELOG 时,此 skill 会自动完成以下流程:

  1. 分析 Git 提交历史
  2. 根据 Conventional Commits 规范解析提交
  3. 智能分类和组织变更
  4. 生成符合 Keep a Changelog 标准的 CHANGELOG.md
  5. 支持版本发布和增量更新

支持的触发指令

用户可以通过以下方式触发此 skill:

  • "changelog" - 简易触发词
  • "变更日志" - 简易触发词
  • "帮我生成 CHANGELOG" - 生成完整的 CHANGELOG
  • "更新 CHANGELOG" - 增量更新 CHANGELOG
  • "发布新版本" - 发布正式版本
  • "初始化 changelog 配置" - 创建配置文件

工作流程

步骤 1: 初始化配置(首次使用)

命令:

bash
cd ~/.claude/skills/changelog-generator
npm install

# 在项目目录中初始化配置
cd /path/to/your/project
changelog-generate init

配置文件: .changelogrc.json

交互式配置会询问:

  • 当前版本号
  • 语言选择(中文/英文)
  • 是否使用 emoji
  • 是否显示作者信息
步骤 2: 生成 CHANGELOG

场景 A: 首次生成完整 CHANGELOG

bash
# 生成所有历史提交的 CHANGELOG
changelog-generate generate --all

# 生成指定范围的 CHANGELOG
changelog-generate generate --from v1.0.0 --to v2.0.0

场景 B: 增量更新 CHANGELOG

bash
# 更新 [Unreleased] 区域
changelog-generate update

# 从指定标签开始更新
changelog-generate update --from v2.0.0

场景 C: 发布新版本

bash
# 自动确定版本号(交互式)
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 示例:

markdown
# 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: ✨ Features
  • fix: 🐛 Bug Fixes
  • docs: 📝 Documentation
  • style: 💄 Styles (可隐藏)
  • refactor: ♻️ Code Refactoring
  • perf: ⚡ Performance
  • test: ✅ Tests
  • build: 📦 Build System
  • ci: 👷 CI/CD
  • chore: 🔧 Chores (可隐藏)
2. 自动版本管理

根据提交类型自动确定版本号:

提交类型版本影响示例
BREAKING CHANGEMajor1.0.0 → 2.0.0
featMinor1.0.0 → 1.1.0
fixPatch1.0.0 → 1.0.1
3. PR 和 Issue 引用

自动识别和链接:

feat: add new feature (#123)
fix: resolve bug (fixes #456)

生成链接:

markdown
- **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

配置选项

完整配置示例
json
{
  "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: 新项目首次生成
bash
# 1. 初始化配置
changelog-generate init

# 2. 生成 CHANGELOG
changelog-generate generate --all

# 输出: CHANGELOG.md 包含所有历史提交
场景 2: 日常开发增量更新
bash
# 在每次 PR 合并后或定期更新
git pull
changelog-generate update

# 查看 [Unreleased] 的内容
changelog-generate preview
场景 3: 发布新版本
bash
# 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:

yaml
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 push

CLI 命令参考

init - 初始化配置
bash
changelog-generate init

交互式创建 .changelogrc.json 配置文件。

generate - 生成 CHANGELOG
bash
changelog-generate generate [options]

Options:
  -f, --from <tag>    起始标签
  -t, --to <tag>      结束标签 (默认: HEAD)
  -o, --output <file> 输出文件 (默认: CHANGELOG.md)
  --all               包含所有历史提交
update - 增量更新
bash
changelog-generate update [options]

Options:
  -f, --from <tag>    起始标签(默认为最新标签)
  -o, --output <file> CHANGELOG 文件 (默认: CHANGELOG.md)
release - 发布版本
bash
changelog-generate release [options]

Options:
  -v, --version <version> 版本号
  -d, --date <date>       发布日期
  -o, --output <file>     CHANGELOG 文件
preview - 预览 Unreleased
bash
changelog-generate preview

显示 [Unreleased] 区域的内容。

最佳实践

1. 规范的 Commit Message

使用 Conventional Commits 规范:

bash
# 好的示例
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 检查提交消息:

bash
npm install --save-dev @commitlint/cli @commitlint/config-conventional

配置 .commitlintrc.json:

json
{
  "extends": ["@commitlint/config-conventional"]
}
3. Git Hooks 自动化

使用 husky 在提交时检查:

bash
npm install --save-dev husky

# .husky/commit-msg
npx commitlint --edit $1
4. 定期更新

建议在以下时机更新 CHANGELOG:

  • 每次 PR 合并后
  • 每周定期更新
  • 发布前必须更新
5. 版本发布流程
bash
# 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

依赖安装

bash
# 使用 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

解决:

bash
# 确保在 Git 仓库目录中
git status

# 或初始化 Git 仓库
git init
问题 2: 无法解析提交

原因: 提交消息不符合 Conventional Commits 规范

解决: 修改配置,将不符合规范的提交归类到 "Other" 类型。

问题 3: 生成的 CHANGELOG 为空

检查:

bash
# 查看提交历史
git log --oneline

# 检查配置中的排除规则
cat .changelogrc.json | grep exclude

扩展和自定义

自定义模板

创建自定义模板 custom-template.hbs:

handlebars
# 变更日志

{{#each versions}}
## 版本 {{version}} ({{date}})

{{#each changes}}
**{{section}}**
{{#each commits}}
- {{subject}}
{{/each}}

{{/each}}
{{/each}}

配置使用:

json
{
  "template": {
    "path": "./custom-template.hbs"
  }
}
添加新的提交类型

在 .changelogrc.json 中添加:

json
{
  "types": [
    {
      "type": "security",
      "section": "Security",
      "emoji": "🔒",
      "priority": 2
    }
  ]
}

与其他工具集成

与 semantic-release 集成
json
{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/changelog",
    "@semantic-release/npm",
    "@semantic-release/git"
  ]
}
与 Renovate 集成

.renovate.json:

json
{
  "automerge": true,
  "prCreation": "immediate",
  "commitMessagePrefix": "chore(deps):"
}

版本: 1.0.0 作者: Peter Fei 许可: MIT

© peterfei, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 28 other files in .claude/skills/changelog-generator of peterfei/ai-agent-team.

  • SKILL.md
  • .gitignore
  • .npmignore
  • CHANGELOG.md
  • LICENSE
  • README.md
  • bin/cli.js
  • docs/PHASE2_IMPLEMENTATION_SUMMARY.md
  • examples/default-config.json
  • jest.config.js
  • package.json
  • src/core/ChangelogGenerator.js
  • src/core/CommitClassifier.js
  • src/core/GitAnalyzer.js
  • src/exporters/HTMLExporter.js
  • … and 14 more

Open the folder on GitHubat commit 9d85024

Compare with similar skills

Changelog Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Changelog Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Changelog Generator this skillpeterfei/ai-agent-team441—~2kAutomated safety check: PassMIT
Draft Release Notesjamiepine/voicebox57k—~941Automated safety check: PassMIT
Mole Release Notes Publishertw93/Mole70k—~1.9kAutomated safety check: PassGPL-3.0
Release Bumpjamiepine/voicebox57k—~1.1kAutomated safety check: PassMIT
Verdaccio Pull Request Workflowverdaccio/verdaccio18k—~1.9kAutomated safety check: PassMIT
Visual Reviewai-dynamo/dynamo8.3k—~4.5kAutomated safety check: PassApache-2.0

Similar skills

  • Draft Release Notes

    jamiepine/voicebox

    Writes or refreshes the Unreleased section of CHANGELOG.md as a themed narrative built from the commits, PRs and diff since the last version tag.

    57k GitHub stars~941 tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Publishes curated, bilingual release notes for an existing Mole version tag with gh release edit, including contributor thanks and reactions, after the release workflow finishes.

    70k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Release Bump

    jamiepine/voicebox

    Ends a release cycle by moving the Unreleased changelog notes under a dated version heading, bumping version files with bumpversion and tagging the commit.

    57k GitHub stars~1.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.

    18k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Visual Review

    ai-dynamo/dynamo

    Create self-contained interactive HTML code-review dashboards from GitHub or GitLab pull requests, checked-out branch diffs, or supplied unified diffs, with correctness and safe-to-merge scores…

    8.3k GitHub stars~4.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    Prepares a go-redis release locally: picks the next semver, gathers merged PRs, writes the RELEASE-NOTES entry and bumps versions, without publishing.

    22k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from peterfei/ai-agent-team

All 10 skills in this repo
  • Drawnote Skill

    peterfei/ai-agent-team

    智能笔记与流程图绘制工具(优化版-无权限读取)。根据用户提供的内容,自动生成精美的可视化笔记和流程图,支持多种风格(手写笔记、思维导图、流程图等),并导出为图片。使用内置模板,无需读取文件权限。适用于:(1) 学习笔记可视化,(2) 知识梳理与总结,(3) 流程图绘制,(4) 概念解释图表

    441 GitHub stars~2.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Softcopyright

    peterfei/ai-agent-team

    智能软件著作权申请材料生成工具。自动分析项目源码,生成符合软著申请要求的软件说明书和源代码文档。支持关键词搜索、智能源码分析、格式化输出和PDF导出。

    441 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Tidymydesktop

    peterfei/ai-agent-team

    智能桌面和目录整理工具。根据用户提示词自动分类、整理文件和应用程序图标,去除重复版本,生成整理报告。支持整理桌面或指定目录。

    441 GitHub stars~1.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Backend Dev Agent

    peterfei/ai-agent-team

    后端开发 Agent — API 设计、数据库优化、服务器端逻辑、认证授权、性能优化. An agent skill from peterfei/ai-agent-team.

    441 GitHub stars~966 tokensUpdated 3 mo ago
    Auto-check passed
  • Devops Engineer Agent

    peterfei/ai-agent-team

    DevOps 工程师 Agent — CI/CD 流水线、容器化与 K8s、基础设施即代码、可观测性. An agent skill from peterfei/ai-agent-team.

    441 GitHub stars~1k tokensUpdated 3 mo ago
    Auto-check passed
  • Tech Leader Agent

    peterfei/ai-agent-team

    技术负责人 Agent — 技术架构决策、代码审查、团队技术管理、技术规划与路线图. An agent skill from peterfei/ai-agent-team.

    441 GitHub stars~845 tokensUpdated 3 mo ago
    Auto-check passed

Works with

Categories

Questions about Changelog Generator

What does Changelog Generator do?

智能变更日志生成器 - 自动分析Git提交历史,生成符合规范的CHANGELOG.md。支持语义化版本管理、多种输出格式、增量更新和GitHub/GitLab集成。. Changelog Generator is an agent skill from peterfei/ai-agent-team.

When should I use Changelog Generator?

Changelog Generator fits situations like: tasks that involve Changelog and release notes.

How do I install Changelog Generator in Claude Code?

Run `npx skills add peterfei/ai-agent-team --skill changelog-generator -a claude-code`. Or copy the skill folder (.claude/skills/changelog-generator in peterfei/ai-agent-team) into .claude/skills/changelog-generator in your project. Claude Code loads it when a task matches its description.

How do I install Changelog Generator in Codex?

Run `npx skills add peterfei/ai-agent-team --skill changelog-generator -a codex`. Or copy the skill folder (.claude/skills/changelog-generator in peterfei/ai-agent-team) into .agents/skills/changelog-generator in your project. Codex loads it when a task matches its description.

Can I use Changelog Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add peterfei/ai-agent-team --skill changelog-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/changelog-generator, .gemini/skills/changelog-generator, .github/skills/changelog-generator and .opencode/skills/changelog-generator in your project.

What does Changelog Generator need to run?

Going by SKILL.md and its folder, Changelog Generator needs JavaScript for the scripts in its folder and the command-line tools its instructions call (git, npm, npx and nvm). Our summary lists: Node.js.

Does Changelog Generator access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Changelog Generator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Changelog Generator use?

Changelog Generator is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Changelog Generator use?

About 2k tokens (SKILL.md is roughly 8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Changelog Generator?

Skills that share tags, products or a category with Changelog Generator: Draft Release Notes (jamiepine/voicebox, 57k stars), Mole Release Notes Publisher (tw93/Mole, 70k stars), Release Bump (jamiepine/voicebox, 57k stars) and Verdaccio Pull Request Workflow (verdaccio/verdaccio, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Changelog Generator?

peterfei (a GitHub user) maintains it in peterfei/ai-agent-team, which has 441 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on June 29, 2026.

Source: peterfei/ai-agent-team on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.