name: multi-chat-context-manager description: CLI tool to store and retrieve conversation contexts per channel/user. version: 1.0.2 author: skill-factory metadata: openclaw: requires: bins: - python3
A simple CLI tool to store, retrieve, and clear conversation contexts. Contexts are saved as JSON, keyed by channel/user/thread IDs. This is a utility library, not an auto-integration plugin.
Store a conversation: python3 scripts/context_manager.py store --channel "telegram-123" --user "user-456" --message "Hello" --response "Hi there"
Retrieve context: python3 scripts/context_manager.py retrieve --channel "telegram-123" --user "user-456"
Clear context: python3 scripts/context_manager.py clear --channel "telegram-123"
List all contexts: python3 scripts/context_manager.py list
Store: python3 scripts/context_manager.py store --channel "discord-general" --user "john" --message "What is AI?" --response "AI is artificial intelligence."
Retrieve: python3 scripts/context_manager.py retrieve --channel "discord-general" --user "john"
Output: { "channel_id": "discord-general", "user_id": "john", "history": [{"message": "What is AI?", "response": "AI is artificial intelligence."}] }
发现更多技能插件,请访问7w4.net。
这个工具整体质量中等偏上,核心功能实现完整,文档清晰易读,可以满足基本的上下文存储和检索需求。双接口设计提供了灵活性,无依赖的特性也降低了使用门槛。主要不足是 Shell 和 Python 的使用方式不统一,参数格式差异容易造成混淆;数据存储没有加密和并发保护,大型项目使用需谨慎。适合作为轻量级辅助工具,不建议用于高并发或安全性要求高的生产环境。