ship
Glue workflow — coupling gate, local review, conventional commit, and PR creation with waiver discipline in one governed sequence
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Glue workflow — coupling gate, local review, conventional commit, and PR creation with waiver discipline in one governed sequence
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ship |
| description | Glue workflow — coupling gate, local review, conventional commit, and PR creation with waiver discipline in one governed sequence |
| allowed-tools | Bash, Read, Edit, Glob, Grep, Task, Skill |
| argument-hint | [optional scope note or PR title] |
Orchestrates the pre-PR sequence this repo otherwise relies on the
operator to remember. Bound by .claude/rules/orchestrator-rules.md
(checkpoints are real stops), .claude/rules/governed-artifact-reads.md,
and CONST-005 (.claude/rules/adversarial-prompt-refusal.md).
Division of labour: the hooks in .claude/settings.json are the
deterministic safety net (freshness auto-heal, pr-create gate); this
skill is the judgment layer that sequences review and commit so the
net is never needed.
git branch --show-current — if on main, STOP and create a feature
branch first (NNN-short-name when the work belongs to a spec).git status --short — confirm the changes are the intended set;
surface anything unexpected before proceeding.make pr-prepRun make pr-prep (codebase-index refresh + spec-code coupling gate
against origin/main). Outcomes:
git add .derived/codebase-index/ and
continue.establishes: / extends: / refines: / co_authority:)
covers every changed path. The gate enforces the declared graph,
not prose mentions in the spec body. Do NOT edit a spec to
retroactively justify an action that contradicts its design —
that is a CONST-005 halt: surface the conflict and stop.Spec-Drift-Waiver block in the PR body.
CHECKPOINT — requires explicit user approval. The waiver must
be in the body at creation time: the CI check reads the body from
the triggering event's payload, so a body edit without a fresh
push is not picked up (a new commit does trigger a fresh run that
reads the updated body — but by then a round-trip is burned).Invoke the code-review skill (v2: triage → decorrelated finders →
adversarial refuters → synthesis). Honour its BIAS RULE — never feed
finder agents the author's rationale; rationale belongs in the
Declared Trade-offs Ledger the review emits.
.claude/**, schemas), re-run make pr-prep before continuing.Local-Review-Evidence: line and the
confirmed-findings + ledger summary — Step 4 posts them to the PR.Invoke the commit skill (conventional, impact-focused message).
.derived/ artifacts in the same commit.Co-Authored-By
trailers, in commits or PR bodies.PR creation is outward-facing. Confirm with the user, then:
Push the branch.
gh pr create with a body containing Summary + Testing, and — only
if Step 1 chose the waiver path with user approval — the
Spec-Drift-Waiver block inline in --body (not --body-file).
The pr-gate hook re-runs make pr-prep at this moment and blocks on
an unwaivered failure. That is expected defense-in-depth, not an
error; if it blocks, return to Step 1.
Immediately after creation, post the Step 2 review evidence as a PR comment — the CI ai-review verifies it and skips regeneration when the head SHA and diff hash match (it waits only briefly, so post promptly):
gh pr comment <number> --body "$(cat <<'EOF'
## Local Review Evidence
<confirmed findings summary, severity-ordered>
### Declared Trade-offs Ledger
<ledger entries>
Local-Review-Evidence: head=<head-sha> diff_sha256=<hash> confirmed=<n> refuted=<m> ledger=<k>
EOF
)"
The evidence line must reflect the FINAL pushed head — recompute it after Step 3's commit if anything changed since the review.
/shepherd-prs (typically running under
/loop) — it reruns infrastructure-class failures, triages new
review comments adversarially, and verifies the merge landed. No
authoring session should babysit checks.gh api .../commits/<sha>/check-runs); on real failure, halt and
present the error (orchestrator rule 4).main (git pull + git log), not just
the MERGED status.Run the local fast CI loop (`make ci`) and automatically fix discovered issues using concurrent agents
One-time contributor setup — run `make setup` and verify governed reads work end-to-end so `/init` can report lifecycle and structural counts.
Run dead code and duplicate detection, get categorized cleanup recommendations
Create a git commit with an impact-focused conventional commit message
Staged adversarial review — triage, decorrelated finders (warm + cold), per-finding refuters, evidence-ready report
Post-create PR lifecycle automation — rerun infra failures, triage review comments adversarially, enqueue when green, verify merged main. Designed for /loop.