recover-context
Extract full context of the last task from the most recent parent session shown in the session lineage. Strategically uses sub-agents to avoid bloating your own context.
Security Assessment
About recover-context
The 'recover-context' skill is designed to extract the full context of the last task from a parent session within a session lineage. This is particularly useful when you need to revisit or continue a previous task but don’t want to manually search through long conversation histories. By leveraging session lineage, this skill ensures you retrieve relevant context quickly and without context overload. It strategically delegates context extraction to sub-agents, helping avoid bloating your own context while keeping the task information concise and relevant.
The skill identifies the most recent parent session in the lineage and extracts the key details of the last task worked on, including its status, pending items, key decisions, and any relevant files. If sub-agent support is available, the 'session-searcher' subagent is used to analyze the session, or alternatively, the 'aichat:session-search' skill is employed. The main features of the skill include context extraction, summarization, and file discovery. It ensures a streamlined and efficient way of resuming work on tasks without unnecessary context growth.
This skill is ideal for users working in dynamic task environments, where multiple sessions are created, and the need to recall specific task contexts from previous sessions is frequent. It’s particularly useful for project managers, developers, and anyone managing complex workflows that involve many intertwined sessions and tasks.
FAQ
How do I use the 'recover-context' skill?
To use the 'recover-context' skill, you need to identify the most recent parent session from the session lineage and extract the task context using sub-agents or the session-search skill. Once the context is retrieved, a summary is provided for you to proceed with the task.
What happens if sub-agents are not available?
If sub-agents are not available, the 'aichat:session-search' skill can be used to perform the context extraction from the parent session.
What limitations should I be aware of when using this skill?
You should avoid reading large session files directly into your own context, as it can result in bloating. Instead, always delegate to sub-agents or use the session-search skill. Additionally, focus only on the last task, not the entire session history.
Can I use this skill for tasks in any session lineage?
Yes, this skill works as long as a session lineage is present, which is typically shown in the first user message of the conversation.
Does this skill handle all file types?
The skill is designed to identify and report relevant files such as markdown files, issue specs, and code files associated with the session. However, it focuses primarily on task-related documents and files, so it may not handle all file types.
Install recover-context
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
pchalasani/claude-code-tools