block-kit
ما الذي تفعله
يعلّم وكيل الذكاء الاصطناعي تنسيق ردود Slack كتخطيطات Block Kit أصلية، مثل الأقسام والجداول والأزرار. وهي موجهة لمن يريدون أن تكون إجاباتهم في Slack واضحة وسهلة التنفيذ.
متى تستخدمها
- ✓عندما يحتاج رد Slack إلى أزرار لتوافق أو تختار خيارًا.
- ✓عندما يكون الجواب تقريرًا أو مقارنة أو خطة تُقرأ بشكل أفضل في أقسام أو جدول.
- ✓عندما يكون الرد جوابًا قصيرًا أو حديثًا عاديًا، فتبقيه المهارة نصًا عاديًا.
رابط المهارة
https://github.com/openclaw/openclaw/blob/main/extensions/slack/skills/block-kit/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أرسل إلى الفريق ملخصًا لمبيعات هذا الأسبوع في Slack، مع جدول وزر يفتح التقرير الكامل.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقرر المهارة إن كان التخطيط الغني مفيدًا، ثم ترسل الرد عبر أداة رسائل 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 فعلًا؟
تحتاج الأزرار إلى إجراءات متابعة مناسبة، مثل رد مكتوب أو رابط ويب، حتى تكون قابلة للنقر ومفيدة.
ماذا لو لم يظهر التخطيط الغني؟
تتضمن المهارة نصًا عاديًا احتياطيًا يحمل المعنى نفسه.
هل تستخدم التخطيطات في كل رد؟
لا. الأجوبة القصيرة والرسائل العادية تبقى نصًا عاديًا.
التفاصيل
الوصف الأصلي من المؤلف
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
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
discord-user-post
394kتتيح لوكيلك نشر رسالة وافقت عليها في Discord باسمك عبر تطبيق Discord على سطح المكتب، بعد التأكد من القناة المحددة.
discrawl
394kيتيح لوكيلك البحث في أرشيف محلي محفوظ لرسائل Discord وتلخيصه، والتحقق من مدى حداثته، وقراءة الرسائل المباشرة.
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
graincrawl
394kيتيح لوكيلك البحث في ملاحظات اجتماعات Granola المحفوظة ونصوصها، والتحقق من حداثتها، وعدّها خلال فترة محددة.
مهارات مشابهة
to-questionnaire
310kيحوّل سؤالًا لا تستطيع الإجابة عنه وحدك إلى استبيان مكتوب يملؤه شخص آخر، عبر البريد أو في اجتماع.
email-ops
280kيساعد وكيلك على إدارة البريد الإلكتروني وترتيب صندوق الوارد والتحقق من الإرسال. يضمن وصول الرسائل المهمة وتتبعها.
messages-ops
280kيساعد وكيلك على قراءة الرسائل ورموز التحقق. مفيد للاطلاع على المحادثات قبل الرد، أو لإثبات الرسالة التي تمت رؤيتها.