一键导入
handoff
Compact the current conversation into a handoff document for another agent to pick up.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compact the current conversation into a handoff document for another agent to pick up.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Execute broad changes one coherent, independently verifiable stage at a time. Use when work spans multiple independently reviewable changes, or when contracts, producer-consumer migrations, generated artefacts, or release packaging create an ordered multi-stage rollout; skip small single-purpose changes.
Commit workflow using the dot git-commit gateway in the maintainer's concise one-line style. Use only after the user explicitly requests a commit or push, including /commit or /commit-push. Never infer repeat authorisation from an earlier commit or push; never run raw git commit.
Patterns for working with git branches, remotes, diffs against the default branch, and rebases. Use when resolving rebase conflicts, continuing interactive rebases, amending commits, or any git operation that would open an interactive editor.
Investigate a topic against primary sources and return cited findings, comparing credible maintainer and contributor perspectives when judgement is involved. Use when the user wants a topic researched, docs, API, or spec facts gathered, an external library or GitHub behaviour verified, competing views compared, or reading legwork delegated to a background agent.
Ask minimal clarifying questions only when ambiguity materially changes implementation. Use for routine underspecification; do not use for user-requested light or full grilling, plan stress-testing, or broad design interviews.
Stress-test a plan or proposed change through focused one-question-at-a-time grilling, with light and full intensity. Use when the user says grill, grill me, grill me lightly, ask me a couple of questions, stress-test this plan, or wants question-led scrutiny before planning.
| name | handoff |
| description | Compact the current conversation into a handoff document for another agent to pick up. |
Write a handoff note summarising the current conversation so a fresh agent can continue the work. The note is stored in the repo notes vault alongside regular notes, using the note-writing tool (notes_note_write in OpenCode).
Configuration invariant: every primary agent should have access to the repo notes tools, especially the note-writing tool, so explicit handoff and note workflows are not blocked. Tool access does not imply autonomous note manipulation: use the note-read, note-write, and note-delete tools (notes_note_read, notes_note_write, notes_note_delete in OpenCode) only when a note command or skill instructs it, or when the user explicitly asks to create, update, read, or delete notes. Search-only or narrowly scoped subagents do not need notes access unless their workflow explicitly requires it.
Read Notes path from the <repository> section of the injected <repo-note-context>.
handoff- (e.g. handoff-auth-refactor, handoff-migrate-to-v4).notes_note_write in OpenCode) with:
path: {notes_path}/handoff-{slug}.mdcontent: the full note content (see format below)The note-writing tool sets the frontmatter date: for you; leave the placeholder in the template below and do not read the date yourself.
Do not use the write, bash, or any other tool to write the file — only the note-writing tool.
Before writing a handoff, assess whether the work spans multiple logical phases that would each become a separate branch or PR (e.g. "phase 1: add schema, phase 2: migrate data, phase 3: update UI"). If so, do not create a single combined handoff. Instead:
When reading an existing handoff that describes multiple phases or a large multi-step plan spanning distinct concerns, suggest to the user that subsequent phases be handed off to separate branches. Offer the option to continue with the full plan as a last resort.
When creating handoffs that are part of a related group, use a shared feature prefix so they sort together when listed with notes handoffs:
handoff-{feature}-{phase-slug} — the shared prefix is the key grouping mechanism.
handoff-query-params-calendar-api, handoff-query-params-voice-assistants, handoff-query-params-energy-navigationhandoff-gallery-1-component-shell, handoff-gallery-2-routing, handoff-gallery-3-descriptions"{Feature} Phase {N}: {Phase Title}" for sequential work, or just a descriptive title for async/parallel work.When to number:
This ensures:
notes handoffs groups related handoffs together alphabetically by feature prefix.priority to low, medium, high, or critical based on how urgently the next session should pick the work up. Handoffs without a priority are treated as medium.---
repo: {owner}/{repo}
date: {leave as-is; the note-writing tool fills this in}
type: handoff
name: {Short human-readable title, 3–6 words, Title Case}
description: {One sentence describing the handoff purpose}
priority: {low | medium | high | critical, default medium}
tags: [handoff, {2–4 additional kebab-case tags from the conversation}]
---
# {name}
## Summary
{2–4 sentence TLDR of what was accomplished this session}
## Next Focus
{What the next agent should pick up — the primary task, context needed, and any constraints. Derived from user arguments if provided, otherwise inferred from conversation state.}
## Suggested Skills
{Bullet list of skills the next agent should invoke, with a brief reason for each}
## Artifact References
{Bullet list of paths, URLs, commits, PRs, issues, or other artifacts relevant to the handoff. No content duplication — just pointers.}
## Open Threads
{Bullet list of unresolved items, or "(none)" if empty}
Tell the user exactly:
Saved: repo-notes/{owner}/{repo}/handoff-{slug}.md