一键导入
version-bump
Bump semantic version across all project files (package.json, CLI, README, docs). Use for version updates without full release.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Bump semantic version across all project files (package.json, CLI, README, docs). Use for version updates without full release.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | version-bump |
| description | Bump semantic version across all project files (package.json, CLI, README, docs). Use for version updates without full release. |
| allowed-tools | ["Read","Edit","Glob","Grep","Bash(npm run build)","Bash(npm test)","Bash(npm install:*)","Bash(node:*)","Bash(echo:*)","AskUserQuestion"] |
| user-invocable | false |
Updates semantic version consistently across all project files. This skill handles version updates only - use /release for the full release workflow including git and npm publishing.
Use when user says: "bump version", "update version", "version bump", or when called by the release skill.
These are ALL locations where version numbers appear. Every bump MUST update all of these:
| File | Line | Pattern | Example |
|---|---|---|---|
package.json | 3 | "version": "X.Y.Z" | "version": "2.1.0" |
src/cli/index.ts | 18 | const VERSION = 'X.Y.Z'; | const VERSION = '2.1.0'; |
| File | Line | Pattern | Example |
|---|---|---|---|
README.md | 12 | > **vX.Y.Z**: | > **v2.1.0**: |
docs/index.html | 45 | "softwareVersion": "X.Y.Z" | "softwareVersion": "2.1.0" |
| File | Notes |
|---|---|
package-lock.json | Updated by npm install --package-lock-only |
Ask user or determine from context:
| Type | Pattern | When to Use |
|---|---|---|
| patch | X.Y.Z+1 | Bug fixes, minor changes |
| minor | X.Y+1.0 | New features, backwards compatible |
| major | X+1.0.0 | Breaking changes |
Or accept explicit version like "2.1.0".
node -p "require('./package.json').version"
package.json (line 3):
"version": "NEW_VERSION",
src/cli/index.ts (line 18):
const VERSION = 'NEW_VERSION';
README.md (line 12):
> **vNEW_VERSION**: [brief description of changes]
docs/index.html (line 45):
"softwareVersion": "NEW_VERSION",
npm install --package-lock-only
npm run build
# All versions should match
echo "package.json: $(node -p "require('./package.json').version")"
echo "CLI binary: $(node dist/cli.js --version)"
# Tests should pass
npm test
Before completing, verify ALL match the new version:
package.json version fieldsrc/cli/index.ts VERSION constantREADME.md version bannerdocs/index.html softwareVersionnpm run build succeedsnpm test passesnode dist/cli.js --version outputs correct version| Change Type | Version Part | Reset |
|---|---|---|
| Bug fix | Patch (Z) | None |
| New feature | Minor (Y) | Patch → 0 |
| Breaking change | Major (X) | Minor → 0, Patch → 0 |
Examples:
2.0.3 + patch = 2.0.42.0.3 + minor = 2.1.02.0.3 + major = 3.0.0package-lock.json manually/release for full workflowUse /release for full release workflow including: