微算力 · API 导航与自营网关
API 接入 EN
未登录登录
💬

Slack 消息自动化控制台

testat1 · v1.0.0
办公 安全 B 级 作者 chaunceyliu 公开目录收录
1.8k 下载 0 安装 5.3k 收藏 5 浏览

简介

通过 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 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/testat1/
其它 Agent解压到它自己的 skills 目录,目录名用 testat1

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

Slack 技能让 Clawdbot 能够直接调用 Slack API,实现消息级别的精细操作。核心功能覆盖四大模块:消息管理(发送、编辑、删除、读取)、反应互动(添加/列出表情反应)、置顶管理(pin/unpin/列表)以及成员信息查询。用户需提供标准的 Slack channelId 和 messageId(即消息时间戳格式如 1712023032.1234),消息操作支持 channel:<id> 或 user:<id> 作为目标标识。

显著优点

  • 操作粒度细:不仅能发消息,还能精准编辑、删除历史消息,区别于仅支持广播的简单集成。
  • 反应与置顶原生支持:可直接用 ✅ 等 emoji 标记任务完成,或置顶关键决策,贴合 Slack 原生协作习惯。
  • 上下文感知:自动复用消息中的 slack message id 和 channel 字段,降低用户输入成本。
  • 自定义表情支持:可列出工作区自定义 emoji,增强互动灵活性。

潜在局限

  • 权限依赖:所有操作受限于 Clawdbot 的 Bot Token 权限配置,若管理员未开启对应 scope(如 chat:write, reactions:write, pins:write),功能将不可用。
  • 无频道管理:不支持创建频道、邀请成员等管理级操作,仅限消息层面互动。
  • ID 可读性差:用户需处理原始的 C123/U123 格式 ID,对非技术用户不够友好。
  • 速率限制:Slack API 存在 Tier 级别的速率限制,高频操作可能触发冷却。

适合人群

  • 技术团队/开发者:需要将 AI 工作流与 Slack 深度绑定的场景,如 CI/CD 通知、Bug 追踪自动更新。
  • 项目经理:通过置顶和反应快速标记任务状态,替代手动翻查历史消息。
  • 社区运营者:自动化管理公告频道,定时发送/更新群规或活动信息。

常规风险

  • 误操作风险:删除和编辑消息不可逆(Slack 保留编辑历史但无版本回滚),高权限 token 若泄露可能导致消息被批量篡改或删除。
  • 隐私合规:成员信息查询可能触及 GDPR 等隐私法规,需确保 Bot 仅访问必要范围的成员数据。
  • Token 安全:Bot Token 属于长期凭证,若配置环境不安全,存在被滥用的潜在风险。

技能正文


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

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.

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.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

slackmessagingcollaborationautomationteam-communication

同类 Skill