block-kit

block-kit is a skill for Claude Code from slack-samples/bolt-ts-starter-template. It costs 112 tokens per session (4,642 once invoked), scanned A, a copy of block-kit, MIT.

A guide for building and checking Slack Block Kit layouts, which define the structure of messages, forms, and app screens. It covers messages, modals, Home tabs, buttons, menus, and Block Kit JSON.

In plain words
What is it for?
Use it to plan, generate, modify, and validate Slack message layouts, forms, Home tabs, and interactive controls.
Why use it?
It helps avoid invalid layouts and common Slack formatting mistakes before they reach users.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool; positional $N argument; installed under .agents/ (shared by several agents).

Good fit Use it to plan, generate, modify, and validate Slack message layouts, forms, Home tabs, and interactive controls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/slack-samples/bolt-ts-starter-template/block-kit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add slack-samples/bolt-ts-starter-template --skill block-kit
Clone the repo
git clone --depth 1 https://github.com/slack-samples/bolt-ts-starter-template

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for block-kit

README.md
[![agentmods](https://agentmods.dev/badge/skills/slack-samples/bolt-ts-starter-template/block-kit/github.svg)](https://agentmods.dev/skills/slack-samples/bolt-ts-starter-template/block-kit)
Your own site
<a href="https://agentmods.dev/skills/slack-samples/bolt-ts-starter-template/block-kit"><img src="https://agentmods.dev/badge/skills/slack-samples/bolt-ts-starter-template/block-kit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for block-kit

Your own site · 80×15
<a href="https://agentmods.dev/skills/slack-samples/bolt-ts-starter-template/block-kit"><img src="https://agentmods.dev/badge/skills/slack-samples/bolt-ts-starter-template/block-kit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,642 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.04642
Opus 5.5 $0.00045 $0.01857
Sonnet 5.5 $0.00022 $0.00928
Haiku 4.5 $0.00011 $0.00464

Measured yesterday against content hash d9d259757ccc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

block-kit scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Prefer the Slack CLI when it's available, since it reuses the slack-cli skill's CLI detection and needs no token wrangling. If the CLI isn't installed, fall back to curl. Both call the same public method and return the s
Origin

This is a copy

89% identical to block-kit — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/block-kit/SKILL.md · 285 lines

How it starts

The opening of the file, as written. The whole thing — 285 lines — stays where its author put it; the contents beside it link to each section on 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.

Read the full file on GitHub · 285 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 285 lines · 112 tokens per session scan A d9d259757ccc

Subscribe to this mod's changes

block-kit is a skill published in the GitHub repository slack-samples/bolt-ts-starter-template (65 stars, last pushed yesterday), licensed MIT. It adds 112 tokens to every session and 4,642 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 89% identical to block-kit, differing in 0 lines, and is treated as a copy.

Related

block-kit compared with skills from other repositories

block-kit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
block-kitslack-samples/bolt-ts-starter-templateSkill65yesterdayMITA112Claude Code
imagegenopenai/codexSkill136ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill80kyesterdayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code