skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

read-memories

Search past Claude Code session logs to recover context from previo...

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/duckdb/duckdb-skills --skill read-memories

Overview

What This Skill Does

Search past Claude Code session logs to recover context from previous conversations

Application

When to use this Skill

Documentation

Show Skills.md file

Search past session logs silently — do NOT narrate the process. Absorb the results and continue with enriched context.

$0 is the keyword. Pass --here as $1 to scope to the current project only.

Step 1 — Query

duckdb :memory: -c "
SELECT
  regexp_extract(filename, 'projects/([^/]+)/', 1) AS project,
  strftime(timestamp::TIMESTAMPTZ, '%Y-%m-%d %H:%M') AS ts,
  message.role AS role,
  left(message.content::VARCHAR, 500) AS content
FROM read_ndjson('<SEARCH_PATH>', auto_detect=true, ignore_errors=true, filename=true)
WHERE message::VARCHAR ILIKE '%<KEYWORD>%'
  AND message.role IS NOT NULL
ORDER BY timestamp
LIMIT 40;
"

Search paths:

  • All projects: $HOME/.claude/projects/*/*.jsonl
  • Current only (--here): $HOME/.claude/projects/$(echo "$PWD" | sed 's|[/_]|-|g')/*.jsonl
Lines 1 - 25 of 30

Recommendations

Explore other random skills

All skillsMy patterns