Agent skill · product strategy · aiskillstore

conversation-memory

Persistent memory systems for LLM conversations including

Why this skill is useful

Adds a comprehensive tiered memory system with executable code for managing short-term, long-term, and entity-based memory in LLMs.

What it needs

Requires redis installed locally. About 6k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Conversation Memory Persistent memory systems for LLM conversations including short-term, long-term, and entity-based memory Capabilities short-term-memory long-term-memory entity-memory memory-persistence memory-retrieval memory-consolidation Prerequisites Knowledge: LLM conversation patterns, Database basics, Key-value stores Skillsrecommended: context-window-management, rag-implementation Scope Doesnotcover: Knowledge graph construction, Semantic search implementation, Database administration Boundaries: Focus is memory patterns for LLMs, Covers storage and retrieval strategies Ecosystem Primarytools Mem0 - Memory layer for AI applications LangChain Memory - Memory utilities in LangChain Redis - In-memory data store for session memory Patterns Tiered Memory System Different memory tiers for different purposes When to use: Building any conversational AI interface MemorySystem { // Buffer: Current conversation (in context) buffer: ConversationBuffer; // Short-term: Recent interactions (session) shortTerm: ShortTermMemory; // Long-term: Persistent across sessions longTerm: LongTermMemory; // Entity: Facts about people, places, things entity: EntityMemory; } class TieredMemory implements MemorySystem { async addMessage(message: Message): Promise<void> { // Always add to buffer this.buffer.add(message); // Extract entities const entities = await extractEntities(message); for (const entity of entities) { await this.entity.upsert(entity); } // Check for memorable content if (await isMemoryWorthy(message)) { await this.shortTerm.add({ content: message.content, timestamp: Date.now(), importance: await scoreImportance(message) }); } } async consolidate(): Promise<void> { // Move important short-term to long-term const memories = await this.shortTerm.getOld(24 60 60 1000); for (const memory of memories) { if (memory.importance > 0.7 memory.referenced > 2) { await this.longTerm.add(memory); } await this.shortTerm.remove(memory.id); } } async buildContext(query: string): Prom …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/conversation-memory

View the source on GitHub

Browse the @skills marketplace