formatting-slack-messages
Fungsinya
Skill ini membantu AI menulis dan memeriksa tata letak pesan Slack, seperti kartu, tombol, menu, dan tabel. Ditujukan untuk siapa saja yang membangun bot atau aplikasi Slack dan menginginkan hasil yang rapi dan mudah dibaca.
Kapan dipakai
- ✓Saat Anda ingin bot Slack mengirim pembaruan yang jelas dengan tombol atau tabel.
- ✓Saat Anda perlu mengubah pesan Slack yang sudah ada tanpa menghilangkan tombol atau tautannya.
- ✓Saat Anda membangun modal Slack atau layar App Home dan ingin tampilannya benar.
Link skill
https://github.com/PostHog/posthog/blob/master/.agents/skills/formatting-slack-messages/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Bantu saya memformat pesan Slack yang menampilkan ringkasan penjualan harian kami dengan tombol setujui.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill mengikuti aturan tata letak resmi Slack untuk memilih blok yang tepat, menulis data pesan, dan memeriksanya dari kesalahan sebelum Anda menggunakannya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah skill ini menyiapkan ruang kerja Slack saya?
Tidak. Skill ini bukan untuk pengaturan ruang kerja atau aplikasi. Fokusnya adalah tata letak pesan itu sendiri.
Bisakah memeriksa bagaimana pesan akan tampil di Slack?
Bisa. Skill memvalidasi tata letak dan dapat memeriksa cara Slack menampilkannya.
Bisakah mengubah pesan yang sudah ada?
Bisa. Skill mempertahankan isi, tautan, tombol, dan nilai yang sudah ada saat memperbarui tata letaknya.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6814
- Lisensi
- —
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
discord-user-post
394kMemungkinkan agent Anda mengirim pesan yang sudah Anda setujui ke Discord atas nama Anda, lewat aplikasi desktop Discord, setelah channel tujuannya dipastikan.
configure-channel
394kMengajari agent Anda menghubungkan aplikasi chat seperti Telegram ke OpenClaw, menyimpan token bot dengan aman, dan memastikan pesan benar-benar mengalir.
discord
394kMembantu agent Anda membaca, mengirim, mengedit, dan memberi reaksi pada pesan Discord lewat OpenClaw, dengan memeriksa pesan yang tepat sebelum perubahan dilakukan.