/autopilot:handofffrom autopilot
Writes or resumes a standardized mid-work handoff document for session continuation. Use when context is full or before /clear to preserve in-flight state.
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.
None: SKILL.md is the whole skill.
Mid-work session continuation handoff. handoff 只帶對話殘留,工作狀態看 resume。When context is full, write the handoff as the formal continuation file for resuming after /clear (not just a backup); auto-compact is only a safety net.
Triggered by "寫 handoff", "寫 handover", "ctx 太滿", "context 快滿", "clear session 後繼續", "write a handoff", or "hand off to the next session".
The script writes the machine part (in-flight tickets, git state, last operator words) by itself. You only hand in the model part, as one JSON, through handoff-note; never hand-write the whole markdown file and never append to an old one.
Sweep the session before drafting (routes durable content out; a handoff is a snapshot and gets replaced):
sweep the session with the source list in references/knowledge-routing.md §3.1 and route each hit per §3 now
(<plugin>/scripts/resolve-knowledge-routing.sh --target "$(git rev-parse --show-toplevel)" resolves this project's sinks; none means no such sink, so say so instead of creating one).
A fact or gotcha goes to learn, a reusable procedure to distill, a binding rule to the resolved discipline_target, a real problem you will not fix now to the resolved backlog_path. Call those skills; do not implement routing here. Then traps cites what you landed instead of restating it.
Write the JSON to a scratch file (five fields, 1800 chars at most in total):
{
"intent": "one sentence, 20-240 chars: what the seat is doing and why (required for the PM seat)",
"next_steps": [
{"kind": "act", "text": "the concrete next command or edit", "ref": "<in-flight ticket id>"},
{"kind": "wait", "text": "what you wait for", "who": "<who owes it>"}
],
"decisions": [{"text": "settled, do not reopen", "ref": "<ticket id | commit sha | op:<n>>"}],
"traps": ["gotcha that would burn the next reader"],
"open_questions": ["unresolved question"]
}
Rules the script enforces: no placeholders (無, 略, 見 fleet pm resume, ...); every decisions item has a ref; a wait item needs only who; when every next step is an act, at least one carries a ticket id that is in the live sections; a ticket id not in the live sections is rejected (only a warning when the fleet list was cut at 500 or unavailable); when open work changed since the previous handoff you cannot re-file the previous model part verbatim; no host names or IPs (the scrub rejects them). Operator words after the handoff outrank intent.
Hand it in:
node <plugin>/scripts/handoff-note.js --seat <seat member, e.g. pm--claude> --role <pm|worker> --trigger manual --json-file <scratch.json>
Exit 0 prints the written file; exit 2 names each failing field and why: fix those and run again (nothing was written). --trigger stop is what the Stop gate's message asks for.
Response to User:
Reply with the written file path. A handoff filed because of context budget (--trigger stop, T2 or T3) stops there, for every seat: no restart prompt, no paste-ready line, no restart ticket. The paste-ready line read <path> 接續 is only for a handoff the user asked for, or one written for a plugin or harness update.
Old PM handoffs carry a ## 接續表 block with these keys. New handoffs do not write it; a resumed seat may still read it from an old file. Keys: operator_thread, artifacts, pending_rulings, subagent_outputs, card_notes (with an executor sub-field).
## 接續表
operator_thread: <thread or 無>
artifacts: <paths or 無>
pending_rulings: 無
subagent_outputs: <reports or 無>
card_notes:
executor: <address or 無>
Triggered by "read ...HANDOFF.md 接續" or "接手上個 session" or "resume from handoff".
<handoff root>/<seat>/LATEST_WITH_NOTE, or the path the operator named).git log -1
git status
If reality has drifted from "現況", report the drift to the user first before proceeding.已決事項(不重議) as settled; do not reopen or litigate them.下一步 item 1 immediately; do not re-plan unless verification fails.HANDOFF.md file as part of session-end cleanup (a handoff is a snapshot; a stale one misleads a later reader). Deletion is only safe because Write Mode step 3.5 already routed the durable 段 out; if this handoff predates that step, run 3.5's walk over it before deleting.When context pressure signals occur (a compaction just happened; or the conversation is long and the user hints at wrapping/切換), write the handoff as the formal continuation file for resuming after /clear (auto-compact is only a safety net). OFFER in one sentence: "需要我寫 handoff 檔案嗎?寫完可 /clear 接續。" (The user should never have to ask "需要寫 handoff 嗎?" themselves).
What SKILL.md sets; muted values are Claude Code's defaults
32 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).
/dev-flowStart here before writing any code — sizes the task (XS/S/M/L/XL, bug, urgent `!`), sets up branch and session rules. Use when: "I'm starting on X", "quick fix for Y", "continuing from yesterday", "hotfix needed", "let's implement X", "skip to coding", "我要開始做 X", "快速修一下", "接續昨天的進度", resuming a feature branch, or any task that touches code. Not for: debugging (→ debug), authoring a plan doc (→ references/plan-template.md), pre-code design exploration (→ brainstorm), or code review (→ quality-pipeline).
npx claudepluginhub cookys/autopilot --plugin autopilotOther plugins' skills for the same job