.claude/skills/auto-recall/SKILL.md
Use when you need semantic retrieval from perpetual memory at query time. Parses query intent, searches vector store, ranks by relevance and recency, and injects context. Complements memory-search.cjs with the perpetual_memory LanceDB table.
npx skillsauth add oimiragieo/agent-studio auto-recallInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Semantic retrieval from the perpetual memory vector store at query time. Parses
query intent, searches the perpetual_memory LanceDB table, ranks results by
relevance and recency, and returns structured context for injection into agent
prompts.
Core principle: Every agent should be able to recall any past interaction instantly by meaning, not by filename or keyword. Auto-recall is the read side of the perpetual memory architecture.
Do NOT use for:
pnpm search:code instead)memory-search.cjs for that)perpetual-memory skill for writes)| Tool | Searches | Use For |
| ------------------- | -------------------------- | ------------------------------------ |
| pnpm search:code | Code files (BM25+semantic) | Finding code patterns |
| memory-search.cjs | Markdown memory files | Searching learnings/decisions/issues |
| auto-recall | perpetual_memory table | Recalling past interactions |
Auto-recall is complementary -- it searches a different index (the perpetual memory vector store) that contains auto-captured interaction summaries rather than manually-written markdown entries.
Before searching, classify the query intent:
| Intent Type | Query Pattern | Search Strategy | | ----------- | ----------------------------------------- | ------------------------- | | Decision | "Why did we choose X", "What was decided" | Filter: category=decision | | Issue | "Have we seen this error before" | Filter: category=issue | | Pattern | "How do we usually handle X" | Filter: category=pattern | | Learning | "What did we learn about X" | Filter: category=learning | | General | Any other query | No category filter |
# Basic semantic search
node .claude/tools/cli/auto-embed.cjs --query "how does the routing guard handle Write operations" --limit 10
# Or via the skill script
node .claude/skills/auto-recall/scripts/main.cjs --query "JWT refresh token pattern" --limit 5
Results are ranked by cosine similarity from LanceDB. For time-sensitive queries, apply a recency boost:
final_score = similarity * 0.7 + recency_score * 0.3
where recency_score = max(0, 1 - (days_since_creation / 30))
This ensures recent interactions are slightly preferred when similarity is close.
Format retrieved memories for agent prompt injection:
## Recalled Context (from perpetual memory)
1. [decision] (sim=0.87, 2d ago, agent=architect)
Chose JWT RS256 over HS256 for key rotation support. ADR-045.
2. [learning] (sim=0.82, 5d ago, agent=developer)
Token refresh requires httpOnly cookies to prevent XSS.
3. [issue] (sim=0.74, 1d ago, agent=qa)
JWT expiry not propagated to frontend. Workaround in auth.middleware.ts:47.
# Semantic query
node .claude/skills/auto-recall/scripts/main.cjs --query "routing guard behavior"
# Query with category filter
node .claude/skills/auto-recall/scripts/main.cjs --query "auth decision" --category decision
# Query with limit
node .claude/skills/auto-recall/scripts/main.cjs --query "memory system" --limit 5
# Query with recency boost
node .claude/skills/auto-recall/scripts/main.cjs --query "recent changes" --recency-boost
# Output as JSON
node .claude/skills/auto-recall/scripts/main.cjs --query "search" --json
Agents should invoke auto-recall at the start of significant tasks:
// At task start, recall relevant context
Skill({ skill: 'auto-recall' });
// Then query for task-relevant history
// node .claude/skills/auto-recall/scripts/main.cjs --query "<task description>" --limit 5
This provides agents with historical context about similar past work, preventing repeated mistakes and leveraging prior decisions.
| Anti-Pattern | Why It Fails | Correct Approach |
| ---------------------------------------- | ------------------------------------------------ | ---------------------------------------------- |
| Using auto-recall for code search | Wrong index; code is in BM25/semantic code index | Use pnpm search:code for code discovery |
| Injecting all results into context | Low-similarity results pollute the prompt | Filter to similarity > 0.5 before injecting |
| Blocking task on recall failure | Perpetual memory is a bonus, not a dependency | Gracefully degrade: proceed without recall |
| Recalling without specifying limit | Unbounded results consume too many tokens | Always set --limit (default: 10) |
| Trusting recall over fresh code analysis | Past context may be outdated | Use recall as starting context, verify current |
Before starting:
Read .claude/context/memory/learnings.md
After completing:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.mdASSUME INTERRUPTION: If it's not in memory, it didn't happen.
tools
Comprehensive biosignal processing toolkit for analyzing physiological data including ECG, EEG, EDA, RSP, PPG, EMG, and EOG signals. Use this skill when processing cardiovascular signals, brain activity, electrodermal responses, respiratory patterns, muscle activity, or eye movements. Applicable for heart rate variability analysis, event-related potentials, complexity measures, autonomic nervous system assessment, psychophysiology research, and multi-modal physiological signal integration.
tools
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python. Use when working with network/graph data structures, analyzing relationships between entities, computing graph algorithms (shortest paths, centrality, clustering), detecting communities, generating synthetic networks, or visualizing network topologies. Applicable to social networks, biological networks, transportation systems, citation networks, and any domain involving pairwise relationships.
data-ai
Molecular featurization for ML (100+ featurizers). ECFP, MACCS, descriptors, pretrained models (ChemBERTa), convert SMILES to features, for QSAR and molecular ML.
development
Run Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-intensive tasks, or serving APIs that require GPU acceleration or dynamic scaling.