跳到正文
TakoAPI
返回技能列表

multi-chat-context-manager

由 derick001 提供

Search & Research
292下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

CLI tool to store and retrieve conversation contexts per channel/user.

描述

该技能的功能

A CLI tool for storing and retrieving conversation histories keyed by channel, user, or thread ID. Contexts are saved as JSON files on disk. You call it manually from scripts or workflows.

Gives you a simple, zero-dependency key-value store for conversation context without needing a database or external service.

何时使用

  • Persisting chat history across bot restarts
  • Tracking per-user conversation state in custom scripts
  • Storing Q&A pairs keyed by Discord channel ID
  • Replaying past context when resuming a conversation
  • Building a lightweight context store for multi-platform bots

示例工作流

输入

User asks: store a message exchange for channel 'telegram-123' and user 'user-456', then retrieve it

智能体
  1. 1

    Run store command with --channel, --user, --message, and --response flags

  2. 2

    Script writes the exchange to a JSON file keyed by channel and user

  3. 3

    Run retrieve command with the same --channel and --user values

  4. 4

    Script reads the JSON file and returns the stored history

输出

{"channel_id": "telegram-123", "user_id": "user-456", "history": [{"message": "Hello", "response": "Hi there"}]}

安装

clawhub install derick001/multi-chat-context-manager

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接