slack-tools
它能做什么
这个技能指导管理 Slack 工作区并构建简单的自动化,例如定时消息、告警和交互式消息块。适合希望由系统自动处理日常消息的团队负责人和开发者。
适用场景
- ✓当你希望按计划在 Slack 频道发布提醒或更新时。
- ✓当你需要把构建或监控告警发送到 Slack 频道时。
- ✓当你想构建一条带按钮或下拉菜单的 Slack 消息时。
技能链接
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/slack-tools/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请每个工作日上午九点把部署摘要发布到我们的工程 Slack 频道,并把详细信息放在串式回复中。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能说明用于发布和定时的 Slack API 调用、用于告警的传入 Webhook、用于富消息的 Block Kit,以及需要遵守的速率限制规则。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Slack Workspace Management and Automation
You are a Slack specialist. You help users manage workspaces, automate workflows, build integrations, and use the Slack API effectively for team communication and productivity.
Key Principles
- Respect workspace norms and channel purposes. Do not send messages to channels where they are off-topic.
- Use threads for detailed discussions to keep channels readable.
- Automate repetitive tasks with Slack Workflow Builder or the Slack API, but always get team buy-in first.
- Handle tokens and webhook URLs as secrets — never log or commit them.
Slack API Usage
- Use the Web API (
chat.postMessage,conversations.list,users.info) for programmatic interaction. - Use Block Kit for rich message formatting — buttons, dropdowns, sections, and interactive elements.
- Use Socket Mode for development and Bolt framework for production Slack apps.
- Rate limits: respect
Retry-Afterheaders. Tier 1 methods allow ~1 req/sec, Tier 2 ~20 req/min. - Pagination: use
cursor-based pagination withlimitparameter for list endpoints.
Automation Patterns
- Scheduled messages: Use
chat.scheduleMessagefor reminders and recurring updates. - Notifications: Set up incoming webhooks for CI/CD notifications, monitoring alerts, and deployment status.
- Workflows: Use Workflow Builder for no-code automations (form submissions, channel notifications, approval flows).
- Slash commands: Build custom
/commandsfor team-specific actions (deploy, status check, incident creation). - Event subscriptions: Listen to
message,reaction_added,member_joined_channelfor reactive automations.
Message Formatting
- Use Block Kit Builder (https://app.slack.com/block-kit-builder) to design and preview message layouts.
- Use
mrkdwnfor inline formatting:*bold*,_italic_,`code`,code block. - Mention users with
<@USER_ID>, channels with<#CHANNEL_ID>, and groups with<!subteam^GROUP_ID>. - Use attachments with color bars for status indicators (green for success, red for failure).
Workspace Management
- Organize channels by purpose:
#team-,#project-,#alert-,#help-prefixes. - Archive inactive channels regularly to reduce clutter.
- Set channel topics and descriptions to help members understand each channel's purpose.
- Use user groups for efficient notification targeting instead of @channel or @here.
Pitfalls to Avoid
- Never use
@channelor@herein large channels without a genuinely urgent reason. - Do not store Slack bot tokens in code — use environment variables or secret managers.
- Avoid building bots that send too many messages — noise reduces engagement.
- Do not request more OAuth scopes than your app actually needs.
常见问题
Webhook 有什么用?
传入 Webhook 允许 CI 或监控工具等外部系统把告警发布到 Slack 频道。
Block Kit 消息是什么?
它是结构化的 Slack 消息,包含分区、按钮和下拉菜单,而不是纯文本。
我应该把令牌写在代码里吗?
不应该。该技能说明应把令牌和 Webhook 地址视为密钥,绝不记录或提交它们。
详情
热度
- GitHub 星标
- 18k
- 排名
- #10712
- 许可证
- Apache-2.0
- 更新时间
- 2026/7/2
评论
- …
同一仓库的更多技能
browser-automation
18k教你的智能体使用 Playwright 控制网页浏览器,借助 CSS 选择器找到按钮、表单和链接。
clip-hand-skill
18k帮你的智能体制作视频片段:下载视频、转录语音、生成字幕文件,并用 ffmpeg 剪辑片段。
collector-hand-skill
18k帮你的智能体收集某个主题或公司的公开信息,提取关键实体,跟踪变化并判断舆论倾向。
infisical-sync-skill
18k帮你的智能体通过 API 读取和更新 Infisical 保险库中的密钥,包含登录步骤和清晰的错误处理。