handoff
Installation
SKILL.md
Handoff
Write a handoff document so a fresh agent (with no memory of this conversation) can pick up where we left off.
Skill type: Rigid — follow the process; omit-over-fill is preferred over padding.
Execution model: Direct execution by the orchestrator. No subagent dispatch.
Announce at start: Output [handoff] Writing handoff document... before any processing.
Do not start or continue the work itself. Your only job here is to produce the handoff file. If you notice something that needs doing, write it as an open question — don't go fix it.
Step 0 — Nothing-to-hand-off check
Before writing anything, sanity-check that there's actually something to hand off. Run these sub-steps in order:
- Git detect. Run
git rev-parse --is-inside-work-tree. If it fails (not a git repo), ask the user where to write the file and what scope counts as "the project," then proceed using whatever they say. Skip git-specific verification steps in the rest of the process when in this mode. This step always runs first regardless of$ARGUMENTS. - Argument check. If
$ARGUMENTS(see bottom of this file) is non-empty, treat it as sufficient evidence of an arc and skip step 3. Proceed to Mode selection. - Work-existence check. Is there session work, in-flight changes (
git statusshows modifications/staged), recent commits on a non-default branch, or an active line of investigation in the conversation? If none of the above apply (fresh session, clean tree, no real conversation history): tell the user there's nothing to hand off, suggest they invoke/handoffagain after doing some work, and stop. Do not create a file.