slack
它能做什么
这项技能让 AI 代你在 Slack 中操作,例如对消息做出回应、置顶条目或发送更新。适合使用 Slack 的团队,并希望智能体在频道和私信中提供帮助。
适用场景
- ✓当你希望智能体对 Slack 消息做出回应或将其置顶时。
- ✓当你希望智能体在 Slack 中发布、编辑或删除消息时。
- ✓当你想查询成员信息或列出某条消息的回应的时候。
技能链接
https://github.com/spinabot/brigade/blob/main/skills/slack/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把营销频道中关于发布日期的那条消息置顶,并为它添加一个点赞表情回应。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会使用与 Brigade 设置的机器人令牌相连接的 Slack 工具。它通过 ID 确定频道和消息,然后执行你要求的操作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Slack Actions
Overview
Use slack to react, manage pins, send/edit/delete messages, and fetch member info. The tool uses the bot token configured for Brigade.
Inputs to collect
channelIdandmessageId(Slack message timestamp, e.g.1712023032.1234).- For reactions, an
emoji(Unicode or:name:). - For message sends, a
totarget (channel:<id>oruser:<id>) andcontent.
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 Brigade"
}
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.
常见问题
哪些操作默认开启?
回应、消息、置顶、成员信息和自定义表情列表默认开启。
它如何识别某条消息?
它使用频道 ID 和消息时间戳,这些信息都包含在 Slack 的消息详情中。
它需要 Slack 应用吗?
需要。它使用为 Brigade 配置的机器人令牌,因此必须先连接 Slack 应用。
详情
作者的原始描述
Use when you need to control Slack from Brigade via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
repo: spinabot/brigade
热度
- GitHub 星标
- 11k
- 排名
- #11737
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …