Agent skill

context-recovery

Recover lost context after session compaction or when information from previous sessions is needed. Use when: user mentions "what were we working on", "I lost context", "before the compact", "previous session", or asks about decisions/implementations/discussions that aren't in current context. Also use proactively when you notice references to prior work you lack context for.

Stars 1
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/omgpointless/aspy/tree/main/skills/context-recovery

SKILL.md

Context Recovery

You've been activated to recover context that was lost to compaction or exists in a previous session.

Quick Start

  1. Identify the topic - What specific context is needed?

    • If the user's request is vague, ask: "What topic should I search for?"
  2. Use aspy_recall (primary tool):

    aspy_recall(query="<keywords>", limit=10)
    

    This combines semantic search (if embeddings enabled) with keyword matching. Searches thinking blocks, user prompts, AND assistant responses simultaneously. Handles both exact queries and fuzzy queries like "that golf thing?"

  3. Synthesize, don't dump - Summarize findings:

    • What was decided or implemented
    • Key file paths and line numbers mentioned
    • Any unfinished work or next steps discussed
  4. Offer continuity - "Would you like me to continue where we left off?"

Search Strategy

Start with aspy_recall (Primary)

  • Combines semantic + keyword search automatically
  • Finds conceptually related content even with different wording
  • Default limit of 10 results is usually sufficient

Targeted Searches (If Combined Is Noisy)

  • aspy_recall_thinking - Claude's reasoning and analysis (WHY decisions were made)
  • aspy_recall_prompts - What the user asked
  • aspy_recall_responses - Claude's answers and code

What Makes Good Context Recovery

Good synthesis:

"On Dec 2nd, we implemented mouse scroll support for the detail modal. The fix was in src/tui/mod.rs:299-322 - checking if modal is open before dispatching scroll events. You mentioned wanting to test it before merging."

Bad synthesis:

"Found 5 results mentioning 'scroll'. Here they are: [dumps raw results]"

Common Patterns

User Says Search For
"that bug we fixed" error keywords, "fix", file names
"the refactor" "refactor", component names
"what we decided" "decided", "approach", "pattern"
"before compact" recent topics from today
"something about golf?" just search it - semantic will handle fuzzy

Expand your agent's capabilities with these related and highly-rated skills.

davila7/claude-code-templates

verl-rl-training

Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.

23,776 2,298
Explore
davila7/claude-code-templates

openrlhf-training

High-performance RLHF framework with Ray+vLLM acceleration. Use for PPO, GRPO, RLOO, DPO training of large models (7B-70B+). Built on Ray, vLLM, ZeRO-3. 2× faster than DeepSpeedChat with distributed architecture and GPU resource sharing.

23,776 2,298
Explore
davila7/claude-code-templates

gguf-quantization

GGUF format and llama.cpp quantization for efficient CPU/GPU inference. Use when deploying models on consumer hardware, Apple Silicon, or when needing flexible quantization from 2-8 bit without GPU requirements.

23,776 2,298
Explore
davila7/claude-code-templates

Claude Code Guide

Master guide for using Claude Code effectively. Includes configuration templates, prompting strategies "Thinking" keywords, debugging techniques, and best practices for interacting with the agent.

23,776 2,298
Explore
davila7/claude-code-templates

qdrant-vector-search

High-performance vector similarity search engine for RAG and semantic search. Use when building production RAG systems requiring fast nearest neighbor search, hybrid search with filtering, or scalable vector storage with Rust-powered performance.

23,776 2,298
Explore
davila7/claude-code-templates

behavioral-modes

AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type.

23,776 2,298
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results