一键导入
bump-version
Suggest and apply a semver version bump based on commits since the last tag
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Suggest and apply a semver version bump based on commits since the last tag
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Push current branch to remote origin
Scaffold a new Sharpy.Stdlib module (spy-sourced or handwritten C#) with all required files, conventions, docs, and tests
Implement a plan with a coordinated agent team
Run compiler or cross-language benchmarks and compare results
Regenerate C# snapshot tests and spy stdlib after intentional codegen changes
Stress-test property tests across many rounds to find rare bugs. Each round uses fresh random seeds.
| name | bump-version |
| description | Suggest and apply a semver version bump based on commits since the last tag |
| argument-hint | [--apply] [--major|--minor|--patch] |
Analyze commits since the last git tag and suggest (or apply) the appropriate semver bump to Directory.Build.props and editors/vscode/package.json.
Only runs on the dev or mainline branch. Exits early on other branches.
Usage:
/bump-version — analyze and suggest, do not apply/bump-version --apply — analyze, suggest, and apply the bump/bump-version --minor --apply — force a minor bump and apply itgit branch --show-current
If the branch is not dev or mainline, report that version bumps are only suggested on dev/mainline and stop.
Run in parallel:
git describe --tags --abbrev=0 2>/dev/null || echo "none"
grep -oP '(?<=<SharpyVersion>)[^<]+' Directory.Build.props
If no tags exist, treat last tag as 0.0.0 and all commits as unreleased.
git log --oneline <last-tag>..HEAD
If the current version already differs from the last tag (a bump is already pending), note this and still show the commit analysis — the user may want to revise the bump.
Scan commit subjects for conventional commit prefixes:
| Trigger | Bump |
|---|---|
! after type (e.g., feat!:) or BREAKING CHANGE in body | major |
feat: or feat(...): | minor |
fix:, perf:, refactor:, chore:, docs:, test:, build:, ci: | patch |
Take the highest-priority bump across all commits. If no conventional commits found, default to patch.
Parse <current-tag> (strip leading v) as MAJOR.MINOR.PATCH and apply the bump:
(MAJOR+1).0.0MAJOR.(MINOR+1).0MAJOR.MINOR.(PATCH+1)If --major, --minor, or --patch was passed in $ARGUMENTS, override the computed bump level.
Print a summary:
Last tag: v0.3.0
Current: 0.4.0 (already bumped — bump pending)
Commits: 126 since v0.3.0
Suggestion: minor bump → 0.4.0
Reason: 21 feat commits detected
If the current version already matches the suggested version, say so and stop (nothing to do).
If --apply was in $ARGUMENTS and the suggested version differs from the current version:
Edit Directory.Build.props:
<SharpyVersion>X.Y.Z</SharpyVersion> with the new versionEdit editors/vscode/package.json:
"version": "X.Y.Z" with the new versionReport which files were updated and remind the user to commit the changes (suggest /commit).
--apply