Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

slackSlack 团队协作

Agent Skill

用于处理 Slack 工作区里的频道、消息、线程、用户和通知信息。它适合让 Agent 查询团队沟通记录、整理上下文、回复线程或辅助协作提醒。使用时需要确认机器人或用户 token 是否具备目标频道访问权,私有频道和历史消息通常有额外权限限制;发送消息、@成员或批量读取对话时,应避免泄露内部讨论和敏感工作信息。

总安装

745

周安装

32

GitHub Stars

22

下载量

261
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:slack(Slack 团队协作)
来源仓库:https://github.com/tdimino/claude-code-minoan
仓库路径:skills/slack
安装命令:
npx skills add https://github.com/tdimino/claude-code-minoan --skill slack
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tdimino/claude-code-minoan --skill slack

简介

用于处理 Slack 工作区里的频道、消息、线程、用户和通知信息。

  • 适合让 Agent 查询团队沟通记录、整理上下文、回复线程或辅助协作提醒。
  • 使用时需要确认机器人或用户 token 是否具备目标频道访问权。
  • 私有频道和历史消息通常有额外权限限制,发送消息时应避免泄露内部讨论。
  • 当前无额外底部简介,可参考来源仓库获取完整功能说明。

SKILL.md

Slack Skill

Slack workspace integration with two components:

  1. Scripts — 7 Python scripts for on-demand Slack operations (bundled here)
  2. Session Bridge — connect THIS Claude Code session to Slack (background listener + inbox file, no extra API costs)
Daemon & Soul Engine: The Claudicle daemon (unified launcher, soul engine, cognitive pipeline, three-tier memory, Soul Monitor TUI) now lives in its own repo: github.com/tdimino/claudicle. Install Claudicle separately for daemon features.

When to Use This Skill

Scripts (on-demand)

  • Posting messages to Slack channels or threads
  • Reading channel history or thread replies
  • Searching messages or files across the workspace
  • Adding or managing reactions on messages
  • Uploading files or code snippets
  • Listing channels, getting channel info, or joining channels
  • Looking up users by name, ID, or email

Session Bridge (recommended)

  • Connecting any running Claude Code session to Slack
  • Responding to @mentions and DMs with full tool access (this session IS the brain)
  • No extra API costs — messages processed in the current session context
  • Auto-notification of new messages via UserPromptSubmit hook
  • Personality as Claudicle via soul.md instructions (no XML machinery needed)

Prerequisites

All scripts require the SLACK_BOT_TOKEN environment variable (a Bot User OAuth Token starting with xoxb-). Scripts also require requests (uv pip install --system requests).

# Verify token is set
echo $SLACK_BOT_TOKEN

First-Time Setup

  1. Go to api.slack.com/apps -> Create New App -> From Scratch
  2. Name it "Claude Code" -> select your workspace
  3. OAuth & Permissions -> Bot Token Scopes -> add all:

- app_mentions:read - channels:history, groups:history, im:history, mpim:history - channels:read, groups:read, im:read, im:write - chat:write - files:write, files:read - reactions:write, reactions:read - search:read - users:read, users:read.email - users:write (optional — enables green presence dot)

  1. Settings -> Socket Mode -> toggle ON -> generate an App-Level Token:

- Name: socket-mode - Scope: connections:write - Copy the xapp- token

  1. Event Subscriptions -> toggle ON (no Request URL needed with Socket Mode) -> Subscribe to Bot Events -> add:

- app_mention — channel @mentions - message.im — direct messages (required for DMs to work) - app_home_opened — App Home tab rendering

  1. App Home -> Show Tabs -> enable "Allow users to send Slash commands and messages from the messages tab"
  2. Install to Workspace -> approve permissions -> copy Bot User OAuth Token
  3. Set environment variables (add to shell profile): export SLACK_BOT_TOKEN=xoxb-... # Bot User OAuth Token export SLACK_APP_TOKEN=xapp-... # App-Level Token (Socket Mode)
  4. Invite the bot to channels: /invite @Claude Code

After any scope or event subscription change: reinstall the app (Install App -> Reinstall to Workspace) and restart the listener.


Quick Start

# Post a message
python3 ~/.claude/skills/slack/scripts/slack_post.py "#general" "Hello from Claude"

# Read recent messages
python3 ~/.claude/skills/slack/scripts/slack_read.py "#general" -n 10

# Search the workspace
python3 ~/.claude/skills/slack/scripts/slack_search.py "deployment status"

# Connect this session to Slack via Claudicle Session Bridge
# (requires Claudicle installed — see github.com/tdimino/claudicle)
cd ~/.claudicle/daemon && python3 slack_listen.py --bg
python3 ~/.claude/skills/slack/scripts/slack_check.py

Session Bridge

Connect any running Claude Code session to Slack. A background listener catches @mentions and DMs -> inbox.jsonl. This session reads the inbox, processes with full tool access, posts responses back. No extra API costs.

Requires Claudicle daemon installed — see github.com/tdimino/claudicle.

# Connect
cd ~/.claudicle/daemon && python3 slack_listen.py --bg

# Check messages
python3 ~/.claude/skills/slack/scripts/slack_check.py

# Respond to thread, remove hourglass, mark handled
python3 ~/.claude/skills/slack/scripts/slack_post.py "C12345" "response" --thread "TS"
python3 ~/.claude/skills/slack/scripts/slack_react.py "C12345" "TS" "hourglass_flowing_sand" --remove
python3 ~/.claude/skills/slack/scripts/slack_check.py --ack 1

# Disconnect
cd ~/.claudicle/daemon && python3 slack_listen.py --stop

Soul Formatter (optional): scripts/slack_format.py adds Open Souls cognitive step formatting — perception framing, dialogue extraction, monologue logging.

python3 slack_format.py perception "Tom" "What's the status?"   # -> Tom said, "..."
echo "$raw" | python3 slack_format.py extract                   # -> external dialogue only
echo "$raw" | python3 slack_format.py extract --narrate --log   # -> narrated + logged
python3 slack_format.py instructions                            # -> cognitive step XML format

Automated Respond: /slack-respond processes all pending messages as Claudicle with full cognitive steps — perception, monologue, dialogue, post, ack — in a single invocation. See ~/.claude/skills/slack-respond/SKILL.md.

For full installation, architecture, inbox format, auto-notification hook, and troubleshooting, see references/session-bridge.md.


Script Selection Guide

TaskScriptExample
Post a messageslack_post.pyslack_post.py "#general" "Hello"
Reply to a threadslack_post.pyslack_post.py "#ch" "reply" --thread TS
Schedule a messageslack_post.pyslack_post.py "#ch" "msg" --schedule ISO
Read channel historyslack_read.pyslack_read.py "#general" -n 20
Read threadslack_read.pyslack_read.py "#ch" --thread TS
Search messagesslack_search.pyslack_search.py "query"
Search filesslack_search.pyslack_search.py "query" --files
Add reactionslack_react.pyslack_react.py "#ch" TS emoji
Upload fileslack_upload.pyslack_upload.py "#ch"./file.pdf
Share code snippetslack_upload.pyslack_upload.py "#ch" --snippet CODE
List channelsslack_channels.pyslack_channels.py
Join channelslack_channels.pyslack_channels.py --join "#ch"
Find user by emailslack_users.pyslack_users.py --email user@co.com

For full script documentation (all parameters, examples, test suite, common workflows), see references/scripts-reference.md.


Rate Limit Awareness

TierRateKey Methods
Tier 11/minconversations.history, conversations.replies
Tier 220/minconversations.list, users.list, search.messages
Tier 350/minreactions.*, conversations.info, chat.update
Tier 4100+/minfiles.getUploadURLExternal, files.completeUploadExternal
Special1/sec/channelchat.postMessage

All scripts handle rate limits automatically via _slack_utils.py (local cooldown + retry with Retry-After). See references/rate-limits.md for full details.


Troubleshooting

ProblemFix
Bot not responding to @mentionsEnable Socket Mode; verify SLACK_APP_TOKEN (xapp-) is exported
"missing_scope" errorAdd the missing scope in OAuth & Permissions -> reinstall app
No search resultsInvite bot to channels with /invite @Claude Code, or use user token (xoxp-)
Rate limited (429)Scripts auto-retry; reduce batch sizes
"Sending messages turned off"App Home -> enable "Allow users to send Slash commands and messages from the messages tab"
No green presence dotAdd users:write scope -> reinstall app
App Home tab blankSubscribe to app_home_opened event

For daemon-specific troubleshooting (soul engine, memory, launcher), see Claudicle docs.


File Structure

scripts/
├── slack_check.py       # Session Bridge: read/ack inbox messages
├── slack_inbox_hook.py  # Session Bridge: UserPromptSubmit auto-check hook
├── slack_format.py      # Soul formatter: perception/extract/instructions (Open Souls paradigm)
├── slack_post.py        # Post messages to channels/threads
├── slack_read.py        # Read channel history or threads
├── slack_search.py      # Search messages or files
├── slack_react.py       # Add/remove reactions
├── slack_upload.py      # Upload files or snippets
├── slack_channels.py    # List/join channels
├── slack_users.py       # Look up users
└── _slack_utils.py      # Shared auth, rate limiting, API calls

Reference Index

ReferenceContents
references/session-bridge.mdSession Bridge: installation, architecture, inbox format, usage workflow, soul formatter, troubleshooting
references/unified-launcher-architecture.mdUnified launcher: installation, architecture, per-channel sessions, SDK integration, data flows, threading model
references/daemon-architecture.mdSoul engine cognitive steps, memory tiers, XML format, App Home, Soul Monitor TUI
references/scripts-reference.mdFull documentation for all 7 scripts, test suite, common workflows
references/onboarding-guide.mdUser model interview, CLAUDE.md generation, export commands
references/rate-limits.mdSlack API rate limit tiers and handling strategy

Assets

  • assets/app-icon.png — Slack app icon for bot configuration

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.01%
按下载量换算91

Claude

29.12%
按下载量换算76

Cursor

19.7%
按下载量换算51

Gemini CLI

9.39%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills