Chuyển đến nội dung
Skillpedia
Email và tin nhắn394k · #36

block-kit

Skill này làm gì

Skill hướng dẫn một agent AI định dạng phản hồi Slack thành bố cục Block Kit gốc, như phần, bảng và nút. Dành cho người muốn câu trả lời trên Slack rõ ràng và dễ thực hiện.

Khi nào nên dùng

  • ✓Khi một phản hồi Slack cần nút để bạn duyệt hoặc chọn một tùy chọn.
  • ✓Khi câu trả lời là báo cáo, so sánh hoặc kế hoạch dễ đọc hơn khi chia phần hoặc dùng bảng.
  • ✓Khi phản hồi là câu trả lời ngắn hoặc trò chuyện thông thường, skill giữ dưới dạng văn bản thuần.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/openclaw/openclaw/blob/main/extensions/slack/skills/block-kit/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Gửi cho nhóm một tóm tắt doanh số tuần này trên Slack, kèm bảng và nút mở báo cáo đầy đủ.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill quyết định xem bố cục phong phú có giúp ích không, rồi gửi phản hồi qua công cụ tin nhắn Slack dưới dạng trình bày có cấu trúc. Nó cũng có bản dự phòng văn bản thuần để nội dung vẫn rõ nếu bố cục không hiển thị.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Nút trong Slack có thực sự hoạt động không?

Nút cần các hành động tiếp theo phù hợp, như callback gõ tay hoặc liên kết web, thì mới bấm được và hữu ích.

Nếu bố cục phong phú không hiển thị thì sao?

Skill có bản dự phòng văn bản thuần giữ nguyên ý nghĩa.

Nó có dùng bố cục cho mọi phản hồi không?

Không. Câu trả lời ngắn và tin nhắn thông thường vẫn giữ dưới dạng văn bản thuần.

Chi tiết

Mô tả gốc của tác giả

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

repo: openclaw/openclaw

Độ phổ biến

Sao GitHub
394k
Vị trí xếp hạng
#36
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự