manage-conversation-db
CommunityKeep chat history robust and retrievable.
Authorsarimofficial
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill provides a structured approach to implement stateless conversation persistence for chat applications, enabling reliable loading/creation of conversations by ID and durable storage of user and assistant messages.
Core Features & Use Cases
- Conversation Lifecycle: Create new conversations or load existing ones by ID.
- Message Storage: Persist messages with role, content, and optional metadata (tool_name, tool_call_id).
- History Retrieval: Fetch conversation history in chronological order for agent input.
- Async Operations: Support non-blocking database queries to improve throughput.
- User Isolation: Ensure conversations are scoped to a specific user_id.
Quick Start
- Set up the database models for Conversation and Message (as shown in the code sample).
- Initialize an AsyncSession and a ConversationService with the session.
- Example flows:
- Get or create a conversation for user_id "user-123".
- Save a user message and an assistant reply.
- Retrieve the latest 50 messages for a conversation.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: manage-conversation-db Download link: https://github.com/sarimofficial/HackathonlPhase-IV-AI-Powered-Kubernetes-Deployment-Minikube-Helm-kubectl-ai-Kagent-Gordon/archive/main.zip#manage-conversation-db Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.