AGENT SKILL

变更日志条目生成

changelog-entry

按照 Keep a Changelog 格式为所有未发布的提交起草变更日志条目。将提交分组为新增(Added)、变更(Changed)、修复(Fixed)、移除(Removed)和安全(Security)。在发布新版本之前或更新 CHANGELOG.md 时使用。

适用职业发布经理
License 许可
MIT
最近更新
2026-05-15
Stars
★ 13
Forks
1

01 前言 Front Matter

name
changelog-entry
title
changelog-entry
description
Draft the changelog entry for all unreleased commits in Keep a Changelog format. Groups commits into Added, Changed, Fixed, Removed, and Security. Use before releasing a new version or when updating CHANGELOG.md.
allowed-tools
Bash(git log *) Bash(git describe *) Bash(git tag *)

02 资源文件 60

03 SKILL.md 正文

Draft a changelog entry for the current unreleased changes.

Step 1: Find the last release tag

!git describe --tags --abbrev=0 2>/dev/null || echo "none"

If the output above is none, there are no previous tags — include all commits in the log.

Step 2: Get the commits since the last tag

If a last tag was found:

git log <last-tag>..HEAD --oneline --no-merges

If no last tag was found:

git log --oneline --no-merges

Step 3: Categorize the commits

Group the commits into Keep a Changelog sections using these rules:

  • Added: new features, new commands, new files, new endpoints
  • Changed: modifications to existing behavior, refactors, renames
  • Fixed: bug fixes, error handling improvements, incorrect behavior corrected
  • Removed: deleted features, removed flags, dropped support
  • Security: vulnerability fixes, dependency updates addressing CVEs, auth changes

Skip merge commits, version bump commits (e.g., "Bump version to 1.2.0"), and commits that only touch lock files.

If a commit is ambiguous, prefer the more specific category. If it touches multiple areas, list it under the primary one.

Step 4: Output the entry

Output only the markdown block, ready to paste into CHANGELOG.md under ## [Unreleased]. Do not include any surrounding prose.

Format:

## [Unreleased]

### Added
- Description of new feature (commit: abc1234)

### Changed
- Description of change (commit: def5678)

### Fixed
- Description of fix (commit: ghi9012)

Omit sections that have no entries. If there are no unreleased commits at all, output: No unreleased commits since the last tag.

04 同仓库更多 Skills

davila7
davila7/claude-with-skills

版本号升级与 Git 标签

tag-version

升级软件包版本并创建带注释的 git 标签。接受语义化版本号(1.2.0)或升级类型(patch、minor、major)。不执行推送——请使用 publish 技能进行推送。作为发布工作流的一部分使用。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

项目完整发布流程

release

运行完整的发布工作流:变更日志条目、版本升级、git 标签和 GitHub Release。依次调用 changelog-entry、tag-version 和 publish。在发布项目新版本时使用。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

GitHub 版本发布

publish

将当前分支和所有标签推送到 origin,然后使用最新标签及其 CHANGELOG.md 条目创建 GitHub Release。在 tag-version 之后使用以完成发布。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

代码自动格式化

auto-format-on-edit

每次编辑后使用 Prettier 和 ESLint 自动格式化代码文件。当 Claude 编辑文件时在后台激活。格式化是静默的——没有提示,除非格式化程序失败,否则没有输出。当您希望在编码会话期间自动执行一致的格式化时使用。

软件开发工程师开发环境与工具链管理
★ 13
davila7
davila7/claude-with-skills

代码质量审计

code-quality-audit

运行全面的代码质量审计,涵盖安全性、性能和可维护性。用于季度审计、发布前审查或接入大型代码库时。

测试工程师测试与质量保障
★ 13
davila7
davila7/claude-with-skills

版本标签管理

tag-version

升级包版本并创建带注释的 git 标签。接受语义版本号(1.2.0)或升级类型(patch、minor、major)。不推送——使用 publish 技能来推送。作为发布工作流的一部分使用。

发布经理部署与发布管理
★ 13