Recovery
MigoXLab/webqa-agent
Structured error recovery for failed or ineffective browser actions.
AI会话管理与优化系统。解决会话上下文限制问题,通过三级文档系统、自动化脚本和上下文压缩实现快速恢复。包含:STATUS.md快速索引、memory详细记录、自动更新脚本、上下文压缩策略、信息识别机制。适用于长期AI项目、多任务并行、需要高效会话恢复的场景。触发词:会话恢复、session recovery、上下文压缩、快速恢复、会话管理。
$ npx skills add LeoYeAI/openclaw-master-skills --skill session-recovery -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills session-recovery --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/session-recovery .claude/skills/session-recovery && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "session-recovery" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/session-recovery into .claude/skills/session-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "session-recovery", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/session-recoveryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill session-recovery -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills session-recovery --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/session-recovery .agents/skills/session-recovery && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "session-recovery" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/session-recovery into .agents/skills/session-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "session-recovery", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill session-recovery -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills session-recovery --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/session-recovery .cursor/skills/session-recovery && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "session-recovery" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/session-recovery into .cursor/skills/session-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "session-recovery", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/session-recovery--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill session-recovery -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills session-recovery --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/session-recovery .gemini/skills/session-recovery && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "session-recovery" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/session-recovery into .gemini/skills/session-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "session-recovery", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills session-recoveryInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill session-recovery -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/session-recovery .github/skills/session-recovery && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "session-recovery" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/session-recovery into .github/skills/session-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "session-recovery", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill session-recovery -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills session-recovery --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/session-recovery .opencode/skills/session-recovery && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "session-recovery" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/session-recovery into .opencode/skills/session-recovery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "session-recovery", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
session-recoveryAI会话管理与优化系统。解决会话上下文限制问题,通过三级文档系统、自动化脚本和上下文压缩实现快速恢复。包含:STATUS.md快速索引、memory详细记录、自动更新脚本、上下文压缩策略、信息识别机制。适用于长期AI项目、多任务并行、需要高效会话恢复的场景。触发词:会话恢复、session recovery、上下文压缩、快速恢复、会话管理。
Session Recovery is an agent skill from LeoYeAI/openclaw-master-skills. AI会话管理与优化系统。解决会话上下文限制问题,通过三级文档系统、自动化脚本和上下文压缩实现快速恢复。包含:STATUS.md快速索引、memory详细记录、自动更新脚本、上下文压缩策略、信息识别机制。适用于长期AI项目、多任务并行、需要高效会话恢复的场景。触发词:会话恢复、session recovery、上下文压缩、快速恢复、会话管理。
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including scripts and reference files (for example `README.md`, `_meta.json` and `references/SESSION_RECOVERY_OPTIMIZATION.md`).
The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
12 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 5 files in scripts/ (Shell and Python), which the agent can run.
Shell commands in SKILL.md call:
python3gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Session Recovery loads about 2.4k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 511 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 511 words, ~2,435 tokens.
.claude/skills/session-recovery/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.版本: 1.0 适用场景: 长期AI项目、多任务并行、需要高效会话恢复
恢复时间: 30秒 用途: 日常快速恢复
内容:
# 📊 状态看板
**最后更新:** YYYY-MM-DD HH:MM
**状态:** 活跃
## 🎯 当前任务(最多5个)
| 任务 | 状态 | 进度 | 下一步 | 截止 |
|------|------|------|--------|------|
| 任务1 | ✅ | 100% | 完成 | - |
| 任务2 | 🔄 | 80% | 测试 | - |
## 📋 待办事项
### 🔥 高优先级
- [ ] 待办1
- [ ] 待办2
## 📂 快速访问文件
- 文件1
- 文件2
## ⚠️ 阻塞问题
(当前阻塞)
## 🔑 必须记住的约束
| 约束 | 要求 | 状态 |
|------|------|------|
| 约束1 | 要求1 | ✅ |恢复时间: 1分钟 用途: 完整上下文恢复
内容:
# ⚡ 快速恢复索引
**更新:** YYYY-MM-DD HH:MM
## 🎯 项目概览
### 任务1
- 状态:✅ 完成
- 关键信息:...
- 下一步:...
### 任务2
- 状态:🔄 进行中
- 关键信息:...
- 下一步:...
## 📂 关键目录
(目录结构)
## 🔑 关键决策
| 决策 | 选择 | 理由 |
|------|------|------|
| 决策1 | 选择1 | 理由1 |
## ⚠️ 重要约束
(约束列表)
## 📋 待办事项
(待办清单)
## 🔗 关键链接
(服务器信息、工具路径等)恢复时间: 深度查询 用途: 完整工作记录
内容:
# YYYY-MM-DD 工作记录
**会话时间:** YYYY-MM-DD HH:MM - HH:MM
**主要任务:** (一句话描述)
## 📋 完成的任务
### 任务名称
**详情:** ...
**产出:** ...
## 🎯 关键决策
### 决策1
**背景:** ...
**选择:** ...
**理由:** ...
## 📚 学到的经验
### 经验1
**问题:** ...
**解决:** ...
**教训:** ...
## 📂 文件操作记录
### 创建的文件
- 文件名 - 说明
## 🎯 下次会话重点
### 高优先级
- [ ] 待办1用途: 一键恢复会话上下文
功能:
使用:
./scripts/quick_recovery.sh效果: 30秒看到所有状态
用途: 从今日记录提取信息,更新 STATUS.md
功能:
使用:
# 会话结束时
./scripts/update_status.sh效果: 2分钟完成状态更新
用途: 快速创建标准化的每日记录模板
功能:
使用:
# 每天开始时
./scripts/new_daily_log.sh
# 或
python3 scripts/template_generator.py效果: 10秒创建标准模板
用途: 归档旧的每日记录,生成每周摘要
功能:
使用:
# 每周日
./scripts/weekly_archive.sh效果: 5分钟完成周归档
用途: 根据项目状态,智能生成每日记录模板
功能:
使用:
python3 scripts/template_generator.py效果: 1分钟生成标准模板
上下文压缩 = 用AI总结历史对话,用摘要替换原文
类比:
| 指标 | 不压缩 | 压缩后 | 提升 |
|---|---|---|---|
| 上下文 | 15000 tokens | 1500 tokens | 10倍 |
| AI速度 | 10秒 | 1秒 | 10倍 |
| 成本 | $0.30/次 | $0.03/次 | 90%节省 |
触发条件:
推荐策略:
完成任务 → 开启新会话 → 从 STATUS.md 恢复操作:
1. 完成一个大任务(如除冰机方案)
2. 我总结关键信息
3. 写入 memory/YYYY-MM-DD.md
4. 你开启新会话
5. 我从 STATUS.md 恢复效果: 50-70%压缩
操作:
# 会话结束时
./scripts/compress_context.sh脚本功能:
效果: 70-80%压缩
操作: AI自动监控和压缩
触发条件:
效果: 80-90%压缩
| 信息类型 | 会丢失 | 原因 |
|---|---|---|
| 闲聊内容 | ✅ | "你好"、"哈哈"等 |
| 重复信息 | ✅ | 同样的内容说多次 |
| 临时想法 | ✅ | 最终未采用的方案 |
| 详细步骤 | ✅ | 只保留结果 |
| 错误尝试 | ✅ | 只保留正确方案 |
| 信息类型 | 不会丢失 | 原因 |
|---|---|---|
| 任务目标 | ❌ | 核心信息 |
| 关键决策 | ❌ | 影响后续工作 |
| 文件路径 | ❌ | 查找文件必需 |
| 当前状态 | ❌ | 恢复上下文必需 |
| 重要约束 | ❌ | 避免违反规则 |
| 学到的经验 | ❌ | 长期价值 |
重要信息的特征:
1. 包含关键词:
- "预算"、"成本"、"决策"
- "必须"、"不能"、"约束"
- 文件路径、日期、数字
2. 影响后续工作:
- 任务目标
- 技术决策
- 文件操作
3. 用户明确强调:
- "记住这个"
- "重要"
- "必须"不重要的特征:
- 闲聊:"你好"、"哈哈"
- 重复:同样的内容说多次
- 临时想法:"可能"、"也许"
- 中间过程:"正在分析..."检查清单:
## 必须保留的信息
- [ ] 任务目标
- [ ] 关键决策 + 理由
- [ ] 文件路径
- [ ] 重要约束
- [ ] 当前状态
- [ ] 待办事项
- [ ] 学到的经验答案:❌ 不会自动保存完整原文
实际保存:
| 内容 | 保存? | 位置 |
|---|---|---|
| 完整对话历史 | ❌ | - |
| AI回复内容 | ❌ | - |
| 工具调用详情 | ❌ | - |
| 关键信息摘要 | ✅ | STATUS.md, memory/ |
✅ 通常不是问题
原因:
方法1:手动导出
# 会话结束时
./scripts/export_conversation.sh
# 保存到 logs/conversations/YYYY-MM-DD.log方法2:自动记录
# 方式1:快速恢复(30秒)
./scripts/quick_recovery.sh
# 方式2:完整恢复(1.5分钟)
1. 读取 STATUS.md(30秒)
2. 读取 QUICK_RECOVERY.md(1分钟)
3. 如需详情,查 memory/YYYY-MM-DD.md1. 我自动记录关键信息
2. 你可以手动添加笔记到 memory/YYYY-MM-DD.md
3. 重要决策立即记录# 方式1:手动更新(推荐)
1. 我总结本次会话
2. 更新 memory/YYYY-MM-DD.md
3. 你快速检查
# 方式2:自动更新
./scripts/update_status.sh# 方式1:开启新会话(手动压缩)
1. 完成大任务(如除冰机方案)
2. 我总结关键信息
3. 你开启新会话
4. 我从 STATUS.md 恢复
# 方式2:运行压缩脚本(半自动)
./scripts/compress_context.sh# 每周日运行
./scripts/weekly_archive.sh
# 功能:
1. 归档本周记录
2. 生成每周摘要
3. 清理 memory/ 目录| 操作 | 优化前 | 优化后 | 提升 |
|---|---|---|---|
| 日常恢复 | 5分钟 | 30秒 | 10倍 |
| 完整恢复 | 10-30分钟 | 1.5分钟 | 10-20倍 |
| 更新文档 | 5分钟 | 2分钟 | 2.5倍 |
| 查找信息 | 1分钟 | 10秒 | 6倍 |
| 每周归档 | 30分钟 | 5分钟 | 6倍 |
| 指标 | 不压缩 | 压缩后 | 提升 |
|---|---|---|---|
| 上下文大小 | 15000 tokens | 1500 tokens | 90%减少 |
| AI响应速度 | 10秒 | 1秒 | 10倍 |
| API成本 | $0.30/次 | $0.03/次 | 90%节省 |
| 项目 | 手动 | 自动化 | 减少 |
|---|---|---|---|
| 每次更新 | 5分钟 | 2分钟 | 60% |
| 每周维护 | 30分钟 | 10分钟 | 67% |
| 文档大小 | 7KB | 3KB | 57% |
# 赋予执行权限
chmod +x scripts/*.sh
chmod +x scripts/*.py# 创建 STATUS.md
./scripts/new_daily_log.sh
# 创建今日记录
python3 scripts/template_generator.py# 测试快速恢复
./scripts/quick_recovery.sh# 添加到 ~/.bashrc 或 ~/.zshrc
alias recover='./scripts/quick_recovery.sh'
alias newlog='python3 scripts/template_generator.py'
alias update='./scripts/update_status.sh'
alias archive='./scripts/weekly_archive.sh'使用:
recover # 快速恢复
newlog # 创建记录
update # 更新状态
archive # 每周归档时机:
操作:
./scripts/update_status.sh时机:
操作:
./scripts/weekly_archive.sh时机:
操作:
# 方式1:开启新会话
# 方式2:运行压缩脚本
./scripts/compress_context.sh时机:
操作:
# 手动检查 STATUS.md 和 memory/ 是否完整风险: 丢失看似不重要但实际重要的信息
解决:
风险: 完整对话历史不保存
解决:
风险: 需要定期维护
解决:
上下文压缩_简单解释.md - 上下文压缩详细说明上下文压缩_原文保存机制.md - 原文保存机制说明上下文压缩_信息丢失与识别.md - 信息识别机制说明SESSION_RECOVERY_OPTIMIZATION.md - 优化建议完整文档scripts/quick_recovery.sh - 快速恢复脚本scripts/update_status.sh - 自动更新脚本scripts/new_daily_log.sh - 创建每日记录scripts/weekly_archive.sh - 每周归档脚本scripts/template_generator.py - 模板生成器长期项目(>1个月)
多任务并行(>3个任务)
团队协作
AI响应慢
一次性任务(<1周)
单任务项目
短期项目(<2周)
# .git/hooks/pre-commit
./scripts/update_status.sh
git add STATUS.md memory/效果: 每次提交前自动更新状态
# 每周五17:00自动归档
0 17 * * 5 cd /path/to/project && ./scripts/weekly_archive.sh未来功能:
A: 可能会,但概率很低(AI准确率85-90%,人工95-99%)。建议会话结束时人工检查。
A: 摘要已包含所有关键信息,通常够用。如需完整对话,可手动导出。
A: 能。摘要保留了所有关键信息,AI可以快速恢复上下文。
A: 使用自动化脚本后,维护成本减少60%(每次2分钟)。
A: 如果你的项目:
那么✅ 适合使用本系统。
Session Recovery = 时间倍增器 + 成本节省器
# 1. 试用快速恢复
./scripts/quick_recovery.sh
# 2. 创建今日记录
python3 scripts/template_generator.py
# 3. 会话结束时更新
./scripts/update_status.sh享受10-20倍的效率提升! 🚀
© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 11 other files (scripts, references) in skills/session-recovery of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Session Recovery next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Session Recovery this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~2.4k | Automated safety check: Pass | MIT | |
| RecoveryMigoXLab/webqa-agent | 232 | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Backup Recoverysickn33/agentic-awesome-skills | 47k | 2 repos | ~3k | Automated safety check: Warn | MIT | |
| Disaster Recoverysickn33/agentic-awesome-skills | 47k | 2 repos | ~3k | Automated safety check: Pass | MIT | |
| Testing Ransomware Recovery Proceduresmukul975/Anthropic-Cybersecurity-Skills | 34k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Validating Backup Integrity For Recoverymukul975/Anthropic-Cybersecurity-Skills | 34k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 |
MigoXLab/webqa-agent
Structured error recovery for failed or ineffective browser actions.
sickn33/agentic-awesome-skills
Implement backup and recovery strategies. An agent skill from sickn33/agentic-awesome-skills.
sickn33/agentic-awesome-skills
Implement disaster recovery strategies and runbooks. An agent skill from sickn33/agentic-awesome-skills.
mukul975/Anthropic-Cybersecurity-Skills
Tests and validates ransomware recovery procedures - backup restore operations (e.g.
mukul975/Anthropic-Cybersecurity-Skills
Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery…
addyosmani/agent-skills
Applies a stop-the-line rule and a step-by-step triage when tests fail, builds break or something stops working, aiming at the root cause instead of guesses.
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
AI会话管理与优化系统。解决会话上下文限制问题,通过三级文档系统、自动化脚本和上下文压缩实现快速恢复。包含:STATUS.md快速索引、memory详细记录、自动更新脚本、上下文压缩策略、信息识别机制。适用于长期AI项目、多任务并行、需要高效会话恢复的场景。触发词:会话恢复、session recovery、上下文压缩、快速恢复、会话管理。. Session Recovery is an agent skill from LeoYeAI/openclaw-master-skills.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill session-recovery -a claude-code`. Or copy the skill folder (skills/session-recovery in LeoYeAI/openclaw-master-skills) into .claude/skills/session-recovery in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill session-recovery -a codex`. Or copy the skill folder (skills/session-recovery in LeoYeAI/openclaw-master-skills) into .agents/skills/session-recovery in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill session-recovery -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/session-recovery, .gemini/skills/session-recovery, .github/skills/session-recovery and .opencode/skills/session-recovery in your project.
Going by SKILL.md and its folder, Session Recovery needs a shell and Python for the scripts in its folder and the command-line tools its instructions call (python3 and git). Our summary lists: Python 3; A Bash shell.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Session Recovery is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Session Recovery: Recovery (MigoXLab/webqa-agent, 232 stars), Backup Recovery (sickn33/agentic-awesome-skills, 47k stars), Disaster Recovery (sickn33/agentic-awesome-skills, 47k stars) and Testing Ransomware Recovery Procedures (mukul975/Anthropic-Cybersecurity-Skills, 34k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.