session-handoff
WHAT: 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"
Why use this skill?
Eliminate AI context exhaustion with the Session Handoff skill for OpenClaw. Easily save, validate, and resume complex projects with structured handoff files.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/session-handoffWhat This Skill Does
The Session Handoff skill is a critical tool for OpenClaw agents, designed to bridge the gap between separate work sessions. By automating the creation of structured, metadata-rich handoff files, it ensures that your AI assistant retains context, logic, and state across extended development projects. It prevents context exhaustion by systematically archiving project state, git metadata, and recent modifications into a standardized document that any future AI agent instance can parse and adopt, effectively creating a 'memory' for your agent.
Installation
To integrate this skill into your environment, run the following command in your terminal:
clawhub install openclaw/skills/skills/wpank/session-handoff
Use Cases
- Managing Complexity: When working on large codebases where tracking recent changes is essential for maintaining architectural integrity.
- Session Pauses: When you need to end a coding session and want to ensure the agent picks up exactly where you left off tomorrow without re-explaining the problem.
- Scaling Work: When a task is too large for the current context window and you need to hand off the project to a fresh agent instance to prevent performance degradation.
- Milestone Checkpoints: Creating immutable records of project state after completing major features to provide a reference point for debugging or regressions.
Example Prompts
- "I'm wrapping up for the day. Please create a handoff document so we can resume this work on the authentication module tomorrow."
- "Our context is getting full and the AI is starting to hallucinate. Let's create a handoff and restart the agent."
- "I am ready to resume. Please load the handoff file from yesterday and identify the first step in our to-do list."
Tips & Limitations
- Always Validate: Never trust a handoff that has not passed the validation script. The validator ensures no API keys or secrets are leaked into your documentation.
- Be Detailed: The quality of the resume depends entirely on how well you fill out the 'Decisions Made' section. Include the why behind your architectural choices to save time later.
- Avoid Stale Context: Always run the staleness checker before loading an old handoff. If a session is marked 'VERY_STALE', it is often safer to manually review recent git changes rather than relying on the file.
- Secrets Management: The validation script is your first line of defense; however, developers should remain vigilant about not pasting sensitive production secrets into the document body.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-wpank-session-handoff": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
mermaid-diagrams
Create software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams, sequence diagrams, flowcharts, ERDs, C4 architecture diagrams, state diagrams, git graphs, and other diagram types. Triggers include requests to diagram, visualize, model, map out, or show the flow of a system.
api-design-principles
Skill by wpank
auto-context
Automatically read relevant context before major actions. Loads TODO.md, roadmap.md, handoffs, task plans, and other project context files so the AI operates with full situational awareness. Use when starting a task, implementing a feature, refactoring, debugging, planning, or resuming a session.
clear-writing
Write clear, concise prose for humans — documentation, READMEs, API docs, commit messages, error messages, UI text, reports, and explanations. Combines Strunk's rules for clearer prose with technical documentation patterns, structure templates, and review checklists.
track-performance
Track the performance of Uniswap LP positions over time — check which positions need attention, are out of range, or have uncollected fees. Use when the user asks how their positions are doing.