Community编程与开发github.com

Block Kit

优先用于结构化或交互式Slack回复,以及当需要编写或验证原生Slack Block Kit JSON时。

Block Kit 是什么?

该技能(Block Kit)使Slack回复更加原生和丰富。当结构和一键式跟进能够改善结果时,它允许发送富消息,而无需等待用户显式要求使用Block Kit。它支持多种Slack界面元素,如按钮、选择器、图表、表格等,并提供了清晰的“何时使用”指南:当回复涉及决策、确认、状态报告等需要结构化展示的场景时,应使用`presentation`字段;而对于简短答案或随意对话,则建议使用纯文本。该技能的核心工作流程是:通过调用`message`工具并传入`action: "send"`和可移植的`presentation`对象,由Slack插件将其渲染为原生Block Kit。它还特别强调了交互控件的正确语义(使用`callback`类型用于对话选择,`url`用于外部链接),以及包含有用的纯文本回退。此外,当用户需要构建Slack应用或请求原生Block Kit JSON时,该技能会引导用户阅读官方指南,并遵循实时文档和`blocks.validate`工作流,同时明确指出不应将原生Slack blocks传递给OpenClaw的`presentation`字段。该技能适用于Claude Code、Cursor等平台,通过插件机制实现Slack原生体验。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/extensions/slack/skills/block-kit

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Slack Block Kit

让有用的Slack回复感觉原生。当结构或一键式跟进能改善结果时,发送富消息,无需等待用户要求使用Block Kit。

选择展示表面

当回复至少符合以下一种形态时,使用 presentation:

  • 需要按钮或选择器来处理的决策、确认或下一步操作
  • 以带标题的章节、表格或图表形式阅读更清晰的状况、比较、报告或计划
  • 应与主要结果进行视觉分离的重要上下文

对于简短答案和随意对话(结构不会增加价值),使用纯文本。

发送结果

对于Slack中的回复,调用 message 工具,传入 action: "send" 和一个可移植的 presentation。Slack插件会将其渲染为原生Block Kit。使用当前工具暴露的确切模式;支持的块类型可以包括 text、context、divider、buttons、select、chart 和 table。

  • 把结果放在首位。保持标题、标签和上下文简洁。
  • 为交互控件赋予真正的跟进语义。使用类型化的 callback 动作进行对话选择,使用 url 指向外部目标。不要在Slack控件中使用泛型 command 动作;Slack会将其渲染为文本回退,而不是可点击的控件。
  • 包含一个有用的 message 回退,在保留含义的同时不依赖富布局。
  • 在发送成功可见后,不要在最终回复中重复相同的内容。

只有当控件的值足够自包含,以便下一个智能体轮次能够理解并执行时,该控件才算完整。当交互返回时,要明显地确认选择,并继续所请求的工作流。

原生Block Kit编写

当用户正在构建Slack应用或明确要求原始Block Kit JSON时,请完整阅读改编的官方Block Kit指南。对于常见的消息、模态框和App Home布局,还要阅读官方模式。

遵循改编指南的实时文档和 blocks.validate 工作流来处理原生JSON。不要将原生Slack blocks传递给OpenClaw的 presentation 字段;该插件拥有该转换的权限。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

claw-score

Audit or refresh OpenClaw maturity scorecard docs from root taxonomy, maturity scores, and QA evidence artifacts without using maintainer discrawl data or committed inventory reports.

相关技能