mem-search

Featured

Search past coding sessions using natural language. Finds relevant observations, decisions, and context from previous work.

AI & Automation 161 stars 21 forks Updated yesterday Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
74
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Search Session Memory Search the persistent memory database for past coding observations, decisions, and context. $ARGUMENTS ## How It Works This skill queries the SQLite FTS5 full-text search index at `~/.softspark/ai-toolkit/memory.db` to find relevant observations from past sessions. ## Instructions 1. **Parse the search query** from `$ARGUMENTS`. If empty, prompt the user for a query. 2. **Initialize the database** if it does not exist: ```bash python3 "$HOME/.softspark/ai-toolkit/hooks/../plugins/memory-pack/scripts/init_db.py" 2>/dev/null || true ``` 3. **Run the FTS5 search** against the observations table: ```bash sqlite3 ~/.softspark/ai-toolkit/memory.db " SELECT o.id, o.session_id, o.tool_name, o.content, o.created_at, s.project_dir, s.summary FROM observations_fts fts JOIN observations o ON o.id = fts.rowid LEFT JOIN sessions s ON s.session_id = o.session_id WHERE observations_fts MATCH '<query>' ORDER BY rank LIMIT 10; " ``` Replace `<query>` with the user's search terms. Escape single quotes by doubling them. 4. **Progressive disclosure** -- present results in two stages: **Stage 1: Summary view** (show first) ```markdown ## Memory Search: "<query>" Found N results across M sessions. | # | Session | Project | Tool | Time | Preview | |---|---------|---------|------|------|---------| | 1 | abc123 | /path | Edit | 2025-01-15 | First 80 chars... | ``` *...

Details

Author
softspark
Repository
softspark/ai-toolkit
Created
4 months ago
Last Updated
yesterday
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

mem-search

Search claude-mem's persistent cross-session memory database. Use when user asks "did we already solve this?", "how did we do X last time?", or needs work from previous sessions.

88,800 Updated 4 days ago
thedotmack
AI & Automation Listed

memory-search

Searches the project's recorded memory (core-memory-kit) — decisions, conventions, architecture, the reasoning behind choices, and where things live — and returns a curated, cited summary. Fire whenever the answer might be something the project already established in past work, HOWEVER the question is phrased — any prior decision, convention, rationale, or "how/where/why is it this way" question, including oblique or roundabout asks ("why is everything so spread out?", "remind me what we settled on for X", "how come these files are tiny?"). Also fire when a "[core-memory-kit] Memory available" hint appears on the prompt. The examples are illustrative, not a checklist — prefer recalling over re-deriving an answer from the code. The session-start snapshot is a bounded index; this skill reaches the rest. Skip only when the question is purely about uncommitted or just-edited live code that memory cannot know, concerns this conversation only, or the user asked to ignore memory.

4 Updated today
LH8PPL
AI & Automation Listed

session-search

Search across past conversations/transcripts to recall what was said or decided earlier. Use when the user refers to something from before ("what did we decide about X", "last time", "you mentioned", "remind me what I said about…") and it isn't already in memory.

1 Updated 3 days ago
eric-wien