Agent skill
session-recovery-codex
Use when recovering a Codex session, especially if the user provides a Codex session id or wants recent Codex sessions listed before resuming work.
Install this agent skill to your Project
npx add-skill https://github.com/cnfjlhj/ai-collab-playbook/tree/main/skills/full/session-recovery-codex
SKILL.md
Session Recovery (Codex)
使用流程
分支 A:用户已经提供 session id
当用户消息里已经包含形如 019b6d01-790f-7a32-9d75-932700db98a4 的 session id 时:
- 直接运行统一入口脚本:
python3 ~/.codex/skills/session-recovery-codex/scripts/recover-session.py --id "<session_id>" --cwd "$PWD"
- 向用户展示脚本输出,并据此复述:
- 最后的任务请求
- 未完成事项
- 涉及文件与关键操作
- 最近报错或关键工具输出
- 询问用户:
我的理解是否正确?你想继续哪部分?
分支 B:用户没有提供 session id
- 运行统一入口脚本扫描当前项目最近会话:
python3 ~/.codex/skills/session-recovery-codex/scripts/recover-session.py --cwd "$PWD" --limit 5
-
将脚本输出的最近 5 个会话概览展示给用户,并让用户输入要恢复的序号(1–5)。
-
用户选择后,拿到对应 session id,再运行统一入口脚本做精确恢复:
python3 ~/.codex/skills/session-recovery-codex/scripts/recover-session.py --id "<session_id>" --cwd "$PWD"
- 向用户展示:
- 最后的任务请求
- 未完成事项(TODO)(若能从
update_plan记录恢复) - 涉及的文件(若能从工具输出恢复)
- 关键决策与注意事项(从最后几条 assistant 输出提炼)
- 询问用户:“我的理解是否正确?你想继续哪部分?”并在用户确认后继续执行任务。
注意事项
- 不要使用任何“压缩/精简会话”的方式替代恢复;优先用本 skill 从
~/.codex/sessions恢复事实记录。 - 本 skill 现在同时覆盖“按 id 精确恢复”和“列出最近会话后再选择”两种入口。
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
paperreview
Use when the user explicitly wants to upload a final or near-final PDF to paperreview.ai for an external second opinion. Skip this for local paper critique, which should go through `paper-review-pipeline` first.
skill-governance-loop
Use when the user asks to review a skill, analyze skill quality, update a skill version, or run a repeatable keep/disable/archive decision loop from real failures instead of abstract best practices.
academic-paper-helper
学术论文写作助手,专门用于 LaTeX 论文编写、BibTeX 管理、格式化、学术写作规范检查。适用于 AI/ML 研究论文、会议投稿(NeurIPS、ICML、ICLR 等)
collaborating-with-claude
Use when you want Claude Code CLI as a second opinion for coding tasks such as design tradeoffs, debugging, or diff review, while keeping Codex as the primary implementer.
proactive-explorer
落实 CLAUDE.md / AGENTS.md 中的“主动探索”原则,在向用户提问前自动使用 Grep、Read、Bash、WebSearch 等工具获取信息
writing-anti-ai
This skill should be used when the user asks to "remove AI writing patterns", "humanize this text", "make this sound more natural", "remove AI-generated traces", "fix robotic writing", or needs to eliminate AI writing patterns from prose. Supports both English and Chinese text. Based on Wikipedia's "Signs of AI writing" guide, detects and fixes inflated symbolism, promotional language, superficial -ing analyses, vague attributions, AI vocabulary, negative parallelisms, and excessive conjunctive phrases.
Didn't find tool you were looking for?