Community程式設計與開發github.com

block-kit

主動用於結構化或互動式 Slack 回覆,以及在需要撰寫或驗證原生 Slack Block Kit JSON 時使用。

block-kit 是什麼?

這個技能專為 Slack 開發與回覆設計,讓 AI 代理能夠產出原生的 Slack Block Kit 訊息。當回覆包含決策、確認、狀態比較、報告或需要按鈕與下拉選單等 互動控制項時,它會自動選擇適當的結構化版面,而純文字則適用於簡單問答與閒聊場景。技能支援透過 `message` 工具送出內容,並將 `presentation` 欄位轉換為原生 Block Kit,涵蓋文字、分隔線、按鈕、選擇器、圖表與表格等區塊類型。它強調「以結論為先」的設計原則,要求互動控制項具備自足的語意(使用 `callback` 或 `url` 而非泛用 `command`),並在傳送成功後避免重複內容。此外,當用戶需要直接撰寫 Slack app 或原生 JSON 時,技能會引導參考官方 Block Kit 指南與常見模式,並要求遵循自適應指南中的文件驗證流程,確保 JSON 正確性。

相容平台~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 中回覆時,使用 action: "send" 與可攜帶的 presentation 來呼叫 message 工具。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 版面,也請一併閱讀官方模式。

針對原生 JSON,請遵循改編指南的即時文件與 blocks.validate 工作流程。請勿將原生 Slack 區塊傳遞給 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.

相關技能