跳到正文
Skillpedia
邮件与消息394k · #36

block-kit

它能做什么

它教 AI 智能体把 Slack 回复排版为原生 Block Kit 布局,例如分区、表格和按钮。它适合希望 Slack 回答清晰、便于执行的人。

适用场景

  • ✓Slack 回复需要按钮,以便你批准或选择选项的时候。
  • ✓回答是报告、对比或计划,用分区或表格阅读更方便的时候。
  • ✓回复只是简短的答复或闲聊的时候,技能会保留为纯文本。

技能链接

https://github.com/openclaw/openclaw/blob/main/extensions/slack/skills/block-kit/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“请在 Slack 中给团队发一份本周销售摘要,用表格展示,并附一个可打开完整报告的按钮。”

每周 5 个新技能,1 分钟读完。

工作原理

技能判断丰富的布局是否有帮助,然后通过 Slack 消息工具以结构化的形式发送回复。它还附有纯文本的备用版本,即使布局无法显示,意思也能保留。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Slack Block Kit

Make useful Slack replies feel native. When structure or one-click follow-up improves the outcome, send a rich message without waiting for the user to ask for Block Kit.

Choose the surface

Use a presentation when the reply has at least one of these shapes:

  • a decision, confirmation, or next action that belongs on buttons or a select
  • a status, comparison, report, or plan that scans better as titled sections, a table, or a chart
  • important context that should be visually separated from the primary result

Use plain text for short answers and casual conversation where structure adds no value.

Send the result

For a reply in Slack, call the message tool with action: "send" and a portable presentation. The Slack plugin renders it as native Block Kit. Use the exact schema exposed by the current tool; supported block types can include text, context, divider, buttons, select, chart, and table.

  • Put the outcome first. Keep titles, labels, and context concise.
  • Give interactive controls real follow-up semantics. Use typed callback actions for conversational choices and url for an external destination. Do not use generic command actions for Slack controls; Slack renders them as text fallback rather than clickable controls.
  • Include a useful message fallback that preserves the meaning without the rich layout.
  • After the visible send succeeds, do not repeat the same content in the final response.

A control is complete only when its value is self-contained enough for the next agent turn to understand and act on. When an interaction returns, acknowledge the choice visibly and continue the requested workflow.

Native Block Kit authoring

When the user is building a Slack app or explicitly requests raw Block Kit JSON, read the adapted official Block Kit guide in full. For common message, modal, and App Home layouts, also read the official patterns.

Follow the adapted guide's live-documentation and blocks.validate workflow for native JSON. Do not pass native Slack blocks to OpenClaw's presentation field; the plugin owns that conversion.

常见问题

Slack 中的按钮真的能用吗?

按钮需要恰当的后续动作,例如输入的回调或网页链接,才能点击并发挥作用。

如果丰富的布局无法显示怎么办?

技能包含纯文本备用版本,保持相同的意思。

每条回复都使用布局吗?

不会。简短回答和闲聊消息仍然保持为纯文本。

详情

作者的原始描述

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

repo: openclaw/openclaw

热度

GitHub 星标
394k
排名
#36
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能