deliver
Deliver an approved GTM plan: tasks with reviews and correction rounds, then the final review. Use when /gtm:plan is done.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-14
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- deliver
- description
- Deliver an approved GTM plan: tasks with reviews and correction rounds, then the final review. Use when /gtm:plan is done.
- argument-hint
- [plan path or slug] [mandate=<file>]
03 SKILL.md 正文
Deliver (ends at checkpoint 3: the go)
Ground rules: as in the gtm skill §0. A mandate (the argument, the plan's section or
<root>/reports/<slug>/mandate.md): the plugin's templates/mandate.md first.
1. Prepare
- Branch: from
git.baseasgit.branchsays (the orchestrator does this once; agents never switch branches); note the base commit. A range's files:git -c core.quotePath=false diff --name-only --no-renames "<a>..<b>"(one path a line,"…"C-quoted), never the planned or reported one. - From
team.md:team={ role: {model, effort} }per role;triggers, theonspecialists with their regexes;fixRounds;fixCeiling, the N ofFix track ceiling: N files; the budgets, Gates linesbudget per taskandbudget per branch(<minutes> min, <tokens>k tokens; absent ornone: none);cadence,review cadence(absent: none);standardRounds,fix rounds per standard review: N(1). A ledgerrulinglimits: lighter …for this slug overrides the roles it names inteam, on every dispatch (resumes too), unless struck through or beyond whatgtm§0's card A allows (then ignored, a Heads-up). Your own run files:templates/delivery.md. - Efforts:
team's, raised or lowered on each dispatch's range as the Roles note of${CLAUDE_PLUGIN_ROOT}/templates/team.mdsays;risky: therisky pathsregexes, a list. - Progress:
<root>/reports/<slug>/progress.md, one line per run, any result (reruns append): status, tier, correction rounds, reviewers,<base>..<head>, a wave's merge commit. Each run's line (design, spec, plan, task, final review, re-review, re-run review, fix wave) ends· <s> s · <t>k · <a> agentsfrom Claude Code'sduration_ms,subagent_tokens,agent_count,?if unreported, never an estimate; workflows add· run <id>. A line (task, deferred or re-run review) whose result holdsstats.reviewer.plantedadds· mutations <planted>/<survived>; a re-run review, a direct dispatch, from its ownmutations. One holdingstats.<role>.sheetsadds· sheets <name> <passes> <c>/<i>/<m>, ..., roles summed; last,templates/delivery.md's tail. [CHECK]verify commands inconfig.yml(runneraside:templates/runner.mdproves it, a red a gap): run each once on the branch withverify.prefix; runs → remove the mark; cannot run or fails on the untouched base → stop before any task, Heads-up, card (correct the command / drop it / accept the failure as pre-existing, logged as a ledgerlessonline).- Resume (progress lines exist): skip tasks last
CLEANorGATED; rerun eachPAUSEDone whole,baseits line's, never its head (unlike §3 step 3), in its worktree if any, a wave's as one wave; then §3 step 2 merges each wave with an unmerged task,PAUSEDor not; aPAUSEDfinal review or fix wave (one after aciline is ship's:templates/runner.md) reruns whole from its base; the handoff's "what waited" card shows again. Ifgit -C "<wt>" status --porcelain --ignored -unormal(lone task:-Ctop, no--ignored,-- ':/' ':(exclude,top)<rel>') fails or lists anything: stop after wave merges, no rerun, keep all (no delete, clean, stash, checkout, worktree remove); Heads-up, card (recheck, rerun / by hand).
2. Each task, in plan order
- Write
<root>/reports/<slug>/task-<n>-brief.md: the task verbatim, the global constraints it names, by number (none named: all the plan's), and paths to the plan, the spec,<root>/team.md, the validated mockup and the guidelines it touches; nothing else. - Run the workflow
gtm:deliver-taskwith args{ brief, report: "<root>/reports/<slug>/task-<n>.md", branch, base: <head before this task>, worktree (in a wave only), mockup, triggers, risky, team, fixRounds, fixCeiling, track, tier, cadence, standardRounds, sheets, review, head, files }, an arg not given omitted, never "none":tierthe plan's,guardedonce a progress line of it says so (resumes too);sheetswhatnode "${CLAUDE_PLUGIN_ROOT}/scripts/sheet-paths.mjs" --brief "<brief>"prints, omitted on[]or any other exit than 0, the task going on;review,head,files: step 5 only. - Measure it, any result: its run id (
wf_...in the diagnostics) on^wf_[0-9a-f-]+$, the one folder"<config>"/projects/*/*/subagents/workflows/<id>(<config>=${CLAUDE_CONFIG_DIR:-$HOME/.claude}),node "${CLAUDE_PLUGIN_ROOT}/scripts/role-split.mjs" --json "<folder>", first role the largest; no match, no folder or several, or a non-zero exit:roles ?, totals kept. No budget or measure changes a verdict, a correction round, a dispatch, a skip or the order of tasks; past 1.5× a budget (a task's minutes or tokens; the branch's total so far): one Heads-up per crossing (task or phase, measure, budget, largest role), a ledgerusagelineover budget: <the same>unless that slug and crossing has one; go on. - Read the result:
CLEAN: append each minor to the ledger (minor), one progress line, go on.OPEN(correction rounds exhausted, or a reviewer gave no review) orBLOCKED: its progress line, then stop the loop. A Heads-up and one decision card (re-run the missing review: that role alone on<base>..<head>with its open findings, its line written and measured as step 3 says / revise the plan / accept with the open findings logged / take over by hand), with your recommendation; resume from this task after the answer.ESCALATE(Fix only): append each minor to the ledger (minor), then continue as a Feature from/gtm:spec; the spec states eachopenfinding (from a correction round that grew the Fix past the ceiling, not re-reviewed) as a requirement with its test, and each<role> returned no reviewas a review owed, so the final review checks them.
- Tiers (
review cadenceset; not a Fix), on each task's files (§1) once it returns: a per-task specialist's trigger on a standard task → Heads-up,review: "range"on its range, guarded from then on; a triggered specialist missing from a guarded task'sreviewersreviews it alone.GATED:verify.gateon its head, red →BLOCKED(step 4's card); a clean deferred review with thereviewerover its range appends its own line. A wave (a §3 wave, or consecutive standard tasks up to a guarded task or the plan's last) getsreview: "range"on its range after its merges; before §4,review: "branch"fork point toHEAD; each withfilesfrom git.OPEN,BLOCKED, no review → step 4's card, minors to the ledger (a re-run appends none twice). A resume runs each owed review before §4. A Heads-up perCadencelog.
3. Parallel waves (two or more consecutive [P] tasks; a lone one runs as in §2)
- Record the checked-out branch and its head
<base>. Per task,git worktree add -b "<branch>-t<n>" "<wt>" <base>,<wt>=<repo's parent>/<repo name>-wt-<slug>-t<n>(an existing path or branch stops the wave), absolute<root>paths in brief and args. Run their workflows at once (§2's args plusbranch: <branch>-t<n>,base: <base>,worktree: <wt>), let all return, write each one's progress line (no wave total) and measure each (§2 step 3). - Before merging, branch/head are as last recorded,
<branch>-t<n>'s tip is the head on its last progress line, the<base>..<branch>-t<n>files (§1) disjoint. Merge eachCLEAN/GATEDbranch not yet an ancestor ofHEAD, in plan order (git merge --no-ff --no-edit "<branch>-t<n>"), record the head, gate once. Per merged task, only whengit -c core.quotePath=false -C "<wt>" status --porcelain --ignored -unormalexits 0 and lists nothing:git worktree remove "<wt>",git branch -d "<branch>-t<n>"; else keep both; Heads-up:<wt>, the list, those commands. - A branch name off
^[A-Za-z0-9._/-]+$(before step 1), a moved branch/head, overlap, conflict, red gate, a failed check or files in a worktree's<root>: merge no more, keep it and unmerged worktrees, undo nothing without the human.OPEN/BLOCKED:CLEANorGATEDsiblings merge, no later task starts. Heads-up, §2's card. On resume, that task reruns in its worktree, base its head (overlap: the wave's<base>), and merges as step 2 says, checks included; the rest go on.
4. Final review (at most once per branch)
Skip it only when all hold; then leave this slug's minors for /gtm:retro, dispatch no reviewer, no
resolved line, final review skipped: one task, clean at 0 fix rounds in run line and report:
- the plan has one task (a release-only one aside: its files the version and CHANGELOG alone);
- every task, the release one included, returned
CLEANat 0 correction rounds (GATED: below); - the tasks' ranges chain from the branch's fork point to
HEAD: first basegit merge-base <git.base> HEAD, each next base the previous task's head,HEADthe last task's head (no hand commit or escalated Fix's commit outside a task); a wave is one link: its tasks share its base, the next base is the head after its merges, which stay in range; - in every task, each specialist whose trigger matches its files (§1) is in its
reviewers; - a standard task counts if a clean
review: "range"withreviewercovers it and deferred reviews span fork point toHEAD, each clean at 0 rounds, none owed; else the final review (of merge-base..HEAD) reads in full what no task review saw: standard ranges, commits in no task or wave.
Otherwise dispatch gtm:final-reviewer with the spec, the plan, the branch range, the ledger and
the report path <root>/reports/<slug>/final.md. fix-first → one fix wave: gtm:implementer with
the must-fix list at a correction round's effort on the branch range, then gtm:final-reviewer on
the fix range only. Still not ready → a Heads-up and a card. resolved lines for the minors fixed,
the rest kept. Each dispatch: its progress line, budget as §2 step 3, roles via --also.
5. Record and report
- Ledger: one
runline as${CLAUDE_PLUGIN_ROOT}/templates/ledger.mdsays (the plugin's template, never the project's copy), from every progress line; then each ruling taken not already there. - Report: TL;DR (ready or not; tasks clean, gate result, final verdict), one table (task, result,
reviewers, cost) with a total row, a screen designed in code: ux-qa's capture paths at
design.widths, for the human to approve with the go; deferred minors count, each budget Heads-up again, a Heads-up if anything deviated, Rulings I made (each with its cost if wrong), Next steps withyou· give the go (/gtm:ship); under a mandate, its summary first (mandate.md).
04 同仓库更多 Skills
open
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
human
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
tune
Re-tune GTM team settings (roles, effort, specialists, gates, companions, reflexes, stealth) from the ledger, as decision cards. Use when the team feels slow, costly or blind.
status
Show where the current GTM run stands from NOW.md, rebuilt from the files when missing or stale.
spec
Write a GTM spec with the architect and present its summary for approval. Use when a Feature or Milestone needs one.
ship
Ship a GTM branch: gate, PR text, then push, merge, tag or release only on the human's go. Use when /gtm:deliver is ready.