一键导入
version
Bump the project version (major, minor, or patch) and add a changelog entry. Use when preparing a release, bumping versions, or the user says "/version".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Bump the project version (major, minor, or patch) and add a changelog entry. Use when preparing a release, bumping versions, or the user says "/version".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | version |
| description | Bump the project version (major, minor, or patch) and add a changelog entry. Use when preparing a release, bumping versions, or the user says "/version". |
| allowed-tools | Read Edit Bash(git:*) |
Bump the project version using semver. Accepts one argument: major, minor, or patch.
Given a version MAJOR.MINOR.PATCH:
patch → increment PATCH, e.g. 0.4.6 → 0.4.7minor → increment MINOR, reset PATCH, e.g. 0.4.6 → 0.5.0major → increment MAJOR, reset MINOR and PATCH, e.g. 0.4.6 → 1.0.0package.json — top-level "version" fieldCHANGELOG.md — new version section inserted at the topIf no argument is provided, ask the user which bump type they want (major, minor, or patch).
Read package.json to get the current version.
Compute the new version according to the semver rules above.
Tell the user: "Bumping version from X.Y.Z to A.B.C"
Update package.json using the Edit tool.
Run git log --format='%s%n%n%b' <last-bump-hash>..HEAD where <last-bump-hash> is the most recent commit matching chore: bump version to (find it with git log --oneline --grep='chore: bump version to' -1). If no such commit exists, use all commits from the beginning of history. Use the commit subjects and body descriptions as context to write a concise bullet-point list of significant changes for the new version entry.
Read CHANGELOG.md and insert a new version section immediately after the # Changelog heading (before the first existing ## entry) using the Edit tool:
## A.B.C
- Summary of change 1
- Summary of change 2
Report the updated version.
Stage the changed files and commit with the message: chore: bump version to A.B.C