lauren-framework/lauren-ai/conversation-state-db
Claude Code and agent skill by lauren-framework/lauren-ai
- community
Checking that the SKILL.md file is still in the repository.
Persists conversation history to a database (SQLite/Postgres) via a custom ConversationStore implementation. Use when conversation history must survive process restarts, implementing a production database-backed store, or replacing InMemoryConversationStore with durable storage.
Install
npx vskill@latest install lauren-framework/lauren-ai/conversation-state-dbSKILL.md
The same SKILL.md was published earlier as lauren-framework/lauren-ai/conversation-state-db.
Usecodemap find "SymbolName"to locate any symbol before reading — it givesexact file + line range and is faster than grep across the whole repo.
Conversation State Serialization to Database
Overview
InMemoryConversationStore is convenient for development but loses all history on process restart. Replace it with a database-backed implementation that satisfies the ConversationStore protocol.
SQLite implementation (aiosqlite)
Wiring with an agent
Postgres implementation (asyncpg)
For production multi-worker deployments, replace SQLite with Postgres. The interface is identical — only the driver changes:
Schema migrations
Always create the schema before first use. The pattern above uses CREATE TABLE IF NOT EXISTS as a simple idempotent migration. For production, use a dedicated migration tool (Alembic, Flyway).
Testing
Test the store directly without an agent — just call save and load:
Reference
lauren_ai._memory:ConversationStore(protocol)lauren_ai._memory._stores:InMemoryConversationStore(reference implementation)- Skills:
conversation-memory,managing-memory
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/conversation-state-db/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lauren-framework/lauren-ai/conversation-state-db)