Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.validate in 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": "..." }.
  • markdown is a block type, not a text type. A markdown block holds standard markdown; text objects inside other blocks use mrkdwn (see mrkdwn vs. the markdown block in Step 4). Slack's mrkdwn is *bold* / _italic_ / ~strike~, not **bold**.
  • Messages need a top-level text fallback. blocks.validate won'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
  • The slug is not always the type name. For example datepicker maps to date-picker-element.md, and every *_select menu (static_select, users_select, multi_channels_select, and so on) is documented on select-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 at https://docs.slack.dev/surfaces/modals.md, and Home tabs at https://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:

  1. Determine the surface from $0 or context
  2. Fetch only the doc pages for the blocks and elements mentioned
  3. Generate the JSON directly
  4. 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:

  1. 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, bare blocks array = message
  2. Ask what changes they want:

    • Add blocks (where in the sequence?)
    • Remove blocks (which ones?)
    • Modify blocks (which block, what change?)
    • Reorder blocks
  3. Apply changes while preserving:

    • All existing block_id values (these are referenced in app interaction handlers)
    • All existing action_id values (these map to event listeners)
    • Existing styles, text content, and structure for unchanged blocks
  4. Validate the modified JSON: proceed to Step 5 (validation)

Detection: If the developer's message contains a JSON array starting with [{"type": or a

Полный SKILL.md на GitHub

Установить block-kit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/agent-progress-design.mdreferences/common-patterns.mdreferences/data-display-design.mdreferences/design-principles.mdreferences/home-tab-design.mdreferences/human-in-the-loop.mdreferences/modal-design.md

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), без исполняемых скриптов.

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

Сравнить block-kit с