# Slack Message Formatting

> Write Slack messages that render: mrkdwn vs markdown by posting route, Block Kit and a lint script

Slack Message Formatting is a free AI agent skill on Agensi by Koji M, in Prompt & Skill Engineering. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Koji M](https://www.agensi.io/creators/koji-m)
- Category: [Prompt & Skill Engineering](https://www.agensi.io/skills/prompt-skill-engineering)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/slack-message-formatting
- Tags: prompt-engineering, slack, block-kit, api, automation

## About this skill

Makes your agent write Slack messages that render correctly.

Slack does not use standard markdown. It uses mrkdwn, and the bold syntax depends on how you post: `*bold*` through the Web API or a webhook, `**bold**` through connectors that convert CommonMark. Agents often get this wrong, so bold turns into italics, links show as raw brackets and lists collapse into one line. This skill makes the agent pick the posting route first, then write in that route's syntax.

### What it covers

- Bold, italic, links and lists for each posting route (Web API, incoming webhook, Slack MCP servers, the Slack connector in Claude)
- Real nested lists with Block Kit rich_text, plus a converter script
- Mentions, channel links and dates by ID, and escaping
- Block Kit for headings, tables and buttons
- Keeping messages short: who does what to whom, 10 lines or less, no file paths or internal names
- A checklist to run before sending

### Scripts (Python 3.9+, no dependencies, no network)

- scripts/lint_slack_text.py finds markdown that will not render in Slack. --fix prints a converted version.
- scripts/rich_text_blocks.py turns an indented list into Block Kit rich_text JSON, with --text for the plain fallback.

The scripts never call Slack. Sending is up to you or your agent.

Free and MIT licensed. Source: https://github.com/kojikojikojikoji/slack-message-formatting

## Requires

- Git
- Optional: Python 3.9+

Python is only for the scripts.

## Known limitations

It does not send messages; your agent or you do the posting. Some mrkdwn limits remain in Slack itself, such as no tables in text and no syntax highlighting in code blocks.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Slack Message Formatting skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Why not just ask the agent to use Slack formatting?

The correct bold syntax depends on the posting route, and agents rarely check which route they are using. This skill makes the agent decide the route first and gives it the syntax for each one.

### Which agents does it work with?

It is a standard SKILL.md skill. It is written for Claude Code and Codex, and works in any agent that loads SKILL.md files.

### What is in the package?

SKILL.md, a reference guide for mrkdwn, and two Python scripts: a lint script that finds markdown that will not render, and a converter that builds Block Kit rich_text from an indented list. It is free and MIT licensed.

### Does it post to Slack for me?

No. The skill only shapes the text and the payload. Posting is done by your agent through whatever Slack tool or API you already use.

### Does it handle webhooks and the Slack connector differently?

Yes. It lists the bold, link and list syntax for the Web API, incoming webhooks, Slack MCP servers and the Slack connector in Claude, and tells the agent to pick one before writing.

### How do I install it?

Clone the GitHub repository into ~/.claude/skills/ for Claude Code, or link it into ~/.agents/skills/ for Codex. The agent loads it when you ask it to write or post a Slack message.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
