跳到正文
Skillpedia
邮件与消息18k · #10712

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/slack-tools/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-After headers. Tier 1 methods allow ~1 req/sec, Tier 2 ~20 req/min.
  • Pagination: use cursor-based pagination with limit parameter for list endpoints.

Automation Patterns

  • Scheduled messages: Use chat.scheduleMessage for 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 /commands for team-specific actions (deploy, status check, incident creation).
  • Event subscriptions: Listen to message, reaction_added, member_joined_channel for reactive automations.

Message Formatting

  • Use Block Kit Builder (https://app.slack.com/block-kit-builder) to design and preview message layouts.
  • Use mrkdwn for 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 @channel or @here in 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 地址视为密钥,绝不记录或提交它们。

详情

作者的原始描述

Slack workspace management and automation specialist

repo: RightNow-AI/openfang

热度

GitHub 星标
18k
排名
#10712
许可证
Apache-2.0
更新时间
2026/7/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能