Skip to content
Back to skills

Ship

ASecurity

Finish a contract task: gate, cold Opus judge, fix loop, receipt with models and tokens per unit, local commit. Use when every unit of .claude/state/contract.md is done, or when the user says ship, finish or commit during a contract.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspythongobashgit

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add alptugince/claude-code-ai-harness-kit --skill ship --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ship?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ship
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alptugince-ship/badge)](https://www.skillsdirectory.com/skills/alptugince-ship)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ship
description: "Finish a contract task: gate, cold Opus judge, fix loop, receipt with models and tokens per unit, local commit. Use when every unit of .claude/state/contract.md is done, or when the user says ship, finish or commit during a contract."
---

# Ship

Run these steps in order. Do not skip one because an earlier run looked fine. `<hooks>` is
`.claude/hooks` when the project has `.claude/hooks/harness_workflow.py`, otherwise `~/.claude/hooks`.
The phase machine enforces the order: review-pack needs every unit done, ROUND 2 needs a FAIL
verdict, receipt needs a PASS in phase REVIEW. When the task ran through `harness_graph.py run`,
steps 2 to 5 are done by the runner (with `--commit` also the commit); continue at step 6.
At a usage wrap-up or stop level, finish the step in progress and record the pause instead of
starting the next step.

## 1. Advisor check
If the advisor is available, call it once: "The contract is in .claude/state/contract.md and I
believe every unit is done. What is most likely still wrong?" Fix a named defect through the owning
unit's subagent (step 4 rules) before continuing.

## 2. Review pack
```bash
python <hooks>/harness_workflow.py review-pack
```
A non-zero exit means the gate fails: dispatch the subagent of the unit that owns the failing file,
then run it again.

## 3. Judge (cold context)
Spawn the `judge` agent with exactly this prompt and nothing about your own reasoning:

> Review the change in .claude/state/review/ (contract.md, diff.patch, gate.log). Return your verdict in the required format.

The harness rejects any other REVIEW prompt, stores the reply as `.claude/state/review/verdict.md`,
records its hash for `receipt` and applies its ESCALATE lines; do not write that file yourself.

## 4. Act on the verdict
- `VERDICT: PASS`: step 5.
- `VERDICT: FAIL`: group the BLOCKING lines by owning unit:
  ```bash
  python <hooks>/harness_workflow.py unit-of <path> [<path> ...]
  ```
  For each unit dispatch its subagent again with
  `prompt="UNIT: <id>\nROUND: 2\nFix these judge findings and add a test for each:\n<BLOCKING lines>"`
  and the model `status` shows (code round 2 runs on Opus; documents keep their model unless the
  judge escalated them). Fix quick MINOR lines in the same dispatch; the rest go into the receipt.
  Then go back to step 2. If round 2 still fails, stop and show the user the BLOCKING lines; do not
  start round 3.
- `VERDICT: REPLAN`: stop. Tell the user the reason and ask them to switch to plan mode.

## 5. Receipt and commit
```bash
python <hooks>/harness_workflow.py receipt --rounds <1 or 2>
git status --short
git add -A
git commit -F .claude/state/review/commit-msg.txt
python <hooks>/harness_workflow.py close
```
Before `git add -A`, check `git status --short` lists only this task's files; stage paths
explicitly when it does not. Never push. Report the commit hash, the receipt path, and which units
ran on which model with their token totals (from the receipt).

## 6. Harden (after close, so the main session may edit again)
For every BLOCKING finding fixed and every escalation or halt in the receipt, name the failure class
and propose one permanent guard with the `failure-to-guardrail` skill: a regression test, a gate
check, a path-scoped rule, or a hook pattern. If a `sonnet` code unit or a `haiku` document unit
needed escalation, propose the rubric line in the `contract` skill that would have chosen the right
model first. Add guards only after the user agrees.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.