Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

multi-chat-context-manager

bởi derick001

Search & Research
292Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

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

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Cài đặt

clawhub install derick001/multi-chat-context-manager

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết