用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gittower/git-flow-next --skill release命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | release |
| description | Update changelog and version based on git history using semantic versioning and conventional commits |
| allowed-tools | Bash, Read, Edit, Grep, Glob |
Automatically update CHANGELOG.md and version files based on git history, semantic versioning, and conventional commits.
Read RELEASING.md for the full release process and conventions.
# Get the latest version tag
git describe --tags --abbrev=0
# List all commits since last tag, excluding previous version bump commits
git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-merges --grep="^chore: Bump version" --invert-grep
Ignore any chore: Bump version to X.Y.Z commits — these are artifacts of previous /release runs that haven't been tagged yet.
Analyze commit types (excluding version bump commits) to determine the correct version bump:
BREAKING CHANGE in footer or ! after type → major bumpfeat: commits → minor bumpfix:, perf:, or other patch-level commits → patch bumpIf there are no user-facing changes (only docs:, refactor:, test:, chore:, ci:, style:), inform the user that there are no releasable changes and ask whether to proceed.
Map commits to changelog sections per RELEASING.md:
| Commit Type | Changelog Section | Include? |
|---|---|---|
feat: | Added | Yes |
fix: | Fixed | Yes |
BREAKING CHANGE | Changed | Yes |
perf: | Changed | Yes |
build: | Changed | Only if user-facing |
docs: | — | No |
refactor: | — | No |
test: | — | No |
chore: | — | No |
ci: | — | No |
style: | — | No |
Write human-readable changelog entries:
CHANGELOG.md[Unreleased] that has no corresponding git tag). This happens when /release was run before but no tag was created yet.
[Unreleased] with today's date.[Unreleased] link to compare new version to HEADUpdate the version string in both files (they must match):
version/version.go — the Version constantcmd/version.go — the Version variablego build -o /tmp/git-flow main.go && /tmp/git-flow version
Stage and commit all changes:
git add CHANGELOG.md version/version.go cmd/version.go
Check if the previous commit is already a chore: Bump version to ... commit (from a prior /release run). If so, amend that commit instead of creating a new one:
# If previous commit is a version bump:
git commit --amend -m "chore: Bump version to X.Y.Z"
# Otherwise create a new commit:
git commit -m "chore: Bump version to X.Y.Z"
Show the user:
git push origin main
git tag vX.Y.Z
git push origin vX.Y.Z