一键导入
release-cli
Prep a knock-cli release. Use when the user asks to prepare, create, or cut a release, or bump the version.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Prep a knock-cli release. Use when the user asks to prepare, create, or cut a release, or bump the version.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | release-cli |
| description | Prep a knock-cli release. Use when the user asks to prepare, create, or cut a release, or bump the version. |
| argument-hint | ["version"] |
Prepare a new CLI release by bumping the version, creating the tag, and opening a PR.
If no version is provided, ask the user what version to release. Check the current version in package.json to help them decide (patch, minor, or major bump).
Execute these steps:
Check prerequisites
git status to ensure working directory is cleangit checkout main && git pull to ensure you're on latest mainnode -p "require('./package.json').version"Create release branch
git checkout -b release-v{version}
Build and bump version
yarn build && yarn version --new-version {version}
This updates package.json and creates the git tag automatically.
Push branch and tag
git push origin release-v{version}
git push origin v{version}
Create PR Create a PR with title "v{version}" targeting main. The PR body should note this is a release version bump.
Provide next steps Tell the user:
/release cut knock-cli -v {version}yarn version creates both the package.json change AND the git tag