skills$openclaw/slack-context-memory
davidrudduck7.8k

by davidrudduck

slack-context-memory – OpenClaw Skill

slack-context-memory is an OpenClaw Skills integration for data analytics workflows. Conversation summarization and context compaction for Slack channels. Reduces context window usage by 70-99% while preserving key information through semantic summaries.

7.8k stars9.8k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026data analytics

Skill Snapshot

nameslack-context-memory
descriptionConversation summarization and context compaction for Slack channels. Reduces context window usage by 70-99% while preserving key information through semantic summaries. OpenClaw Skills integration.
ownerdavidrudduck
repositorydavidrudduck/slack-context-memory
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @davidrudduck/slack-context-memory
last updatedFeb 7, 2026

Maintainer

davidrudduck

davidrudduck

Maintains slack-context-memory in the OpenClaw Skills directory.

View GitHub profile
File Explorer
11 files
.
_meta.json
298 B
context-compactor.js
9.7 KB
detect-conversations.js
5.8 KB
package.json
569 B
schema.sql
3.6 KB
search-conversations.js
9.4 KB
setup-schema.js
1.2 KB
SKILL.md
2.3 KB
summarize-conversation.js
7.0 KB
summarize-openai.js
4.1 KB
test-and-post.js
8.4 KB
SKILL.md

name: slack-context-memory description: Conversation summarization and context compaction for Slack channels. Reduces context window usage by 70-99% while preserving key information through semantic summaries.

Slack Context Memory

Compress Slack conversation history into searchable summaries for context-efficient sessions.

Problem Solved

Clawdbot sessions lose context as conversation history grows. This skill:

  1. Detects conversation boundaries in Slack message history
  2. Generates structured summaries (TL;DR, decisions, topics, outcome)
  3. Stores summaries with embeddings for semantic search
  4. Compacts context - replace 1000s of messages with a few summaries
  5. Enables semantic retrieval - find relevant past discussions

Quick Start

# Setup database schema
cd /home/david/clawd/scripts/slack-context-memory
node setup-schema.js

# View compacted context for a channel
node context-compactor.js C0ABGHA7CBE

# Compare original vs compacted size
node context-compactor.js C0ABGHA7CBE --compare

# Search for relevant conversations
node context-compactor.js --query "email newsletter filtering"

Token Savings

ChannelOriginalCompactedSavings
#accounts (1000 msgs)112K tokens951 tokens99.2%
#homeassistant (50 msgs)3.1K tokens911 tokens70.8%

Components

Conversation Detection

node detect-conversations.js <channel_id>
node detect-conversations.js --all
node context-compactor.js <channel_id> --recent 20
node context-compactor.js <channel_id> --compare
node context-compactor.js --query "search term"

Search

node search-conversations.js semantic "query"
node search-conversations.js text "query"
node search-conversations.js recent --limit 10

Requirements

  • PostgreSQL database with pgvector
  • Node.js 18+
  • Slack message history in database

Database Schema

The conversation_summaries table stores:

  • tldr - 1-2 sentence summary
  • full_summary - Detailed summary
  • key_decisions - Array of decisions made
  • topics - Array of topics discussed
  • outcome - resolved/ongoing/needs-follow-up
  • embedding - Vector for semantic search (1024-dim)

Built for Clawdbot 🦞 | 2026-01-28

README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

- PostgreSQL database with pgvector - Node.js 18+ - Slack message history in database

FAQ

How do I install slack-context-memory?

Run openclaw add @davidrudduck/slack-context-memory in your terminal. This installs slack-context-memory into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/davidrudduck/slack-context-memory. Review commits and README documentation before installing.