Write Session Handoff
Write a concise session handoff containing objective, verified state, decisions, changed files, validation, dead ends, and next action. Use before context loss, agent transfer, or an intentional pause.
Runs on
Scope
$npx @youdede/toolkit add write-session-handoff --target claude-code
What it does
Capture verified working state so another agent can resume without reconstruction.
When it fires
- handoff
How it behaves
Collect revision, branch, upstream, working-tree, diff-statistic, and recent-commit evidence from Git without mutation.
It does not invent completed work, passing checks, or decisions.
It does not include credentials, private payloads, or unnecessary personal data.
It does not silently turn suggestions into instructions or authorization.
Configuration
scripts/collect-git-state.mjs
- Version
- 1.3.0
- Requires
- node
- Licence
- RiskThis skill captures verified working state so another agent can resume without reconstruction; it does not invent completed work, passing checks, or decisions.
- Low
- ModeHow it works: fixed rules, model instructions, or both.
- Deterministic and prompt
- Behaviour
- Advises, never blocks
- On failure
- Stops and reports
- LatencyThe skill captures verified working state so another agent can resume without reconstruction, using sequential evidence and verification steps.
- Bounded
- Data retentionWhether data remains after use and who manages its storage.
- Managed by the runtime
Often used with
All in Writing