/autopilot:dev-flowfrom autopilot
Sizes coding tasks (XS/S/M/L/XL, bug, urgent), sets up branches and session rules before writing code. Run at session start for any task that touches code.
Ships in autopilot. 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.
Read when SKILL.md points to them.
!cat .claude/dev-flow-config.md 2>/dev/null || true
!cat .claude/model-routing-config.md 2>/dev/null || true
If no project config above, use defaults from references/model-routing.md. XS fixes (one file, about 20 lines including tests) are done directly by the lane seat and noted in one fleet task line, without external engine dispatch; after two failures on the same task, change method or engine.
!cat .claude/dispatch-config.md 2>/dev/null || true
If no project config above, autopilot's own fallback skills are primary for methodology; native Task dispatch for parallel; autopilot:reviewer for code review. See project-config-template/dispatch-config.md for the schema. Which hetero rail: the intent table in references/hetero-dispatch.md.
Run before any code change. Steps 1 and 4 run at every size (bug, urgent included); step 1 precedes any research or
question, so every session has a marker. references/stage-graph.json alone defines which nodes run; this skill
says what to do inside each. Script contract and exits: references/stage-graph.md.
1. Size the task (table below), then record it — the flags are separate, never `--size M!`:
node scripts/session-mode.js set --size <XS|S|M|L|XL> [--urgent] [--bug]
2. Read your node sequence (never copy it from prose):
node scripts/stage-graph.js nodes --size <size> [--bug] [--urgent]
3. Run the start gates (table below). M, L, XL also owe the Entry gates (§ intent) before the first `implement`.
4. Enter the first node: node scripts/stage-advance.js --to <entry from step 2>
No human available (headless -p, a just-results level /l3–/l6, CEO mode): never stop to ask. Wherever this
skill says ask, confirm, pick or "unsure ⇒ ask", take the recommended option (within DOA when one is set), record it
as a decision taken on the owner's behalf, and continue: node scripts/decision-ledger.js append --kind decision --json '{"decision_id":"<node>-<n>","class":"tactical","rationale":"<question → choice, why>","reversibility":"two-way"}'
(the default ledger the status band counts as ◆; the owner vetoes with decision-ledger.js veto --id; ceo-agent
references/depth0-control-loop.md §6). Board-class stops stay stops: scope expansion, a DOA boundary, and the
User Override Protocol's cannot-be-overridden list.
| Size | Predicate — decide structure first (XL, then L); otherwise the smallest of XS, S, M that holds |
|---|---|
| XL | Several deliverables that are independent of each other and each shippable alone |
| L | One deliverable in multiple phases that build on each other, OR an open design question, a public API change, incompatible data, a feature flag, or the user asks for planning |
| M | One deliverable touching several modules or adding a module, design already clear; fits stage-graph.js limits --size M |
| S | One module, one commit, no interface change beyond an additive flag; fits stage-graph.js limits --size S |
| XS | One spot (a value, a message, one condition) plus the test that pins it; fits stage-graph.js limits --size XS |
| Modifier | Predicate | Flag |
|---|---|---|
| bug | The task is to make existing wrong behavior right. Size it by the fix's footprint: a cause that spans several modules, or is not yet located among several, is at least M; module count alone never makes a bug L | --bug (entry node diagnose) |
| urgent | Production is broken, or the user says it must ship now / today / within hours | --urgent (written S! / S急 in prose and backlog) |
stage-advance.js exit 4)
moves the size up when the diff outgrows it. L and XL are decided by structure, not by diff size.scripts/resolve-review-loop.sh reads it from classify-diff-risk.sh (review_risk).set --size refuses a downward move). A resumed session never re-sizes.stage): step 1 is
set --new-task --size <size> [--urgent] [--bug], not set --size (which keeps the old stage). Size moves only up
within a task, so the new size may be lower. Urgent and bug do not carry over; pass them again. Then steps 2–4 from
the entry node. Resuming the same task never uses --new-task.| Gate | Sizes | How | Enforcer |
|---|---|---|---|
| Confirm task | all | Restate what will be done in one sentence (bug: the symptom and, when known, the root cause) | documented-only |
| Branch check | all | git branch --show-current; bug ⇒ git checkout -b fix/<description>; production broken ⇒ git checkout -b hotfix/<description> main | documented-only |
| First commit | all | The first commit on a new branch carries the trailer Fleet-Task: <26-char id>. No ticket ⇒ open one before that commit, or name the branch explore/<slug> and archive it within 1 day (git tag archive/<branch> before delete when the work is unmerged). One task, one branch, one worktree. Hand worktrees live at <repo>/.worktrees/<branch>; subagent and dispatch worktrees live under .claude/worktrees/ or .worktrees/. Both directories are gitignored. The main checkout integrates only | documented-only |
| Skill routing | all | Project skills for the target code area (CLAUDE.md, .claude/skill-routing.md) are invoked before code is written; L/XL via the skill-routing TaskCreate at intent | TaskCreate + blockedBy (L/XL); documented-only (XS–M) |
| TaskCreate tools | all | TaskCreate missing from the tool list (Claude 5-era models are gated off by default since CC 2.1.233) ⇒ warn the user once to set CLAUDE_CODE_ENABLE_TODO_TOOLS=1 via .claude/settings.json env and continue — advisory, never a blocker (references/multi-agent-portability.md, task-persistence row) | documented-only |
Branch freshness:
| Behind | Ahead | Status | Action |
|---|---|---|---|
| 0 | any | Up to date with main | Proceed |
| 1-5 | any | Slightly behind | Proceed with note |
| >5 | 0 | Behind, no local work | Warn user, recommend merge |
| >5 | >0 | DIVERGED | Flag to user before proceeding |
Resuming a feature branch with an active project → the 5-step procedure in references/context-continuation.md. The size is the original session's; the walk resumes at the recorded node, never re-sized.
| Situation | Do |
|---|---|
Calling stage-advance / next | One node per Bash call, output visible: no >/dev/null, no | head/tail, no loop over nodes, no &&/; work chained after it. Read the exit code and JSON before the node's work. Write a node only when you start its work |
| The walk | Done only when --to finish exits 0. Every node nodes printed runs: a small diff, passing tests or a commit already made never skips one (only the User Override Protocol does) |
| Entering any node | node scripts/stage-advance.js --to <node> before its work, except plan-review and code-review (those rails write the node) and implement at /l5–/l6. qc pass/fail, merge, and [stage:finish] are written by check-test-outcome.js, land-branch.js, and --to finish |
Entering implement when nodes prints a non-null unit_kind | Add --unit <unit_kind>:<i>/<N>:<label> (phase: or deliverable:). Same <i> = repair of that unit; <i>+1 = next unit; leaving the loop needs <i> = <N> |
| Choosing the next node | node scripts/stage-graph.js next --from <stage> --size <size> [--bug] [--urgent] [--research]. implement in that list is the repair / next-unit edge; otherwise take the forward node |
Leaving the last verify of an urgent M, L or XL session | Not next (the risk is sampled only on this move): stage-advance.js --to code-review. Exit 0 ⇒ high risk, normal order. Exit 3 with qc-gate in legal_next ⇒ urgent-low: go to qc-gate; finish-flow runs the code-review after finish. XS/S: urgency is a mark only — take next as usual; no code-review before or after finish |
| Exit 3 | Illegal move: read legal_next, go to one of those. Never retry the refused --to, never force |
| Exit 4 | E1 bump: session-mode.js set --size <bump_to>, then advance to the forward node of stage-graph.js next --from <current stage> --size <bump_to>. Never retry the original --to |
| Exit 2 / 5 | No marker / no size: run Session Start step 1, then retry the same call |
/l3–/l6 decide who implements and who authors verification; they never change which nodes run.
node scripts/stage-advance.js --to intent, then work the Entry gates; leave intent only when gates 1–7 pass.
Entry gates (M, L, XL): all must pass before the first implement; a blocked gate ⇒ surface to the
decision-maker. M runs 1–5 at plan; L/XL bugs run 1–7 at diagnose.
mkdir -p .claude && git rev-parse HEAD > .claude/session-start-shagit log HEAD..main --oneline | wc -l (behind), git log main..HEAD --oneline | wc -l
(ahead) → freshness table (Session Start); no main ⇒ skip.claude/knowledge/ for prior learnings; unprocessed session digestsbash scripts/resolve-project-paths.sh --field index — an active project for this work ⇒
Context Continuation instead of a new walkd=$(bash scripts/resolve-project-paths.sh --field plans_dir); d=${d%/}; ls "${d:?}"/*.md: same feature / module / user story ⇒
normal mode asks the user whether to adopt the draft; CEO mode decides within DOAeligible_max picks research or proposalplan-review (§ plan)Record the goal in the project README; CEO mode skips the confirmation (the OKR was confirmed at CEO startup).
## Project Goal
> **Final goal**: [one sentence]
> **Success criteria**: [quantifiable conditions]
> **Scope boundary**: [explicit include/exclude]
Each success criterion carries (a) a measurable threshold — number, percentage, boolean state, or named command output — AND (b) how it will be verified. A criterion without both = incomplete, do not proceed. Pick acceptance patterns (ids + evidence incl. negative controls) from acceptance-patterns.md.
Task tracking (MANDATORY at intent): create both parent tasks. Missing either = failed intent gate; if one is found missing later, STOP, create it retroactively (skill routing: pause the current unit, invoke the missing skills, resume).
TaskCreate: "Skill routing — invoke required skills for all affected code areas"
description: MANDATORY before any implement node. Input: the module/surface list
produced by the Scope Completeness Audit. For each affected area, consult project
CLAUDE.md and/or .claude/skill-routing.md for required skills. Invoke each required
skill via the Skill tool (reading the file is NOT invoking). Mark this task completed
ONLY after:
(a) every required skill has been invoked via Skill tool, AND
(b) one-line summary of "what this skill told me for this task" is captured in
session context (either a note or a TaskCreate subtask).
If a module has no skill routing entry, mark N/A with a one-line justification.
Unit implementation tasks MUST be created with blockedBy=[this task] so
they cannot start until skill routing is confirmed done.
TaskCreate: "finish: Invoke autopilot:finish-flow"
description: MANDATORY completion. At the finish node invoke autopilot:finish-flow,
which expands into its size-keyed sub-tasks. Do not mark this completed until the
skill has run and every sub-task reaches completed.
Rationale for both: references/historical-rationale.md.
TaskCreate: "Scope completeness audit — enumerate all affected surfaces"
description: Before unit TaskCreate. Walk the dimensions checklist below.
For each "yes" row, either add a unit task for it OR document in README
scope boundary why it's explicitly out-of-scope. Do NOT mark this task
completed without dimension-by-dimension coverage recorded in README.
| Dimension | Trigger |
|---|---|
| Source code + tests | Almost always |
| User-facing docs (README, guides, help text) | Any user-visible behavior change |
| API / interface reference | Any public interface change |
| Config file templates / examples | Any new or changed config format |
| CHANGELOG entry | Any release-worthy change to a versioned artifact |
| Version bump (semver) | Any externally-visible change to a versioned artifact |
| Version sync verification (grep) | Any version bump — grep the old version string across all tracked files (no extension pre-filter); N hits ⇒ the edit list touches all N. Never enumerate the file list from memory |
| Migration guide / notes | Any breaking change or schema change |
| Dependent repos / external consumers | Any interface change with downstream consumers |
| Credit / attribution | Any feature absorbing external OSS, prior art, or third-party design — README's Inspired By / credits section lists the source(s) |
| Dogfood target | Any tooling/infra change (does it apply to itself?) |
.claude/skill-routing.md (or the
project equivalent) — it is the skill-routing task's input.Ladder probe (Entry gate 7, at the end of intent; L/XL bugs at the end of diagnose): node scripts/probe-unknown.js classify --ledger <ledger> --work-unit <task-id> [--terms <terms>]. Ledger: <project>/ledger/decisions.jsonl
(omitted ⇒ ~/.autopilot/ladder/<repo-hash>.jsonl). Terms → references/card-relocated.md#ladder-probe-terms. Nothing qualifies
⇒ run classify without --terms; expect U0 → proposal unless another signal fires.
eligible_max picks the node; recommend only picks the rail inside research:
eligible_max | Next |
|---|---|
U0 | No unknown: read the local hits it lists; propose from your own knowledge → proposal |
U1–U4 | An unknown exists, whatever recommend says → research (--research on stage-graph.js next); recommend: none there means the rung is skipped, not that nothing is unknown |
Sizes without a research node (XS–M bugs) work an unknown cause inside diagnose (autopilot:debug step 4).
node scripts/stage-advance.js --to diagnose, then invoke autopilot:debug unless the root cause is already known; either way, state the
root cause in one sentence before leaving the node. L/XL bugs also run Entry gates 1–7 (§ intent) here.
classify reports eligible_max above U0)node scripts/stage-advance.js --to research, then act on recommend from the latest classify; re-run classify after each receipt until it says U0 / none,
then advance to proposal. Budgets per work unit: U1 2 · U2 1 · U3 1 · U4 1 — a spent rung is never repeated.
recommend | Rail, then receipt |
|---|---|
U1 | bash scripts/dispatch-consult.sh --question-file <q> --artifact <a> --ladder-receipt <ledger> --ladder-terms <terms> --ladder-unknown-type <unknown_type> --ladder-signals <ids> --ladder-work-unit <unit> (writes its own receipt) |
U2 | autopilot:survey (issue-search mode for a why unknown), then node scripts/probe-unknown.js receipt --ledger <ledger> --rung U2 --unknown-type <unknown_type> --terms <terms> --signals <ids> --work-unit <unit> |
U3 | The rail classify names: dispatch-discuss (qualified discuss seat), else autopilot:think-tank (whether) / autopilot:debugger PUA (why); receipt --rung U3 --rail <rail> --families <a,b> (non-heterogeneous rail: add --heterogeneous false, no --reason) |
U4 | A spike in a throwaway worktree; receipt --rung U4 --question <q> --criterion <c> --result pass|fail|inconclusive |
none (rung skipped, e.g. not-heterogeneous, or budget spent) | Research with local means (repo, docs, knowledge); record what stays assumed, then advance to proposal, which lists it |
An unknown still open once its rungs are spent or skipped is the research result, not a stop: it goes into
proposal as an assumption. U5 (owner) is never recommended: it is reached only by a board-class stop
(Session Start) or the stall fuse, carrying the ladder receipts — never by an unknown research could not close.
node scripts/stage-advance.js --to proposal, then publish a web page (Artifact tool) with the assumptions (from research, or your own knowledge at U0) and 2–3
illustrated options, each with its trade-off and a recommendation; the user picks. An owner choice here uses the decision card in skills/ceo-agent/SKILL.md (open-decision.js). Record the pick and the
assumptions in the plan. No Artifact tool ⇒ write the page as a local .html file and list the options in the
reply. No human available ⇒ take the recommended option and record it (Session Start), then continue to plan.
node scripts/stage-advance.js --to plan, then:
| Size | Plan |
|---|---|
| M | Entry gates 1–5 (§ intent) first. In-session: unit list (one task each), the verify command, acceptance. Write the in-session plan to a file so the rail can review it, then go to plan-review |
| L, XL | User-provided plan ⇒ use it. Needs design ⇒ EnterPlanMode → design → ExitPlanMode → user approval. Write it to <plans_dir>/YYYY-MM-DD-<feature-name>.md (<plans_dir> is bash scripts/resolve-project-paths.sh --field plans_dir, without a trailing /) per references/plan-template.md and confirm it is on disk (ls) before --to plan-review — no code before it. Project setup is mandatory even with a user-provided plan: project directory, branch, project index (bootstrap commands per project config) |
Consult before design (L, XL; the ladder's U1 at this call site): node scripts/probe-unknown.js classify --ledger <ledger> --work-unit <phase> --terms <dependency terms, as at intent>; call bash scripts/dispatch-consult.sh --question-file <design-question> --artifact <plan-draft> --ladder-receipt <ledger> --ladder-terms <terms> --ladder-unknown-type <unknown_type> --ladder-signals <ids> --ladder-work-unit <phase> only on recommend: U1. Any other
recommend follows the research table; a skipped U1 (not-heterogeneous, consult_dispatch: off) never invokes
dispatch-consult.sh. From here on the work unit is the phase id. Rail details:
references/hetero-loops.md#consult-before-design.
L/XL unit tasks are created with blockedBy=[Skill routing] (Mission routing: one per admitted graph node).
Invoke autopilot:hetero-review with the plan file (plan loop). Gate: a frozen rubric plus node scripts/check-phase-review-receipt.js --plan-artifact <file> --dispositions <file> exiting 0, or a valid opt-out
receipt when the plan_review knob resolves to off. Enforcer: scripts/check-phase-review-receipt.js
(references/hetero-loops.md#plan-review-gate--frozen-rubrics).
node scripts/stage-advance.js --to implement [--unit <unit_kind>:<i>/<N>:<label>] (at /l5–/l6 the engine
writes it). Before the first implement, answer the verification contract (驗證合約, below). Before each unit
(M, L, XL):
Any "no" or "unsure" = blocked; surface to the decision-maker. CEO mode answers them itself and escalates to the Board only when the answer is "no" AND the response is a strategic pivot (goal change, scope expansion).
Drift signals (STOP table) → references/card-relocated.md#drift-signals
Continuous execution: proceed between units without asking "continue?". Stop only for: staging gate, build/test failure, a design decision, context near limit.
node scripts/stage-advance.js --to verify (exit 4 = E1 bump). Each unit is verified by a qualified verifier: a seat node scripts/engine-scorecard.js current --role verifier
reports qualified (at /l6 the verification-author dispatch; in a campaign the engine's per-deliverable review). It
reads artifacts only (references/blind-dispatch.md § Verifier isolation). No qualified seat ⇒ the
on_engine_unavailable policy from scripts/resolve-review-loop.sh, never a silent skip.
驗證合約(必答) —「這個任務做完,跑什麼命令能客觀證明?」
| 答案 | 機械判定 | 路由 |
|---|---|---|
| 命令,且通過紅綠驗證 | 見下方紅綠語意 | 紅綠通過 ⇒ 驗證錨定恆成立(ratchet + 一輪 advisory review)。review 降為非 gating 需三條件同時:紅綠通過 且 implementer scorecard-qualified(engine-scorecard.js status=qualified,由 engine-qualify.sh 的 known-bad 零漏放 bar 產生)且 risk=low |
| 命令,但未過紅綠(vacuous)或紅無法成立 | 自動降級 | 同「無驗證」列 |
| 「沒有客觀驗證」(合法誠實答案) | 記入 run summary | 審查 gating 常駐,不分模型強弱(模型強只降輪數 ≤2,不降為零);優先派工具可執行的原生 reviewer,而非 diff-text 軌 |
紅綠語意:
--base;dev-flow inline = marker base_ref);dirty tree 不是 base。Engine wiring: the answer flows to engine implement-review --verify-cmd; non-gating only per the conjunction,
else keep --no-verify-first. Campaign identity requires engine implement-review --campaign-contract <campaign.json>, which owns the durable ledger/resume. verify-cmd is dispatcher-authored, isolated-worktree,
read-only expectation.
Unit advance gate (M, L, XL) — TaskCreate these five as discrete sub-tasks of the unit task, named verbatim:
bash scripts/completeness-scan.sh — no placeholder markers or stub implementationsThen commit the unit. CEO mode verifies the gate itself; no user confirmation for passing gates.
Backlog safety (before deferring anything): affects the final goal ⇒ do NOT defer; goal unreachable without
it ⇒ do NOT defer; unsure ⇒ ask the user. A passing deferral = one backlog row per
references/backlog-entry.md, evidence at the pointer, unit marked "Deferred".
Scope expansion (L, XL — after every unit): new subsystem not in the README, larger public API, estimate doubled, or requirements beyond the OKR ⇒ STOP. Board decision (user; CEO escalates): update the README scope boundary first, proceed only after explicit approval, record it in the project decision log.
Leaving the last unit of an urgent M, L or XL session: --to code-review, never next (Stage protocol row; XS/S: urgency is a mark only).
After all units, invoke autopilot:hetero-review (code loop) on the full diff, --phase full --phase-base <base_ref>. Strength = the distinct model families bash scripts/resolve-review-loop.sh --field required_review_families resolves from risk and roster — low risk defaults to one family with a fresh-context
reviewer; a shortfall goes through on_engine_unavailable, never silently lowered. Gate: node scripts/check-phase-review-receipt.js --ledger <ledger> --phase full --branch <b> --phase-base "$(cat <ledger>/phase-full.base)" exits 0 (SHIP-AS-IS chain or explicit opt-out). FIX-THEN-SHIP ⇒ back to implement
(not on the urgent-low path, where each finding opens a new S task instead).
node scripts/stage-advance.js --to qc-gate (exit 4 = E1 bump), then:
| Size | Gate |
|---|---|
| XS, S | Project-config gate (default: lint + test); risk flags (money, auth/security, production protocol) ⇒ autopilot:quality-pipeline instead. Before committing, check no feature was added beyond the original goal — if one was, stop and ask |
| M, L, XL | autopilot:quality-pipeline (per-size flags from project config), at most 3 fix-review rounds; requires a valid code-review receipt (urgent-low excepted) and, for L/XL, the plan-review receipt |
A failure loops back to implement. XS/S commit after the gate (bug: message states root cause + what was wrong +
how it is fixed).
node scripts/stage-advance.js --to finish, then invoke autopilot:finish-flow; it owns the size-keyed closing checklist (merge, archive,
session end, the urgent-low code-review). Never inline it, never mark the parent task done while its sub-tasks are
pending. CEO mode: every finish sub-task is within DOA — execute all, then report.
The merge step deletes the local branch, the remote branch, and the matching worktree, then prunes, using the command block marked finish-hygiene-commands in skills/finish-flow/SKILL.md. Confirm with bash scripts/finish-hygiene-check.sh "$(git rev-parse --show-toplevel)" (exit 0: no branch besides trunk develop or main, no worktree besides the main checkout).
Unrelated work runs in parallel by default. A new item that does not depend on the one in hand gets its own worker (subagent, hetero seat or member) at once; mechanical and read-only items go to a light seat. "Queued behind X" is valid only for a real dependency or the same scarce resource, named.
These apply to all subsequent work in this session, whichever skills are invoked.
| Activity | Read first (if it exists) | Contains |
|---|---|---|
| Debugging | .claude/debug-config.md | Debug tools, Docker commands, known gotchas |
| Writing or running tests | .claude/test-strategy-config.md | Framework, commands, coverage thresholds |
| Parallel task dispatch | .claude/team-config.md | Role templates, tech stack, team size |
| Performance profiling | .claude/profiling-config.md | Profiling tools, baseline commands |
| Comparison audit | .claude/audit-config.md | By-design divergences, audit scope |
| Methodology / reviewer / parallel routing | .claude/dispatch-config.md | Preference chains (also injected above) |
A turn must NEVER end waiting only on a background-task notification.
→ references/card-relocated.md#background-wait-rule-rationale
| Expected wait | Do this |
|---|---|
| ≤ 2 min | foreground Bash with an explicit timeout. |
| > 2 min | use the Monitor tool with an end condition; or run_in_background, but only if the output path is written down in the same turn AND a second background dead-man timer (sleep <deadline>; echo WAKE) is started. Work whose result the next step depends on keeps run_in_background; non-urgent work (post-merge suites, post-pin checks) uses scripts/bg-quiet.sh, which wakes only on failure or timeout. |
An orchestrator handing off a long unit starts its dead-man timer before ending the turn. A wait ends only on a landed <run_id>.<stage>.exit file or a receipt that passes its validator; the mere existence of a draft RECEIPT file is never completion. Foremen under
/l4–/l6 keep their stricter no-polling clause: the dead-man timer is itself a background task — never
foreground sleep, never Monitor.
預期超過 15 分鐘的工作在背景起跑,並綁定到對應的 fleet 任務:開跑後用
fleet watch --pid <pid> --log <abs log> --task <fleet task id>(session 內用 fleet MCP 的
watch tool,傳 pid、log 路徑與 task id),讓 courier 在程序結束、檔案出現、指令 exit 0 或
timeout 時喚醒席位;絕不 sleep、不輪詢。完整參數與用法以 fleet plugin 的 fleet-usage skill 為準。
session-mode.js set --size L.hotfix/ branch from main; finish-flow merges back to main and makes the
post-incident autopilot:learn mandatory. Rollback: invoke finish-flow once the rollback is verified stable.Trigger: a unit awaits user review, or the session ends with undeployed committed changes. Deploy per project config (default: build + restart).
Work finished ⇒ the finish node. Session ends mid-work ⇒ autopilot:handoff; record knowledge if something was
surprising or took more than one retry (autopilot:learn). Long or degraded session ⇒
Context Health Check. After code changes, the
doc-sync mapping in references/post-feature-doc-sync.md applies (skip for bug
fixes, value tweaks, log messages).
!cat .claude/skill-routing.md 2>/dev/null || true
→ references/card-relocated.md#completeness-principle
→ references/card-relocated.md#anti-patterns
User may request skipping process steps. When overridden:
[OVERRIDE: skipped {step}] in commit messageCannot be overridden (explain why and suggest alternatives):
→ references/card-relocated.md#capability-adaptive-compatibility
When project governance configures mission_convergence, this section overrides every unit-enumeration rule above.
Before any TaskCreate, branch, worktree, runner, or model effect:
node <autopilot-source>/scripts/mission-routing-admission.js \
--repo-root "$(git rev-parse --show-toplevel)" --level <l3|l4|l5|l6>
READY is the only enforce-mode admission. Create one implementation TaskCreate per admitted
graph node, plus the parent forcing-function tasks.SHADOW is observation only. Record admitted/would_block honestly and continue through the
unit workflow without claiming an enforced receipt or grant.LEGACY means project Mission policy is off.Phase/P0..PN headings, modules, reviewer seats, tests, retries, repairs, and fallbacks
remain coverage or gates inside a caller-authored bounded deliverable. They never become tasks
one-for-one.READY, every unit above means an admitted graph node, and instructions to extract units from
source headings are disabled. Admitted implementation tasks remain blocked by the skill-routing task.→ references/card-relocated.md#available-scripts
references/card-relocated.md (opens in a new tab)references/context-continuation.md (opens in a new tab)references/hetero-loops.md (opens in a new tab)references/historical-rationale.md (opens in a new tab)references/model-routing.md (opens in a new tab)references/post-feature-doc-sync.md (opens in a new tab)references/stage-graph.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cookys/autopilot --plugin autopilot32 skills in this plugin
/agent-callContact an already-running persistent coding-agent session via fleet v2 (fallback: Claude SendMessage + outbox). Use when: "通知 <host>", "跟 <host> 說", naming a fleet member/pane. Not for: opinions (→ consult), hetero review (→ hetero-review), new workers (→ /l4–/l6).
/auditCompare two existing implementations for feature parity and missing items. Use when: "compare X with Y", "verify X matches Y", "比對 X 和 Y". Not for: future plan review, single-bug debug, writing tests.
/brainstormPre-code Socratic design exploration that surfaces 2-3 approaches and gates coding until approved. Use when: "help me think through X", "還沒想清楚", "我不確定要怎麼做". Not for: existing options (→ think-tank), external research (→ survey), chosen approach/quick fix (→ dev-flow).
/ceo-agentFull delegation — you own the goal end-to-end, user just wants results. Triggers: "CEO mode", "get it done", "you decide", "handle everything", "I trust you", "take over", "full authority", "just do it", "搞定 X", "幫我處理", "全權處理", "你決定". Not for: research-only (→ survey), participatory planning (→ dev-flow), or parallel task dispatch.
/debugEvidence-first debugging for correctness bugs, crashes, and flaky tests. Use when: diagnosing bugs, crashes, or intermittent failures. Not for: performance/latency/memory issues (→ profiling).
/distillDistill recurring procedures from conversation history into personal custom skills (never into autopilot). Use when: "/distill", "提煉我的重複流程", "turn my repeated workflow into a skill". Not for: autopilot skills, planning (→ dev-flow), one-off facts (→ learn), git metrics (→ retro).
Other plugins' skills for the same job