The master skill in PlanetScale's official pack: runs a full read-only best-practices assessment of a database or org, then produces one evidence-backed report.
claude-memSkill
Summary
Persistent cross-session memory for coding agents: hooks capture each session, a local SQLite + vector store compresses it, and a mem-search skill reads it back.
Features
- Five lifecycle hooks capture sessions automatically — nothing to remember to save
- Local SQLite store with vector search; observations typed as bugfix, feature, decision, discovery or change
- Layered search → timeline → fetch workflow documented as ~10x token savings
- Hybrid full-text and semantic retrieval via a Chroma vector database
- <private> tags exclude sensitive content from capture
- Web viewer for the live memory stream, plus citations by observation ID
- Optional cloud sync; Node.js 20+ required
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Example Usage
npx claude-mem install
Then, in a later session:
"Did we already fix the token expiration bug?"
"How did we handle auth last time?"
mem-search runs: search(query="authentication", limit=20) -> timeline(anchor=11131) -> fetch
Description
claude-mem gives a coding agent memory that outlives the session. Close the terminal, come back tomorrow, and the decisions you made, the bug you fixed and what you meant to do next are still retrievable — instead of re-explaining the project from scratch every morning.
It works in three phases. Capture: five lifecycle hooks (SessionStart, UserPromptSubmit, PostToolUse, Stop, SessionEnd) observe the session as it happens, so nothing depends on you remembering to save. Compress: observations and summaries are written to a local SQLite database with vector search, classified by type — bugfix, feature, decision, discovery, change. Inject: relevant context comes back into later sessions, and the bundled mem-search skill lets the agent query the archive on demand when you ask "did we already solve this?" or "how did we do X last time?".
The retrieval design is the interesting part, because naive memory search wrecks a context window. mem-search enforces a layered workflow: search first for an index of IDs, timestamps and titles at roughly 50-100 tokens per result; then use timeline to pull context around the few results worth expanding; only then fetch full detail. The skill documents this as roughly 10x token savings over fetching everything up front, and the result table even prints an estimated read cost per row so the agent can budget before it commits.
Search is hybrid — full-text plus semantic queries through a Chroma vector store — and filters cover project, observation type, date range and ordering. Content wrapped in <private> tags is excluded from capture, which matters when secrets pass through a session. There is a web viewer for browsing the memory stream in real time, citations that reference past observations by ID, and optional cloud sync for backup.
Install with npx claude-mem install. It requires Node.js 20 or newer, keeps its database local by default, and works across Claude Code and a range of other agent harnesses. Apache-2.0 licensed, currently at version 13.24.1.
Related Skills
Build crash-safe AI agents on AgentKit and step.ai — durable tool calls, human-in-the-loop approval, realtime progress, and when not to reach for an agent loop at all.
Inngest's durable-execution playbook as an agent skill — steps and memoisation, event and cron triggers, idempotency, cancellation, retries and non-retriable errors.
Temporal's official skill for building durable workflows — SDK patterns across seven languages, plus the determinism rules that decide whether a workflow survives a replay.