block-kit
БесплатноБез исполняемых скриптовНе проверенUse when a developer wants to build or validate Block Kit layouts for Slack messages, modals, or Home tabs: message layouts, modals/forms/dialogs, Home tab…
от slackapi★ 177 звёзд на GitHubОб этом скилле
Block Kit
Help the developer build a rich Block Kit layout. If $0 is exactly message, modal, or home-tab, treat it as the target surface. Otherwise (including if it's empty or any other value), ignore it and determine the surface in Step 1.
This skill walks through surface selection, layout planning, JSON generation, and validation. Block types, elements, and fields come from the live docs (see Source of Truth below) — discover them and read each component's schema there, never from memory.
Common Block Kit mistakes (and why): A few errors recur often enough to flag up front. Most others are caught by
blocks.validatein Step 5, so lean on validation rather than memorizing rules.
"type": "text"is not a thing. Text is a composition object:{ "type": "plain_text", "text": "..." }or{ "type": "mrkdwn", "text": "..." }.markdownis a block type, not a text type. Amarkdownblock holds standard markdown; text objects inside other blocks usemrkdwn(see mrkdwn vs. themarkdownblock in Step 4). Slack'smrkdwnis*bold*/_italic_/~strike~, not**bold**.- Messages need a top-level
textfallback.blocks.validatewon't flag a missing one, but notifications and screen readers display it instead of the blocks — so summarize what the layout conveys rather than leaving it empty.
Source of Truth: the Live Docs
Every block, element, and composition object is documented on docs.slack.dev. Append .md to any reference URL to fetch it as markdown with WebFetch (no auth required).
- Master index: the authoritative list of every block, block element, and composition object, each linking to its own page:
https://docs.slack.dev/reference/block-kit.md. WebFetch it to confirm a type exists and to get the link to its page. - Per-component pages carry the full field schema (a fields table with required/optional flags and constraints, plus JSON examples):
- Blocks:
https://docs.slack.dev/reference/block-kit/blocks/<slug>-block.md - Block elements:
https://docs.slack.dev/reference/block-kit/block-elements/<slug>-element.md - Composition objects:
https://docs.slack.dev/reference/block-kit/composition-objects/<slug>.md
- Blocks:
- The slug is not always the type name. For example
datepickermaps todate-picker-element.md, and every*_selectmenu (static_select,users_select,multi_channels_select, and so on) is documented onselect-menu-element.md. When unsure of a slug, follow the link from the master index rather than building the URL by hand. - Surface payload structure lives in the surface guides: messages at
https://docs.slack.dev/messaging/formatting-message-text.md, modals athttps://docs.slack.dev/surfaces/modals.md, and Home tabs athttps://docs.slack.dev/surfaces/app-home.md.
Never use a block type, element, or field you have not seen on a live page.
Fast Path (for clear, specific requests)
If the developer's request is specific enough to determine both the target surface and the desired layout, collapse Steps 1-4 into a single pass:
- Determine the surface from
$0or context - Fetch only the doc pages for the blocks and elements mentioned
- Generate the JSON directly
- Proceed to Step 5 (validation)
Fast-path indicators (skip the full workflow):
- Developer provides existing JSON to modify → use Modification Mode instead
- Developer names specific block types: "add an actions block with two buttons"
- Developer describes a well-known pattern: "approval message", "feedback form", "settings modal"
- Developer provides a complete description in one message with enough detail to build
Full-workflow indicators (use Steps 1-7):
- Vague requests: "make something cool", "build a dashboard"
- Exploratory: "what can Block Kit do?", "show me my options"
- Complex layouts: 10+ blocks, nested modals, conditional logic
- Developer asks for help deciding what to build
Modification Mode
If the developer provides existing Block Kit JSON (pasted inline, in a file, or referenced from code), enter Modification Mode instead of the full creation workflow:
Parse the existing structure:
- List each block by index, type, and a short description of its content
- Infer the surface:
"type": "modal"= modal,"type": "home"= home tab, bareblocksarray = message
Ask what changes they want:
- Add blocks (where in the sequence?)
- Remove blocks (which ones?)
- Modify blocks (which block, what change?)
- Reorder blocks
Apply changes while preserving:
- All existing
block_idvalues (these are referenced in app interaction handlers) - All existing
action_idvalues (these map to event listeners) - Existing styles, text content, and structure for unchanged blocks
- All existing
Validate the modified JSON: proceed to Step 5 (validation)
Detection: If the developer's message contains a JSON array starting with [{"type": or a
Установить block-kit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл block-kit?
Use when a developer wants to build or validate Block Kit layouts for Slack messages, modals, or Home tabs: message layouts, modals/forms/dialogs, Home tab interfaces, interactive buttons or menus, or modifying existing Block Kit JSON. Also trigger on any Slack UI component (sections, actions, inputs, headers, alerts, tables, carousels), the words "blocks" or "Block Kit Builder", a request to preview rendered blocks, or pasted JSON like "type": "section". Validates via the blocks.validate API method.
Как установить скилл block-kit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл block-kit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic