Install
openclaw skills install session-handoffWHAT: Create comprehensive handoff documents that enable fresh AI agents to seamlessly continue work with zero ambiguity. Solves long-running agent context exhaustion problem. WHEN: (1) User requests handoff/memory/context save, (2) Context window approaches capacity, (3) Major task milestone completed, (4) Work session ending, (5) Resuming work with existing handoff. KEYWORDS: "save state", "create handoff", "context is full", "I need to pause", "resume from", "continue where we left off", "load handoff", "save progress", "session transfer", "hand off"
openclaw skills install session-handoffCreate handoff documents that enable fresh agents to continue work seamlessly.
Creating a handoff? User wants to save state, pause work, or context is full. → Follow CREATE Workflow
Resuming from a handoff? User wants to continue previous work or load context. → Follow RESUME Workflow
Proactive suggestion? After substantial work (5+ file edits, complex debugging, major decisions):
"Consider creating a handoff document to preserve this context. Say 'create handoff' when ready."
Run the smart scaffold script:
python scripts/create_handoff.py [task-slug]
For continuation handoffs (linking to previous work):
python scripts/create_handoff.py "auth-part-2" --continues-from 2024-01-15-auth.md
The script creates .claude/handoffs/ directory and generates a timestamped file with pre-filled metadata (timestamp, project path, git branch, recent commits, modified files).
Open the generated file and fill all [TODO: ...] sections. Prioritize:
See references/handoff-template.md for full structure.
python scripts/validate_handoff.py <handoff-file>
Checks:
[TODO: ...] placeholders remainingDo not finalize handoffs with secrets detected or score below 70.
Report to user:
python scripts/list_handoffs.py
python scripts/check_staleness.py <handoff-file>
Staleness levels:
Read the handoff document completely. If part of a chain, also read the previous handoff.
Follow references/resume-checklist.md:
Start with "Immediate Next Steps" item #1.
Reference as you work:
For long-running projects, chain handoffs to maintain context lineage:
handoff-1.md (initial work)
↓
handoff-2.md --continues-from handoff-1.md
↓
handoff-3.md --continues-from handoff-2.md
When resuming from a chain, read the most recent handoff first, then reference predecessors as needed.
Location: .claude/handoffs/
Naming: YYYY-MM-DD-HHMMSS-[slug].md
Good handoffs have: