conversation-memory · davila7 — Claude Code skill: what it does, how to install
Architecture guidelines for handling session context, entity facts, and persistent recall in LLM conversations.
npx claude-code-templates@latest --skill ai-research/conversation-memoryWhat conversation-memory does
This skill outlines patterns for handling conversational state across multiple tiers instead of dumping full histories into prompts. It details methods for updating entity attributes, consolidating dialogue records, and injecting only relevant facts into model prompts.
The guide highlights common pitfalls like maintaining an unindexed single storage or collecting raw transcripts without pruning. Without explicit lifecycle policies, unbounded memory pools inevitably degrade retrieval latency.
Multi-tenant isolation represents the main architectural risk. Failing to partition memory boundaries strictly by user identity causes cross-session data leaks.
What it helps with
- structure layered memory combining short-term and persistent records
- track and update entity attributes across extended dialogues
- filter retrieved memories before feeding them into prompt context
- enforce data isolation between different users
Example prompts for the agent
- Design a tiered memory architecture for an assistant that needs to remember user preferences
- How should I handle entity updates so past facts get refreshed cleanly?
- Set up a pruning strategy to keep our conversation memory from slowing down queries
How to install conversation-memory
1claude-code-templates
npx claude-code-templates@latest --skill ai-research/conversation-memory2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill conversation-memory -a claude-code3Manually: put the files in place
~/.claude/skills/conversation-memory/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/conversation-memory/
Manually: put the files in place
.agents/skills/conversation-memory/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/conversation-memory/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates conversation-memory2Manually: put the files in place
.github/skills/conversation-memory/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/ai-research/conversation-memoryManually: put the files in place
.devin/skills/conversation-memory/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about conversation-memory
How to install conversation-memory in Claude Code?
Run npx claude-code-templates@latest --skill ai-research/conversation-memory in your project terminal. Alternatively, install it with npx skills add davila7/claude-code-templates --skill conversation-memory -a claude-code.
What memory tiers does this skill cover?
It provides patterns for tiered memory architectures, dividing context into short-term sessions, persistent long-term storage, and dedicated entity records.
What is the main security risk outlined in the guide?
Lack of strict per-user boundaries can leak sensitive memories from one conversation into another user session.
Similar skills
All skills for Agent setup: memory, context, orchestration →conversation-memory by other authors comes first.