recover-context
The recover-context skill extracts the last task details and current progress from a previous parent session when session lineage exists. Use it to quickly understand what work was in progress, the task's current state, pending items, and relevant files when resuming work across connected sessions, delegating the heavy lifting to sub-agents to avoid context bloat.
git clone --depth 1 https://github.com/pchalasani/claude-code-tools /tmp/recover-context && cp -r /tmp/recover-context/plugins/aichat/skills/recover-context ~/.claude/skills/recover-contextSKILL.md
# recover-context
Use this skill to extract context from a parent session when a session lineage is
present (shown in the first user message of this conversation).
## Instructions
1. **Identify the most recent parent session** from the lineage chain (the last
file in the chronological list).
2. **Use sub-agents to explore** (to avoid bloating your own context):
- If you have the Task tool with subagent support, use the `session-searcher`
subagent (subagent_type: `session-searcher`) to analyze the most recent session
- If sub-agents are NOT available, use the `aichat:session-search` skill instead
3. **Extract the following from the most recent session:**
- What was the last task being worked on?
- What was the current state of that task (completed, in-progress, blocked)?
- Any pending items or next steps mentioned?
- Key decisions made or approaches chosen
4. **Also check for associated documents:**
- Issue specs or task descriptions referenced in the session
- Any markdown files created during that session (check WORKLOG/, issues/, etc.)
- Code files that were being modified
5. **Report back concisely:**
- State your understanding of the task context
- List any files you found that are relevant
- Ask the user how they'd like to proceed
## Example Sub-agent Prompt
If using the Task tool with `session-searcher` subagent:
```
Analyze the session file at [path from lineage] and extract:
1. The last task being worked on (look at the final 20-30 messages)
2. Current state of that task
3. Any referenced markdown files (issue specs, work logs, etc.)
4. Pending next steps or blockers
Return a concise summary.
```
## Constraints
- Do NOT read large session files directly into your own context
- ALWAYS delegate to sub-agents or the session-search skill
- Keep your summary concise - the user knows what they were working on
- Focus on the LAST task, not the entire session historyFor CLI agents WITHOUT subagent support (e.g., Codex CLI). Search previous code agent sessions for specific work, decisions, or code patterns.
Use this skill when you learn one or more design pattern(s) in the
Design patterns for the Langroid multi-agent LLM framework. Covers
>-
CLI utility to communicate with other CLI Agents or Scripts in other tmux panes; use it only when user asks you to communicate with other CLI Agents or Scripts in other tmux panes.
This skill should be used when the agent needs to give a spoken voice update to the user, or when reminded by a Stop hook to provide audio feedback. Use this skill to speak a short summary of what was accomplished.
Use this when user wants you to walk through (code or text) files in a EDITOR to either explain how some code works, or to show the user what changes you made, etc. You would typically use this repeatedly to show the user your changes or code files one by one, sometimes with specific line-numbers. This way the user is easily able to follow along in their favorite EDITOR as you point at various files possibly at specific line numbers within those files.
Log the work segment that you did after the last work log until now in a