formatting-slack-messages
ما الذي تفعله
تساعد هذه المهارة الذكاء الاصطناعي على كتابة تخطيطات رسائل Slack والتحقق منها، مثل البطاقات والأزرار والقوائم والجداول. وهي مناسبة لكل من يبني بوتاً أو تطبيقاً لـ Slack ويريد نتائج نظيفة وسهلة القراءة.
متى تستخدمها
- ✓عندما تريد أن ينشر بوت Slack تحديثاً واضحاً فيه أزرار أو جدول.
- ✓عندما تحتاج إلى تعديل رسالة Slack موجودة دون أن تفقد أزرارها أو روابطها.
- ✓عندما تبني نافذة حوار في Slack أو شاشة الصفحة الرئيسية للتطبيق وتريد أن تظهر بشكل صحيح.
رابط المهارة
https://github.com/PostHog/posthog/blob/master/.agents/skills/formatting-slack-messages/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ساعدني في تنسيق رسالة Slack تعرض ملخص مبيعات اليوم مع زر للموافقة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تتبع المهارة قواعد التخطيط الرسمية لـ Slack لاختيار المكوّنات المناسبة، وتكتب بيانات الرسالة، ثم تتحقق منها من الأخطاء قبل أن تستخدمها.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Formatting Slack messages
Build a layout that makes the result, its context, and the next action clear. This workflow adapts Slack's official Block Kit skill. It is self-contained; another installed skill is not required. See sources for upstream attribution.
1. Identify the surface and the change
Infer the surface from the request or existing payload:
- A message has
blocksorattachmentsand goes to a channel or direct message. - A modal has
type: modaland a view lifecycle. - An App Home view has
type: homeand is published for a user.
Inspect the existing payload before changing its layout.
For modifications, preserve unchanged content, source links, block_id, action_id, values, and menu choices.
Ask only when missing information changes the implementation. Do not repeat questions the user already answered.
For a clear small edit, read the relevant schema, make the edit, and validate it.
For a broad redesign, establish the content order before building the payload.
2. Read live schemas
Use the Block Kit index to find the current component pages.
Fetch each selected block, element, and composition object's schema and example.
Append .md to Slack documentation URLs when a Markdown response is easier to read.
Follow index links rather than guessing slugs; select menus share one reference page.
Reuse pages already read during the task.
Check required fields, allowed nesting, text types, limits, and supported surfaces separately. Do not treat this skill's comparison tables as permanent schemas.
Common errors:
markdownis a block type. It is not a text-object type.- Text objects use
plain_textormrkdwn. Atextelement is valid inside the appropriaterich_textstructure, not as a standalone block. - Valid JSON does not establish valid Block Kit.
- A schema-validation success does not establish surface compatibility or block-count compliance.
3. Match the structure to the content
| Content | Starting point |
|---|---|
| One change or important number | A short sentence with its comparison and units |
| Independent facts about one item | section.fields with short labels and values |
| Several comparable rows | table |
| Rows that need sorting, pagination, filtering, or row actions | data_table |
| A compact entity with a short body and a few buttons | card |
| Optional peer items for browsing | A carousel of cards |
| A related group of blocks | container |
| A real task or investigation step with progress updates | task_card or plan |
| A view-wide notice in a modal | alert |
| Existing generated Markdown | markdown, if supported and safe for the intended message |
| Formatted text assembled in code | rich_text |
Use block selection for limits, table comparisons, and template patterns. Keep required findings visible outside carousels, pagination, and collapsed groups. Do not add dividers between every block or put a one-line notice in a card without a reason. Use a consistent size and hierarchy across comparable messages. Keep at most one visually primary action per message or view. Leave equal navigation choices unstyled.
For modals, check the view wrapper, title, callback, close, and submit requirements. An input-containing modal needs a submit action. Do not compete with Submit using another primary button. For App Home, handle first use, empty results, and view refresh for the current user. Use task cards for work with progress updates. Their sta
الأسئلة الشائعة
هل تُعدّ هذه المهارة مساحة عمل Slack الخاصة بي؟
لا. فهي ليست لإعداد مساحة العمل أو التطبيق، وتركز على تخطيط الرسالة نفسها.
هل تستطيع التحقق من شكل الرسالة داخل Slack؟
نعم. تتحقق من التخطيط، ويمكنها فحص طريقة عرض Slack له.
هل تستطيع تعديل رسالة موجودة بالفعل؟
نعم. تحافظ على المحتوى والروابط والأزرار والقيم الموجودة أثناء تحديث التخطيط.
التفاصيل
الوصف الأصلي من المؤلف
Builds and validates Slack Block Kit messages, modals, and App Home layouts. Use for Slack formatting, block selection, Markdown, cards, tables, charts, metadata, buttons, and menus. Covers live schemas, payload validation, accessibility, and actual Slack rendering. Not for workspace setup.
repo: PostHog/posthog
الشعبية
- نجوم GitHub
- 41k
- الترتيب
- #6814
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
depot-ci
41kيساعد وكيلك على إعداد سير عمل Depot CI وتشغيله، وهو بديل لـ GitHub Actions، بما في ذلك نقل سير العمل الحالي وقراءة سجلات التشغيل.
depot-container-builds
41kيساعد وكيلك على بناء صور Docker على بُنّاة Depot البعيدين، بما في ذلك الصور متعددة المنصات والدفع إلى السجلات وإصلاح أخطاء البناء.
depot-github-runners
41kيساعد وكيلك على نقل مهام GitHub Actions إلى مشغّلات Depot المُدارة، واختيار أحجامها وتسمياتها، وإصلاح مشاكل إعدادها.
editing-agents-md
41kيساعد وكيلك على تحديد ما إذا كانت القاعدة تنتمي إلى ملف AGENTS.md أو CLAUDE.md، وكتابتها بطريقة تُتَّبع دون تضخيم الملف.
مهارات مشابهة
discord-user-post
394kتتيح لوكيلك نشر رسالة وافقت عليها في Discord باسمك عبر تطبيق Discord على سطح المكتب، بعد التأكد من القناة المحددة.
configure-channel
394kتعلّم وكيلك كيف يربط تطبيق محادثة مثل Telegram بـ OpenClaw، ويخزّن رمز البوت بأمان، ويتحقق من أن الرسائل تصل.
discord
394kيساعد وكيلك على قراءة رسائل Discord وإرسالها وتعديلها والتفاعل معها عبر OpenClaw، مع التحقق من الرسالة بدقة قبل أي تغيير.