Перейти к содержанию
Skillpedia
Почта и сообщения41k · #6814

formatting-slack-messages

Что он делает

Этот скилл помогает ИИ писать и проверять разметку сообщений в Slack: карточки, кнопки, меню и таблицы. Он предназначен для всех, кто создаёт бота или приложение для Slack и хочет аккуратный и читаемый результат.

Когда использовать

  • ✓Когда вы хотите, чтобы бот Slack опубликовал понятное обновление с кнопками или таблицей.
  • ✓Когда нужно изменить существующее сообщение Slack, не потеряв его кнопки и ссылки.
  • ✓Когда вы создаёте модальное окно Slack или экран App Home и хотите, чтобы он отображался правильно.

Ссылка на скилл

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 по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Помоги оформить сообщение в Slack с ежедневной сводкой продаж и кнопкой утверждения.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Скилл следует официальным правилам разметки 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
Лицензия
—
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы