add-slack

Add Slack as a communication channel to MatClaw via Socket Mode.

85|23|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/DingyangLyu/MatClaw --skill add-slack-dingyanglyu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-slack
Source: https://github.com/DingyangLyu/MatClaw/tree/main/.claude/skills/add-slack
Command: npx skills add https://github.com/DingyangLyu/MatClaw --skill add-slack-dingyanglyu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adds first-class Slack channel support to MatClaw so operators can receive and respond to workspace messages without exposing a public webhook or manual code edits.

Core Features & Use Cases

  • Deterministic Code Changes: Applies a reproducible code package that adds a Slack channel implementation, unit tests, and updates the channel registry.
  • Socket Mode Messaging: Connects via Slack Socket Mode using App-Level and Bot tokens so the agent can handle public channels, private channels, and direct messages.
  • Operational Safeguards: Validates tokens from .env, queues outgoing messages while disconnected, paginates channel metadata sync, and enforces message length splitting to meet Slack API limits.
  • Use Case: Install the skill to let MatClaw participate in team channels, handle user mentions, and forward messages to the agent for autonomous computation tasks.

Quick Start

Apply the add-slack skill, provide the Slack App and Bot tokens when prompted, and register the channel ID to enable Slack messaging.

Frequently Asked Questions about add-slack

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

FAQPage Schema
How do I connect a Slack workspace to my agent using Socket Mode?

To connect Slack via Socket Mode, apply the add-slack skill, provide your Slack App and Bot tokens when prompted, and register the channel ID to enable messaging across public channels, private channels, and direct messages.

What do I need to configure Slack Socket Mode integration for a bot?

Configuring Slack Socket Mode requires generating a SLACK_BOT_TOKEN and a SLACK_APP_TOKEN from your Slack app settings, then storing them in your .env file so the integration can validate credentials and establish a secure WebSocket connection.

Can I use Slack integration to handle messages in private channels and direct messages?

Yes, the Slack integration supports public channels, private channels, and direct messages, allowing your agent to receive and respond to workspace messages autonomously without exposing a public webhook.

Why does my Slack bot fail to send long messages through the API?

Slack API enforces strict message length limits, so the integration automatically splits outgoing messages to comply with these constraints, preventing failed deliveries and ensuring complete message transmission.

How does the Slack channel integration sync workspace channel metadata?

The integration syncs channel metadata by calling the conversations.list API endpoint with pagination, registering channel JIDs, and queuing outgoing messages while disconnected to ensure operational continuity.

Do I need a public webhook to receive Slack messages with Socket Mode?

No, Socket Mode uses App-Level and Bot tokens to establish a secure WebSocket connection, eliminating the need for a public webhook or manual code edits to receive Slack workspace messages.