chat_history

Query chat history from a local database with channel scope and keyword filters.

26|4|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/kid0317/cc_workspace_bot --skill chat-history-kid0317
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chat_history
Source: https://github.com/kid0317/cc_workspace_bot/tree/main/workspaces/_template/.claude/skills/chat_history
Command: npx skills add https://github.com/kid0317/cc_workspace_bot --skill chat-history-kid0317

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Locating and reviewing past conversations across a channel can be time-consuming and error-prone. The Chat History Skill provides a fast, privacy-conscious way to fetch relevant messages from the bot's local database for the current session.

Core Features & Use Cases

  • Retrieve recent user and assistant messages for the current channel with optional keyword filters.
  • Filter by date range (days) and limit results to stay focused and fast.
  • View per-session summaries or full message content while strictly enforcing channel scope.

Quick Start

Ask the AI to fetch the most recent exchanges for the current channel, optionally filtered by a keyword.

Frequently Asked Questions about chat_history

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve channel-specific chat history from a local database?

You can retrieve channel-specific chat history by querying the bot's local database with keyword filters and time-based day ranges, using the channel scope derived from SESSION_CONTEXT.md to ensure targeted retrieval.

Can I filter past messages by keyword and date range during a chat session?

Yes, you can filter past chat messages by specific keywords and a time-based scope measured in days, allowing you to narrow down retrieval to per-session summaries or full message content from the local database.

Does the chat history query enforce privacy boundaries across different channels?

Yes, the chat history query enforces privacy by reading the CHANNEL_KEY from SESSION_CONTEXT.md and applying strict channel-based access boundaries, ensuring users only retrieve messages scoped to their current channel.

What is the difference between per-session and full-message views when querying chat history?

Per-session views return summarized exchanges for the current channel, while full-message views return complete content. Both views enforce channel scope and provide truncated messages for safe display during retrieval.

Do I need SESSION_CONTEXT.md to fetch bot chat logs for a specific channel?

Yes, you need SESSION_CONTEXT.md to fetch bot chat logs because the skill reads the CHANNEL_KEY and database path from this file to establish channel scope and locate the local database for accurate message retrieval.

Are there limitations when retrieving large volumes of channel chat history?

A key limitation when retrieving large volumes of channel chat history is that the skill returns truncated messages for safe display and requires applying result limits to maintain fast, focused retrieval from the local database.