DuckDB/read-memories — Agent Skills | officialskills.sh
Back to skills

read-memories

communitydata

Searches past Claude Code session logs using DuckDB to recover context from previous conversations.

Setup & Installation

npx skills add https://github.com/duckdb/duckdb-skills --skill read-memories
or paste the link and ask your coding assistant to install it
https://github.com/duckdb/duckdb-skills/tree/main/skills/read-memories
View on GitHub

What This Skill Does

Searches past Claude Code session logs using DuckDB to recover context from previous conversations. Given a keyword, it queries all JSONL log files across projects (or just the current one with --here) and returns matching messages with timestamps and roles. Results can be materialized into a local DuckDB file for interactive follow-up queries.

Instead of scrolling through chat history manually or relying on fragmented notes, this lets you query structured session logs with SQL filters, timestamps, and role context in one step.

When to use it

  • Recovering a decision made three sessions ago about a database schema
  • Checking what naming convention was agreed on in a previous project
  • Finding unresolved TODOs mentioned across multiple past sessions
  • Scoping a keyword search to the current repo when working across many projects
  • Drilling into a large result set without flooding the conversation context