formatting-slack-messages

formatting-slack-messages is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 66 tokens per session (1,700 once invoked), scanned A, original, MIT.

A formatter and validator for Slack messages, pop-up forms, and home-page layouts built with Slack Block Kit, Slack's system for arranging interface elements. It checks current schemas, payloads, accessibility, and rendering.

In plain words
What is it for?
Use it to create or edit Slack messages, modals, and App Home views with buttons, menus, tables, charts, and other interface parts.
Why use it?
It removes uncertainty about which Slack layout elements and data formats are valid. It also helps preserve existing content when changing a layout.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to create or edit Slack messages, modals, and App Home views with buttons, menus, tables, charts, and other interface parts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/formatting-slack-messages
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 PostHog/posthog-foss --skill formatting-slack-messages
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

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 formatting-slack-messages

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/formatting-slack-messages/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/formatting-slack-messages)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/formatting-slack-messages"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/formatting-slack-messages/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 formatting-slack-messages

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/formatting-slack-messages"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/formatting-slack-messages.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,700 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00066 $0.01700
Opus 5.5 $0.00026 $0.00680
Sonnet 5.5 $0.00013 $0.00340
Haiku 4.5 $0.00007 $0.00170

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

Security

Grade A, and why

formatting-slack-messages scanned grade A with 0 findings 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 1mo ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/formatting-slack-messages/SKILL.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on 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 blocks or attachments and goes to a channel or direct message.
  • A modal has type: modal and a view lifecycle.
  • An App Home view has type: home and 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:

  • markdown is a block type. It is not a text-object type.
  • Text objects use plain_text or mrkdwn. A text element is valid inside the appropriate rich_text structure, 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.

Read the full file on GitHub · 153 lines

Files

What ships with it

1 file 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. 1mo ago First seen · 153 lines · 66 tokens per session scan A f587379da38d

Subscribe to this mod's changes

formatting-slack-messages is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 1,700 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-27.

Related

formatting-slack-messages compared with skills from other repositories

formatting-slack-messages next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
formatting-slack-messagesPostHog/posthog-fossSkill736todayMITA66Claude Code, Codex
webgl-holographic-foilnexu-io/open-designSkill111ktodayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill111ktodayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill111ktodayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34k2d agoMITA52Codex
glance-canonical-layoutsandroid/skillsSkill11k10d agoApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.7ktodayMITA47Claude Code