简介
通过 Clawdbot 直接操控 Slack,支持消息收发、表情反应、置顶管理及成员信息查询,提升团队协作自动化效率。
原始描述
Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
通过你的 Agent 添加
安装目录:slack/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Slack 技能赋予 Clawdbot 完整的 Slack 工作区操控能力,通过 bot token 实现与 Slack API 的无缝对接。用户可通过结构化 JSON 指令执行四类核心操作:
消息管理:发送、编辑、删除消息,支持定向发送至频道(channel:<id>)或私信用户(user:<id>),并可读取最近 20 条消息历史。
互动反应:为消息添加 Unicode 或自定义表情(:name: 格式),支持查询消息的全部反应列表,适用于任务标记、投票收集等场景。
置顶系统:Pin/Unpin 关键消息,并支持列出频道内所有置顶项,便于留存重要决策或周报应对方便回溯。
信息查询:获取指定用户资料(memberInfo)及工作区自定义表情列表(emojiList),辅助身份识别与个性化互动。
显著优点
- 全功能覆盖:涵盖消息生命周期全链条(CRUD)+ 社交互动 + 频道管理,无需切换平台即可完成高频操作
- 上下文感知:自动继承对话中的
slack message id 和 channel 字段,减少重复输入
- 灵活寻址:同时支持频道广播与私密直聊两种通信模式
- 零配置门槛:依赖预配置的 bot token,终端用户无需处理 OAuth 授权流程
潜在局限
- 权限边界受限:实际可操作范围取决于 bot 在 Slack 工作区被授予的 OAuth scope,若管理员未授权
chat:write:bot 或 pins:write 等权限,对应功能将调用失败
- 无实时事件订阅:当前实现为轮询/调用模式,不支持监听消息事件流(如@提及自动触发)
- 消息 ID 依赖人工:需从上下文中提取 message timestamp 作为 ID,对非技术用户存在认知门槛
- 无富文本支持:JSON 结构中
content 字段仅支持纯文本,Markdown 渲染及 block kit 布局需额外处理
适合人群
- 需要批量处理 Slack 消息的运营/社区管理员
- 希望将 Clawdbot 接入现有 Slack workflow 的自动化开发者
- 追求"对话即操作"体验的敏捷团队成员
常规风险
- 误操作不可逆:消息删除指令无二次确认,执行后立即生效
- 可见性泄露:发送至
channel: 的消息对所有成员可见,需注意敏感信息过滤
- 速率限制:Slack API 存在 Tier 级别限流(如
chat.postMessage 为 Tier 3,每秒 50+ 请求),高频调用可能触发 429 错误
- Token 泄露:bot token 若配置不当存在权限滥用风险,建议遵循最小权限原则分配 scop
slack message id 和 channel 字段,减少重复输入- 权限边界受限:实际可操作范围取决于 bot 在 Slack 工作区被授予的 OAuth scope,若管理员未授权
chat:write:bot或pins:write等权限,对应功能将调用失败 - 无实时事件订阅:当前实现为轮询/调用模式,不支持监听消息事件流(如@提及自动触发)
- 消息 ID 依赖人工:需从上下文中提取 message timestamp 作为 ID,对非技术用户存在认知门槛
- 无富文本支持:JSON 结构中
content字段仅支持纯文本,Markdown 渲染及 block kit 布局需额外处理
适合人群
- 需要批量处理 Slack 消息的运营/社区管理员
- 希望将 Clawdbot 接入现有 Slack workflow 的自动化开发者
- 追求"对话即操作"体验的敏捷团队成员
常规风险
- 误操作不可逆:消息删除指令无二次确认,执行后立即生效
- 可见性泄露:发送至
channel: 的消息对所有成员可见,需注意敏感信息过滤
- 速率限制:Slack API 存在 Tier 级别限流(如
chat.postMessage 为 Tier 3,每秒 50+ 请求),高频调用可能触发 429 错误
- Token 泄露:bot token 若配置不当存在权限滥用风险,建议遵循最小权限原则分配 scop
- 误操作不可逆:消息删除指令无二次确认,执行后立即生效
- 可见性泄露:发送至
channel:的消息对所有成员可见,需注意敏感信息过滤 - 速率限制:Slack API 存在 Tier 级别限流(如
chat.postMessage为 Tier 3,每秒 50+ 请求),高频调用可能触发 429 错误 - Token 泄露:bot token 若配置不当存在权限滥用风险,建议遵循最小权限原则分配 scop
技能正文
name: slack
description: Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Slack Actions
Overview
Overview
Use slack to react, manage pins, send/edit/delete messages, and fetch member info. The tool uses the bot token configured for Clawdbot.
Inputs to collect
channelId and messageId (Slack message timestamp, e.g. 1712023032.1234).
- For reactions, an
emoji (Unicode or :name:).
- For message sends, a
to target (channel:<id> or user:<id>) and content.
channelId and messageId (Slack message timestamp, e.g. 1712023032.1234).emoji (Unicode or :name:).to target (channel:<id> or user:<id>) and content.Message context lines include slack message id and channel fields you can reuse directly.
Actions
Action groups
| Action group | Default | Notes |
|---|---|---|
| reactions | enabled | React + list reactions |
| messages | enabled | Read/send/edit/delete |
| pins | enabled | Pin/unpin/list |
| memberInfo | enabled | Member info |
| emojiList | enabled | Custom emoji list |
React to a message
{
"action": "react",
"channelId": "C123",
"messageId": "1712023032.1234",
"emoji": "✅"
}
List reactions
{
"action": "reactions",
"channelId": "C123",
"messageId": "1712023032.1234"
}
Send a message
{
"action": "sendMessage",
"to": "channel:C123",
"content": "Hello from Clawdbot"
}
Edit a message
{
"action": "editMessage",
"channelId": "C123",
"messageId": "1712023032.1234",
"content": "Updated text"
}
Delete a message
{
"action": "deleteMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
Read recent messages
{
"action": "readMessages",
"channelId": "C123",
"limit": 20
}
Pin a message
{
"action": "pinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
Unpin a message
{
"action": "unpinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
List pinned items
{
"action": "listPins",
"channelId": "C123"
}
Member info
{
"action": "memberInfo",
"userId": "U123"
}
Emoji list
{
"action": "emojiList"
}
Ideas to try
- React with ✅ to mark completed tasks.
- Pin key decisions or weekly status updates.
{
"action": "react",
"channelId": "C123",
"messageId": "1712023032.1234",
"emoji": "✅"
}
{
"action": "reactions",
"channelId": "C123",
"messageId": "1712023032.1234"
}
Send a message
{
"action": "sendMessage",
"to": "channel:C123",
"content": "Hello from Clawdbot"
}
Edit a message
{
"action": "editMessage",
"channelId": "C123",
"messageId": "1712023032.1234",
"content": "Updated text"
}
Delete a message
{
"action": "deleteMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
Read recent messages
{
"action": "readMessages",
"channelId": "C123",
"limit": 20
}
Pin a message
{
"action": "pinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
Unpin a message
{
"action": "unpinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
List pinned items
{
"action": "listPins",
"channelId": "C123"
}
Member info
{
"action": "memberInfo",
"userId": "U123"
}
Emoji list
{
"action": "emojiList"
}
Ideas to try
- React with ✅ to mark completed tasks.
- Pin key decisions or weekly status updates.
{
"action": "sendMessage",
"to": "channel:C123",
"content": "Hello from Clawdbot"
}
{
"action": "editMessage",
"channelId": "C123",
"messageId": "1712023032.1234",
"content": "Updated text"
}
Delete a message
{
"action": "deleteMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
Read recent messages
{
"action": "readMessages",
"channelId": "C123",
"limit": 20
}
Pin a message
{
"action": "pinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
Unpin a message
{
"action": "unpinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
List pinned items
{
"action": "listPins",
"channelId": "C123"
}
Member info
{
"action": "memberInfo",
"userId": "U123"
}
Emoji list
{
"action": "emojiList"
}
Ideas to try
- React with ✅ to mark completed tasks.
- Pin key decisions or weekly status updates.
{
"action": "deleteMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
{
"action": "readMessages",
"channelId": "C123",
"limit": 20
}
Pin a message
{
"action": "pinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
Unpin a message
{
"action": "unpinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
List pinned items
{
"action": "listPins",
"channelId": "C123"
}
Member info
{
"action": "memberInfo",
"userId": "U123"
}
Emoji list
{
"action": "emojiList"
}
Ideas to try
- React with ✅ to mark completed tasks.
- Pin key decisions or weekly status updates.
{
"action": "pinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
{
"action": "unpinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}
List pinned items
{
"action": "listPins",
"channelId": "C123"
}
Member info
{
"action": "memberInfo",
"userId": "U123"
}
Emoji list
{
"action": "emojiList"
}
Ideas to try
- React with ✅ to mark completed tasks.
- Pin key decisions or weekly status updates.
{
"action": "listPins",
"channelId": "C123"
}
{
"action": "memberInfo",
"userId": "U123"
}
Emoji list
{
"action": "emojiList"
}
Ideas to try
- React with ✅ to mark completed tasks.
- Pin key decisions or weekly status updates.
{
"action": "emojiList"
}
- React with ✅ to mark completed tasks.
- Pin key decisions or weekly status updates.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。