用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/redsub-captain/redsub-claude-code --skill redsub-ship命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | redsub-ship |
| description | Enforced release pipeline. Save → Validate → Review → Version → Merge → Tag → Push. |
$ARGUMENTS provides version type and release description.
Format: [patch|minor|major] [description]
Default: patch if omitted.
| Type | Meaning | Example |
|---|---|---|
| patch | Bug fix, minor change | 1.0.0 → 1.0.1 |
| minor | New feature (backward compatible) | 1.0.0 → 1.1.0 |
| major | Breaking change | 1.0.0 → 2.0.0 |
type: description
| Type | Meaning | Example |
|---|---|---|
feat | New feature | feat: add user authentication API |
fix | Bug fix | fix: handle null pointer exception |
refactor | Refactoring (no behavior change) | refactor: restructure auth module |
chore | Build, config, version, etc. | chore: update dependencies |
docs | Documentation | docs: improve README install guide |
test | Tests | test: add login failure test cases |
| Step | Format | Example |
|---|---|---|
| Version bump | chore: bump version to X.Y.Z | chore: bump version to 2.12.0 |
| Merge | release: vX.Y.Z - description | release: v2.12.0 - add auth module |
| Tag | vX.Y.Z description (no type prefix) | v2.12.0 add auth module |
Determine the project's commands:
package.json scripts and inferpnpm-lock.yaml → pnpm, yarn.lock → yarn, default → npm)Commit pending changes (following commit convention):
git add -A
git commit -m "feat: description"
feat, fix, refactor, etc.feat: add commit convention guide, fix: fix session save errorSkip if no changes.
Run with Verification Gate principles. Show actual command output as evidence.
Run resolved lint, check, and test commands sequentially.
Stop immediately on failure.
Suggest code review before merge:
/superpowers:requesting-code-review — code reviewUser may skip.
Update all 3 version files (package.json, plugin.json, marketplace.json):
<package-manager> version [patch|minor|major] --no-git-tag-version
Read the new version from package.json, then update the other 2 files to match:
# Read new version
NEW_VER=$(node -p "require('./package.json').version")
# Sync plugin.json
python3 -c "
import json
with open('.claude-plugin/plugin.json','r') as f: d=json.load(f)
d['version']='$NEW_VER'
with open('.claude-plugin/plugin.json','w') as f: json.dump(d,f,indent=2,ensure_ascii=False); f.write('\n')
"
# Sync marketplace.json
python3 -c "
import json
with open('.claude-plugin/marketplace.json','r') as f: d=json.load(f)
d['plugins'][0]['version']='$NEW_VER'
with open('.claude-plugin/marketplace.json','w') as f: json.dump(d,f,indent=2,ensure_ascii=False); f.write('\n')
"
git add package.json .claude-plugin/plugin.json .claude-plugin/marketplace.json
# Lock file is also updated by version bump — stage it
for f in package-lock.json pnpm-lock.yaml yarn.lock; do
[ -f "$f" ] && git add "$f"
done
Update the Plugin version in the "Current" table:
sed -i '' "s/| Plugin | [0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]* |/| Plugin | $NEW_VER |/" COMPATIBILITY.md
git add COMPATIBILITY.md
Update the version comment in templates/CLAUDE.md.template:
sed -i '' "s/<!-- redsub-template-version:.* -->/<!-- redsub-template-version:$NEW_VER -->/" templates/CLAUDE.md.template
git add templates/CLAUDE.md.template
git commit -m "chore: bump version to $NEW_VER"
Use AskUserQuestion tool to get approval:
On "Merge":
git checkout main
git merge --no-ff [feature-branch] -m "release: v[new version] - [description]"
git tag -a v[new version] -m "v[new version] [description — no type prefix]"
v2.10.0 add commit convention guide (OK)v2.10.0 feat: add commit convention guide (redundant type prefix)Use AskUserQuestion tool to get approval:
On "Push only":
git push origin main --tags
On "Push + Release":
git push origin main --tags
gh release create v[new version] --title "v[new version]" --notes-from-tag