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に貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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
callbackactions for conversational choices andurlfor an external destination. Do not use genericcommandactions for Slack controls; Slack renders them as text fallback rather than clickable controls. - Include a useful
messagefallback 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のボタンは実際に動きますか?
ボタンがクリックでき役立つためには、入力されたコールバックやWebリンクなど、適切なフォローアップ動作が必要です。
リッチなレイアウトが表示されない場合はどうなりますか?
このスキルには、同じ意味を保つプレーンテキストの代替が含まれています。
すべての返信にレイアウトを使いますか?
いいえ。短い回答や雑談のメッセージはプレーンテキストのままにします。
詳細
作者による元の説明
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
コメント
- …
このリポジトリの他のスキル
discord-user-post
394kエージェントが、承認済みのお知らせをDiscordのデスクトップアプリからあなたとして投稿できるよう支援します。投稿前に正確なチャンネルを確認します。
discrawl
394k保存済みのローカルなDiscordメッセージのアーカイブを検索して要約し、その新しさを確認し、ダイレクトメッセージを読めるようエージェントを支援します。
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
graincrawl
394k保存されたGranolaのミーティングメモとトランスクリプトを検索し、その新しさを確認して、一定期間の件数を数えるようエージェントを支援します。