context-handoff
保存和恢复聊天上下文到本地文件。用于用户想在切换账号、清空 session、重新开会话、跨会话延续项目时,把当前会话级上下文或项目级摘要落盘并在之后恢复。也用于列出已有的会话上下文槽位或项目摘要,并按更新时间排序返回最近使用项。触发词包括:保存当前上下文、保存会话摘要、保存项目摘要、记下这次讨论、切号前保存、恢复上下文、恢复项目摘要、读取上次摘要、继续上次讨论、列出上下文槽位、列出已保存摘要、有哪些项目摘要、最近更新的项目摘要、按更新时间排序、session handoff, context handoff, save session context, save current context, save chat summary, save project summary, restore context, restore session context, restore project summary, continue last discussion, resume project context, list context slots, list project summaries, list saved summaries, sort by updated time, most recently updated, recently updated summaries, chat handoff, project handoff.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bayllech/context-handoffWhat This Skill Does
The context-handoff skill provides a robust mechanism for persisting chat state and project-level information to your local filesystem. Instead of relying on volatile chat history, this skill allows you to explicitly save "snapshots" of your current reasoning, decisions, file references, and upcoming tasks. By decoupling state management from the AI's internal session memory, you gain the ability to switch accounts, clear session windows, or move across different development projects without losing your progress. The skill supports two distinct modes: Session Contexts for specific chat threads and Project Summaries for long-term project tracking. It ensures your workflow remains continuous, organized, and recoverable.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/bayllech/context-handoff
Use Cases
- Cross-Session Continuity: Save your current technical investigation before closing a chat window or switching to a new OpenClaw agent instance. You can easily reload the context later to pick up exactly where you left off.
- Project Lifecycle Tracking: Maintain a high-level summary of a project's goals, current status, and next steps in a persistent Markdown file that remains available across multiple different conversations.
- Account Switching: Prepare for a logout or account transition by dumping critical technical state to disk, ensuring that your research or coding progress is archived safely.
- Structured Documentation: Generate clean, actionable summaries of complex technical discussions, focusing on completed tasks, pending decisions, and critical file paths, rather than raw dialogue logs.
Example Prompts
- "保存当前上下文到 slot 名为 'feature-authentication' 的文件中,我需要切换到另一个账号处理别的任务。"
- "恢复 'data-pipeline-v2' 项目摘要,并告知我目前进展和下一步该做什么。"
- "列出最近更新的会话上下文槽位,我想看看之前做的 'debug-session' 是什么时候保存的。"
Tips & Limitations
- Structure Matters: The skill enforces a structured Markdown format. When saving, avoid including sensitive credentials like API keys or authentication tokens.
- Naming Conventions: Use descriptive slot and project names. If you forget what you have saved, use the
listcommands to view files sorted by their actual modification time (mtime). - Storage Paths: Files are saved in
/root/.openclaw/workspace/handoffs/sessions/and/root/.openclaw/workspace/projects/. Ensure your environment has read/write permissions for these paths. - No Auto-Save: This is an explicit tool; it does not automatically track your every move. You must trigger it via command when you want a checkpoint.
- Override Policy: Default behavior is to overwrite the file with the latest snapshot, keeping your workspace clean rather than cluttered with thousands of iterative logs.
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-bayllech-context-handoff": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read