Skip to content
Back to skills

Deep Recall

ASecurity

4-layer recall procedure (durable → semantic → PostgreSQL → daily notes) before claiming "no context". Invoke when user explicitly asks "do you remember", "what did we discuss about X", "search history". NOT a general assistant — only fires when recall is the explicit task. Drop the prior "use proactively" rule. Triggers: "do you remember", "what did we discuss", "when did", "find that conversation about".

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
databasespythonbashsql

Works with

  • cursor

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add netanel-abergel/pa-skills --skill deep-recall --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deep Recall?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deep Recall
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/netanel-abergel-deep-recall/badge)](https://www.skillsdirectory.com/skills/netanel-abergel-deep-recall)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deep-recall
description: |-
  4-layer recall procedure (durable → semantic → PostgreSQL → daily notes) before claiming "no context".
  Invoke when user explicitly asks "do you remember", "what did we discuss about X", "search history".
  NOT a general assistant — only fires when recall is the explicit task. Drop the prior "use proactively" rule.
  Triggers: "do you remember", "what did we discuss", "when did", "find that conversation about".
---

# Deep Recall

**Rule: Never say "I don't have context" without searching all sources first.**

## Search Order (mandatory, in sequence)

### 1. Memory Search (semantic)
```
memory_search(query="<topic>")
```
Searches MEMORY.md + memory/*.md + indexed session transcripts.

### 2. Session Search (FTS + PostgreSQL + daily notes)
```bash
python3 tools/session_search.py "<query>" --limit 10 --days 30
```
Full-text search across SQLite FTS5 index, WhatsApp DB, and daily notes.

### 3. PostgreSQL Direct (for specific conversations)
```python
import os, psycopg2
conn = psycopg2.connect(os.environ['PA_DB_URL'])
cur = conn.cursor()
cur.execute("""
    SELECT body, ts, chat_id, is_from_me 
    FROM messages 
    WHERE body ILIKE %s 
    AND ts > NOW() - INTERVAL '30 days'
    ORDER BY ts DESC LIMIT 10
""", ('%keyword%',))
```

### 4. Daily Notes Grep (for dated events)
```bash
grep -rn "<keyword>" memory/daily/ | tail -20
```

### 5. WhatsApp DM Context Files
```bash
grep -rn "<keyword>" memory/whatsapp/dms/*/context.md
```

## When to Trigger

- Any question starting with "did we", "when did", "what about", "do you remember"
- Before saying "I don't have context on this"
- Before saying "I'll need to check"
- When the owner references something from a past conversation
- When another PA asks about a previous interaction

## Output Rules

- If found: cite the source (file:line or timestamp)
- If not found after all 5 searches: say "I searched memory, WhatsApp history, and daily notes — no match found"
- Never say "I don't remember" without running all searches
- If partial match: share what was found and ask for clarification

## Common Recall Failures to Avoid

- Saying "let me check" and then not actually checking
- Searching only one source and giving up
- Assuming something wasn't discussed because it's not in MEMORY.md (check PostgreSQL!)
- Forgetting that WhatsApp group messages exist in the DB too
- Not checking DM context files in `memory/whatsapp/dms/`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.