ワンクリックで
handoff
Create, continue, or close handoff documents for fresh-agent baton passes
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create, continue, or close handoff documents for fresh-agent baton passes
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Load saved review feedback from /bpe:review and apply changes to the reviewed artifact
Iterative Q&A to develop a thorough project specification (spec.md)
Generate a commit message explaining what was changed and write it to commit-msg.md
Implement the next unchecked step from plan.md by executing its sub-steps as written (RED-GREEN-REFACTOR for Feature steps; Scope/Tooling/Do/Verify/Document for Task steps)
Fetch a GitHub issue and route to brainstorm or plan based on detail level
Autonomous-mode BPE run via /goal. Modes — full (default) | section <name> | step. Pre-flights branch safety (refuses on main), resolves the project verification command (test-runner autodetect, spec.md fallback, or ask), builds a verifiable completion condition, and writes the assembled /goal block (condition + validator-aware orchestrator playbook + per-commit verification) to goal.md at the repo root for you to paste. Requires Claude Code v2.1.139+; put your session in auto mode before pasting for unattended execution.
SOC 職業分類に基づく
| name | handoff |
| description | Create, continue, or close handoff documents for fresh-agent baton passes |
| argument-hint | create [focus] | continue | close |
| model | sonnet |
| disable-model-invocation | true |
Manage forward-looking handoff documents that let a fresh agent pick up where the current conversation left off. Handoffs are short-lived and live under .ai-sessions/handoffs/ — they are not session summaries. For durable, backwards-looking session records, use /bpe:session-summary instead.
This command has three subcommands:
create [focus] — write a new handoff document. The optional focus describes what the next session will work on; it tailors the handoff toward that thread.continue — read an existing handoff and prime the current conversation with its contents. Does not delete the file.close — delete a consumed handoff file. Run this once the work described in the handoff has been picked up and the file is no longer useful.Parse $ARGUMENTS:
create, run Create Mode. Treat the remainder of the argument string as the optional focus.continue, run Continue Mode. Ignore any trailing tokens.close, run Close Mode. Ignore any trailing tokens.$ARGUMENTS is empty, default to Create Mode with no focus./bpe:handoff <focus> form.State the routed mode in user-facing text before proceeding (e.g. "Running handoff in create mode with focus: deck polish.").
Write a handoff document so a fresh agent can continue the current work without starting from scratch. The handoff is forward-looking and short-lived.
Handoffs live alongside session summaries under .ai-sessions/, in a handoffs/ subdirectory. This keeps them in the project tree (so the next agent can find them without being told a path) while keeping them separable from durable summaries.
mkdir -p .ai-sessions/handoffs
date +%Y%m%d-%H%M
Then build the path: .ai-sessions/handoffs/handoff-{timestamp}-{slug}.md.
date +%Y%m%d-%H%M. Do not substitute or paraphrase.general if there is no clear single focus.Read the file (it will be empty) before writing to it.
If a focus argument was passed, treat it as a description of what the next session will work on. Tailor the handoff toward that focus — emphasize the threads of the current conversation that matter for the stated next step, and elide the rest.
If no focus was passed, write a general-purpose handoff covering the live state of the conversation.
Include these sections, in this order:
If the next session is a strong candidate for autonomous-mode execution (clear unchecked todo.md items, tests in place, no open design questions), include a line like:
Suggested Goal: /bpe:goal section <name>
or the full pre-built /goal … condition if you already know it. Omit this section if the next step needs human judgment, design decisions, or anything a bpe:step-executor subagent could not handle on its own. When in doubt, omit — false-positive Suggested Goals waste a run.
python:python, temporal:temporal-developer. Include a skill if the continuation will need it (whether or not the current session used it); omit a skill that was useful this session but is irrelevant to the next step. This matches the populating rule in ${CLAUDE_PLUGIN_ROOT}/references/session-management.md.gh invocation.git log/git diff invocation..ai-sessions/ by filename..ai-sessions/lessons.md when a relevant cross-session lesson applies — by filename plus the category heading or quoted lesson, not by restating the lesson body.Do not duplicate content already captured in other artifacts (PRDs, plans, ADRs, issues, commits, diffs, prior session summaries). Reference them by path or URL instead. The handoff is a pointer index, not a content store. If a fact lives somewhere durable, link to it; only restate things the next session cannot trivially recover.
After writing the handoff, display:
/bpe:handoff continue to consume the document, then /bpe:handoff close once the work is picked up. If .ai-sessions/handoffs/ should never be committed, add it to .gitignore once.Read an existing handoff and prime the current conversation with its contents. This mode is pure-read — it does not delete the file. Use /bpe:handoff close once the handoff has been fully consumed and is no longer needed.
List the contents of .ai-sessions/handoffs/ (use the Glob or Bash tool):
ls -1 .ai-sessions/handoffs/*.md 2>/dev/null
.md files, tell the user there is no handoff to continue and stop. Suggest they may have meant /bpe:handoff create [focus].Read the chosen handoff in full. Then, in user-facing text, summarize:
Suggested Goal: line from the handoff verbatim so the user can choose to run /bpe:goal directly.For each skill listed in the handoff's "Suggested Skills for the Next Session" section, invoke it via the Skill tool before proceeding. Bias toward invoking — double-loading is harmless, skipping is not. Auto-loaded CLAUDE.md rules are not equivalent to invoked skills.
State the invocations in user-facing text: "Invoked: " or "No skills listed in the handoff."
Ask the user: "Ready to proceed on the next step described in the handoff, or do you want to redirect?" Wait for the user to either confirm or course-correct before doing further work.
Remind the user: once the handoff has been fully picked up, run /bpe:handoff close to delete the file. The handoff is not auto-removed.
Delete a handoff file. Run this once the work described in the handoff has been picked up and the file is no longer useful.
Use the same selection logic as Continue Mode:
ls -1 .ai-sessions/handoffs/*.md 2>/dev/null
.md files, tell the user there is nothing to close and stop.Show the full path of the file to be deleted and a one-line summary of its contents (slug + first line, or the file's first heading). Ask the user to confirm deletion. Default to keep on uncertainty; delete only on explicit confirmation.
On explicit confirmation, remove the file:
rm <path-to-handoff>
Report the deletion in user-facing text. If multiple handoffs were present and only one was closed, leave the others in place — they are out of scope for this invocation.