formatting-slack-messages
Was er macht
Dieser Skill hilft der KI, Slack-Nachrichten-Layouts zu schreiben und zu prüfen, etwa Karten, Schaltflächen, Menüs und Tabellen. Er richtet sich an alle, die einen Slack-Bot oder eine Slack-App bauen und saubere, lesbare Ergebnisse wollen.
Wann du ihn nutzt
- ✓Wenn ein Slack-Bot ein klares Update mit Schaltflächen oder einer Tabelle posten soll.
- ✓Wenn du eine bestehende Slack-Nachricht ändern willst, ohne ihre Schaltflächen oder Links zu verlieren.
- ✓Wenn du ein Slack-Modal oder einen App-Home-Bildschirm baust und er korrekt angezeigt werden soll.
Link zum Skill
https://github.com/PostHog/posthog/blob/master/.agents/skills/formatting-slack-messages/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Hilf mir, eine Slack-Nachricht mit unserer täglichen Verkaufsübersicht zu formatieren, mit einer Genehmigen-Schaltfläche.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill folgt den offiziellen Layout-Regeln von Slack, wählt die passenden Bausteine, schreibt die Nachrichtendaten und prüft sie auf Fehler, bevor du sie verwendest.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Richtet dieser Skill meinen Slack-Arbeitsbereich ein?
Nein. Er ist nicht für die Einrichtung des Arbeitsbereichs oder der App gedacht, sondern konzentriert sich auf das Layout der Nachricht selbst.
Kann er prüfen, wie die Nachricht in Slack aussieht?
Ja. Er validiert das Layout und kann prüfen, wie Slack es darstellt.
Kann er eine bestehende Nachricht ändern?
Ja. Er behält Inhalte, Links, Schaltflächen und Werte bei, während er das Layout aktualisiert.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 41k
- Platz im Ranking
- #6814
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
depot-ci
41kBringt deinem Agenten bei, Depot-CI-Workflows einzurichten, bestehende Workflows zu migrieren und Laufprotokolle auszuwerten.
depot-container-builds
41kHilft deinem Agenten, Docker-Images auf Depot-Remote-Buildern zu bauen, mit Multi-Plattform-Images, Registry-Push und Fehlerbehebung.
depot-github-runners
41kLässt deinen Agenten GitHub-Actions-Jobs auf Depot-Runnern laufen, mit passender Runner-Größe und Labels, und hilft bei Einrichtungsfehlern.
editing-agents-md
41kHilft deinem Agenten zu entscheiden, ob eine Regel in AGENTS.md oder CLAUDE.md gehört, und sie so zu formulieren, dass sie hält.
Ähnliche Skills
discord-user-post
394kLässt deinen Agenten eine von dir freigegebene Nachricht über die Discord-Desktop-App als du in Discord posten, nachdem der genaue Kanal bestätigt wurde.
configure-channel
394kBringt deinem Agenten bei, eine Chat-App wie Telegram mit OpenClaw zu verbinden, den Bot-Token sicher zu speichern und zu prüfen, ob Nachrichten ankommen.
discord
394kHilft deinem Agenten, Discord-Nachrichten über OpenClaw zu lesen, zu senden, zu bearbeiten und darauf zu reagieren, nach Prüfung der genauen Nachricht.