Skillpedia
البريد والرسائل41k · #6814

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) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/PostHog/posthog/blob/master/.agents/skills/formatting-slack-messages/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“ساعدني في تنسيق رسالة 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 blocks or attachments and goes to a channel or direct message.
  • A modal has type: modal and a view lifecycle.
  • An App Home view has type: home and 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:

  • markdown is a block type. It is not a text-object type.
  • Text objects use plain_text or mrkdwn. A text element is valid inside the appropriate rich_text structure, 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

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة