formatting-slack-messages
O que ela faz
Esta skill ajuda a IA a escrever e verificar layouts de mensagens no Slack, como cartões, botões, menus e tabelas. É para quem cria um bot ou um app para o Slack e quer resultados limpos e legíveis.
Quando usar
- ✓Quando você quer que um bot do Slack publique uma atualização clara com botões ou uma tabela.
- ✓Quando você precisa alterar uma mensagem existente no Slack sem perder seus botões ou links.
- ✓Quando você está criando um modal do Slack ou uma tela inicial do app e quer que ela seja exibida corretamente.
Link da skill
https://github.com/PostHog/posthog/blob/master/.agents/skills/formatting-slack-messages/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Me ajude a formatar uma mensagem no Slack que mostre o resumo diário de vendas com um botão de aprovação.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill segue as regras oficiais de layout do Slack para escolher os blocos adequados, escreve os dados da mensagem e verifica se há erros antes de você usá-la.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Esta skill configura o meu workspace do Slack?
Não. Ele não serve para configurar workspace ou app. Foca no layout da própria mensagem.
Ele consegue verificar como a mensagem vai aparecer no Slack?
Sim. Ele valida o layout e pode conferir como o Slack o exibe.
Ele consegue alterar uma mensagem que já existe?
Sim. Ele mantém o conteúdo, os links, os botões e os valores existentes enquanto atualiza o layout.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 41 mil
- Posição no ranking
- #6814
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
depot-ci
41 milAjuda seu agente a configurar e executar fluxos de trabalho do Depot CI, uma alternativa ao GitHub Actions, incluindo a migração de fluxos existentes e a leitura dos logs de execução.
depot-container-builds
41 milAjuda seu agente a criar imagens Docker nos builders remotos do Depot, incluindo imagens multiplataforma, envio para registros e correção de falhas de build.
depot-github-runners
41 milAjuda seu agente a levar tarefas do GitHub Actions para runners gerenciados pelo Depot, escolhendo os tamanhos e os rótulos dos runners e resolvendo problemas de configuração.
editing-agents-md
41 milAjuda seu agente a decidir se uma regra deve ficar em um arquivo AGENTS.md ou CLAUDE.md, e a escrevê-la de forma que seja seguida sem deixar o arquivo inchado.
Skills parecidas
discord-user-post
394 milPermite que seu agente publique no Discord uma mensagem que você aprovou, como você, pelo app de desktop do Discord, depois de confirmar o canal exato.
configure-channel
394 milEnsina seu agente a conectar um app de chat, como o Telegram, ao OpenClaw, guardar o token do bot com segurança e verificar se as mensagens fluem.
discord
394 milAjuda seu agente a ler, enviar, editar e reagir a mensagens do Discord pelo OpenClaw, conferindo a mensagem exata antes de fazer alterações.