session-recovery
AI会话管理与优化系统。解决会话上下文限制问题,通过三级文档系统、自动化脚本和上下文压缩实现快速恢复。包含:STATUS.md快速索引、memory详细记录、自动更新脚本、上下文压缩策略、信息识别机制。适用于长期AI项目、多任务并行、需要高效会话恢复的场景。触发词:会话恢复、session recovery、上下文压缩、快速恢复、会话管理。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/blqbzf/session-recoveryWhat This Skill Does
The session-recovery skill is a sophisticated AI-driven framework designed to solve the critical challenges of long-term AI interaction: context window saturation, high latency, and loss of historical decision-making data. By implementing a robust three-tier documentation system, this skill enables AI agents to maintain persistent states across fragmented conversations. It functions by combining a top-level 'STATUS.md' dashboard for quick status checks, a 'QUICK_RECOVERY.md' index for structural context, and a daily detailed log system ('memory/') for granular audit trails. Beyond documentation, the skill provides a suite of automation scripts that handle the administrative overhead of maintaining these records, including intelligent context compression that can reduce your token usage by up to 90%, significantly accelerating AI response times while lowering costs.
Installation
You can install this skill directly through your agent terminal by running the following command:
clawhub install openclaw/skills/skills/blqbzf/session-recovery
Ensure you have the necessary write permissions in your project directory to allow the scripts to generate and update the memory and status files.
Use Cases
- Long-term Software Development: Managing complex coding projects that span multiple weeks or months where context continuity is essential for bug tracking and feature development.
- Multi-tasking Orchestration: Juggling parallel project threads where the AI needs to swap between different task contexts without forgetting constraints or current progress.
- High-Latency Environments: Projects requiring cost-efficiency and faster token processing, where maintaining a massive, uncompressed chat history is no longer feasible.
- Team-based AI Collaboration: Using the shared memory files as a 'source of truth' that multiple team members or different AI instances can reference to stay aligned on project goals.
Example Prompts
- "Perform a session recovery: scan the memory folder and update my STATUS.md with today's completed tasks."
- "I'm hitting a 15k token limit; trigger the context compression strategy and summarize our progress into a new summary index."
- "Initialize a new daily log for our project and include the standard template for task tracking and decision logging."
Tips & Limitations
- Consistency is Key: The system is most effective when you run the
update_status.shscript at the end of every work cycle. If the documentation becomes stale, the recovery process will be inaccurate. - Compression Thresholds: While the skill allows for aggressive compression, ensure you keep at least one full 'memory' file for historical auditing before performing a total archival sweep.
- Human-in-the-loop: The AI manages the documentation, but human review is recommended for the 'Key Decisions' section in the QUICK_RECOVERY.md file to ensure the AI hasn't hallucinated or misinterpreted complex logic.
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-blqbzf-session-recovery": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution