This skill lets you read, search, and send Slack messages across multiple workspaces with explicit send-confirmation before posting.
npx playbooks add skill idanbeck/claude-skills --skill slack-skill
Read, search, and send Slack messages. Access channels and DMs.
Before sending ANY message, you MUST get explicit user confirmation.
When the user asks to send a Slack message:
channels:history - Read public channel messageschannels:read - List public channelschat:write - Send messagesgroups:history - Read private channel messagesgroups:read - List private channelsim:history - Read DM messagesim:read - List DMsim:write - Send DMsmpim:history - Read group DM messagesmpim:read - List group DMsusers:read - List usersreactions:write - Add/remove emoji reactionssearch:read - Search messages (optional)xoxb-)Create the config file:
echo '{"default": {"token": "xoxb-YOUR-TOKEN-HERE", "workspace": "your-workspace"}}' > ~/.claude/skills/slack-skill/config.json
The bot must be invited to channels to read/send messages:
/invite @YourBotNamepython3 ~/.claude/skills/slack-skill/slack_skill.py channels [--workspace NAME]
python3 ~/.claude/skills/slack-skill/slack_skill.py users [--workspace NAME]
python3 ~/.claude/skills/slack-skill/slack_skill.py read CHANNEL [--limit N] [--workspace NAME]
CHANNEL can be:
#generalC0XXXXXX@usernamepython3 ~/.claude/skills/slack-skill/slack_skill.py send CHANNEL --message "Your message" [--thread-ts TIMESTAMP] [--workspace NAME]
Arguments:
CHANNEL - Channel name (#general), ID, or user (@username)--message / -m - Message text (required)--thread-ts / -t - Reply in thread (optional)--workspace / -w - Use specific workspacepython3 ~/.claude/skills/slack-skill/slack_skill.py search "query" [--limit N] [--workspace NAME]
python3 ~/.claude/skills/slack-skill/slack_skill.py thread CHANNEL THREAD_TS [--workspace NAME]
python3 ~/.claude/skills/slack-skill/slack_skill.py user USERNAME_OR_ID [--workspace NAME]
python3 ~/.claude/skills/slack-skill/slack_skill.py react CHANNEL TS EMOJI [--remove] [--workspace NAME]
Arguments:
CHANNEL - Channel name or IDTS - Message timestampEMOJI - Emoji name (e.g., eyes, white_check_mark, or :thumbsup:)--remove / -r - Remove reaction instead of addAdd workspaces to ~/.claude/skills/slack-skill/config.json:
{
"default": {
"token": "xoxb-default-token",
"workspace": "main-workspace"
},
"work": {
"token": "xoxb-work-token",
"workspace": "company-workspace"
}
}
Use --workspace work to specify which workspace.
python3 ~/.claude/skills/slack-skill/slack_skill.py read "#general" --limit 10
python3 ~/.claude/skills/slack-skill/slack_skill.py send "#engineering" -m "Build completed successfully!"
python3 ~/.claude/skills/slack-skill/slack_skill.py send "#general" -m "Thanks!" -t "1234567890.123456"
python3 ~/.claude/skills/slack-skill/slack_skill.py send "@john" -m "Hey, quick question..."
python3 ~/.claude/skills/slack-skill/slack_skill.py search "deployment issue" --limit 20
All commands output JSON for easy parsing.
pip install slack_sdk
The bridge listens for incoming messages and auto-responds using Claude Code:
python3 ~/.claude/skills/slack-skill/slack_bridge.py --auto
When processing messages, the bridge shows status via emoji reactions:
hourglass_flowing_sand - Working on responsewhite_check_mark - Response senteyes - Acknowledged (read but not responding)no_entry - User not in whitelistThe bridge tracks threads it has posted to. When someone replies to a tracked thread:
Requires Socket Mode. In your Slack app settings:
connections:write scopeapp_token:{
"default": {
"token": "xoxb-bot-token",
"app_token": "xapp-app-level-token",
"workspace": "your-workspace"
}
}
~/.claude/skills/slack-skill/config.jsonWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.