/long-haul:haul-shipfrom long-haul
Final phase of long-haul iterative development: reports goal vs achieved, summarises explore/exploit path, then creates a feature branch and opens a PR with user confirmation.
Ships in long-haul. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Phase 4 of long-haul. Runs when the haul ends — the goal cleared, or the round cap was hit. It does two things: report what happened, then ship the incumbent. The PR is outward-facing — confirm with the user before pushing.
Read STATE.md (round log + ## Tried), every R<N>.md, the current
incumbent, and — if the haul ran detached — .longhaul/PROGRESS.log (the
per-loop trail an overnight run leaves instead of chat). Write
.longhaul/SUMMARY.md (template in
../long-haul/reference/file-formats.md)
covering:
/goal condition and whether it was met. If partial (cap hit), give the incumbent's final check output and how far short.## Tried). This shows where the win came from — a refinement or a fresh approach.BASE (git diff <BASE>..<incumbent> --stat), and the before→after on the success signal.Evidence before assertion: run the check before writing "goal achieved". An honest partial beats an overstated win.
All git/gh operations run in REPO (from STATE.md) — the deliverable's repo,
which may not be the cwd the haul was invoked from. The PR opens against REPO's
remote, not cwd's.
longhaul/incumbent branch (its commits, from BASE). Rename it to a readable feature branch for the PR — git branch -m longhaul/incumbent longhaul/<short-topic> — never open a PR from the default branch. Delete any leftover longhaul/attempt-* scratch branches and git worktree prune so the PR carries only the kept work, not attempt scaffolding. The PR's base is BASE's branch.git log <BASE>..HEAD --oneline), and the proposed PR title + body (from SUMMARY.md). If GATES sets confirm_pr=required (the default), set STATUS: WAITING-USER: confirm-pr and wait for an explicit yes. If confirm_pr=auto (an accepted unattended finish), skip the wait, open the PR as a draft, and never push to a protected or default branch.git push -u origin <branch>, then gh pr create --title "…" --body "…" (add --draft under confirm_pr=auto). Report the PR URL — don't claim it's open until gh returns one.STATUS: DONE, PHASE: wrap in STATE.md. Tear down any stray worktree (git worktree prune). Ask whether to delete .longhaul/ now or keep it (it's gitignored either way). If /goal is somehow still active, remind the user it auto-clears on success, or to /goal clear.Pull straight from SUMMARY.md. End the body with:
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Commits you author here end with:
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
.longhaul/ or longhaul/* scratch branches in the PR. They're transient.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ccomkhj/skills --plugin long-haul5 skills in this plugin
/haul-goalPhase 2 of long-haul. Turn .longhaul/SPEC.md into a /goal-ready completion condition — one measurable end state, a stated transcript-demonstrable check, the constraints that must hold, and a round cap — written to .longhaul/GOAL.md plus the literal /goal line for the user to run. If the end state isn't clear or measurable, iterate with the user one question at a time until it is. Use after haul-spec, or standalone to craft a good /goal condition from a clear spec./haul-loopPhase 3 of long-haul — the per-turn loop. Under an active /goal, each turn run exactly one round: decide explore (a fresh approach off the base commit) vs exploit (refine the incumbent), implement the attempt in a git worktree following the /implement contract, run the goal's stated check, and keep the attempt only if it beats the incumbent — a ratchet that never regresses. Writes R<N>.md, surfaces the check output in chat. Pass --background to detach the whole haul into a nohup'd driver that survives terminal/session close (for overnight/remote runs), logging a structured block per loop to PROGRESS.log. Use as the iteration phase of a long-haul run./haul-specPhase 1 of long-haul. Turn the user's ask into a well-defined spec — a located deliverable, a transcript-demonstrable success signal, the toolbox of skills + MCP the haul may use, constraints, and out-of-scope. If the ask is vague, grill it first. Produces .longhaul/SPEC.md. Use as the first phase of a long-haul run, or standalone to harden a fuzzy ask into something buildable before setting a goal./long-haulAuto-chaining orchestrator for a solo long-horizon goal loop. Sharpen a spec (grill it if vague), forge a /goal completion condition, then haul toward it turn after turn in a git worktree — each turn deciding explore (a fresh approach off the base) vs exploit (refine the incumbent), keeping only measured wins, until the goal holds. Use when the user wants one agent driven relentlessly toward a verifiable target over many turns — not a one-shot edit. Reach for it when the user says "keep working until", "loop until done", "long haul", or hands a spec to be built to completion.Other plugins' skills for the same job