用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/arbazkhan971/godmode --skill ship命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | ship |
| description | Ship workflow. Checklist, dry-run, ship, verify. PR, deploy, or release. |
/godmode:ship, "ship it", "deploy", "release"# 1. INVENTORY — What's being shipped?
git log main..HEAD --oneline
git diff main..HEAD --stat
commits = git log main..HEAD --oneline
IF commits is empty:
Print: "Nothing to ship." STOP
ship_type = detect: PR | release | deploy
Print: "{N} commits, {M} files. Type: {ship_type}."
# 2. PRE-SHIP CHECKLIST
{build_cmd}; echo "build:$?"
{lint_cmd}; echo "lint:$?"
{test_cmd}; echo "test:$?"
grep -rn 'API_KEY\|SECRET\|PASSWORD\|TOKEN=' \
$(git diff main..HEAD --name-only) 2>/dev/null
grep -rn '<<<<<<<\|>>>>>>>' \
$(git diff main..HEAD --name-only) 2>/dev/null
FOR each (name, result) in checks:
Print: " [{PASS|FAIL}] {name}"
IF build OR lint OR test FAILED:
delegate to /godmode:fix (max 3 rounds)
Re-run checklist. IF still failing -> STOP.
IF secrets found:
"BLOCKED: secrets in diff." STOP.
IF conflict markers found:
"BLOCKED: merge conflicts." STOP.
IF only TODOs found:
"WARNING: TODOs found. Proceeding."
| Phase | PR | Release | Deploy |
|---|---|---|---|
| Target | title + body | version + tag | config |
| Ship | git push; gh pr create | git tag; gh release | fly deploy |
| Verify | gh pr checks --watch | gh release view | curl health |
| Rollback | gh pr close | git tag -d + push | fly rollback |
# 4. DRY-RUN: Print commands + rollback.
# Require user types 'yes' to proceed.
# 5. SHIP: Execute commands. Print URL.
# 6. VERIFY: Check result. On deploy failure:
# execute rollback immediately.
CODE QUALITY: test + lint + build exit 0
SECURITY: no secrets, no .env, no conflict markers
npm audit -> 0 critical/high
READINESS: branch up-to-date, CI green
IF any CODE QUALITY or SECURITY fails: BLOCKED
IF COMPLETENESS fails: WARNING (proceed + ack)
PR MERGE: git revert <sha>. Time: <5min.
RELEASE: git tag -d {tag} && git push :tag. <5min.
DEPLOY: fly releases rollback | kubectl rollout undo
Time: <10min. Verify: health check 200.
IF rollback impossible (destructive migration):
WARN + require explicit user confirmation.
PR: monitor CI 10 minutes
Release: monitor downloads 30 minutes
Deploy: monitor health 15 minutes
CHECK every 60s: health 200, error rate, latency
P0 (health down, errors >10x): IMMEDIATE ROLLBACK
P1 (errors >2x, latency >3x): ROLLBACK in 15min
P2 (new errors, health OK): INVESTIGATE
P3 (cosmetic): DOCUMENT, fix forward
Append to .godmode/ship-results.tsv:
timestamp\tship_type\tcommit_sha\tbranch\toutcome\turl\trollback_cmd
Print: Ship: {type} completed. {outcome}. URL: {url}.
After the ship summary line, the agent MUST print the Goal-Bridge Contract filled in for this ship as the mandatory final output — metric: the post-deploy verification command that exits 0 when the ship is healthy (e.g. the Verify row in Ship by Type); threshold: the health bound the metric must satisfy; evidence: the file path where metric output/proof is written every round; rollback: the exact trigger that reverts the work. Full protocol: skills/goal-bridge/SKILL.md.
Goal-Bridge Contract (mandatory final output):
SKILL.md §14. Principles prelude, pre-commit audit, terse/stdio/tokens, DispatchContext validation, Progressive Disclosure routing, discard cost hierarchy all fire by default. Ship logs to .godmode/token-log.tsv per round unless GODMODE_TOKENS=0.KEEP if: post-ship verification passes
DISCARD if: verification fails OR rollback triggered
On discard: execute rollback_cmd immediately.
STOP when FIRST of:
- Ship completed + verification passed
- 3 rounds of fix failed to resolve blockers
- Same check keeps failing after fix attempts