Format messages for Slack with pixel-perfect accuracy. Converts Markdown to rich HTML (for copy-paste into Slack) or Slack mrkdwn (for API/webhook). Use when the user asks to write a Slack message, announcement, or notification, format something "for Slack", preview how content looks in Slack, or send a message via Slack webhook. Also trigger when user mentions Slack formatting, mrkdwn, or wants to share Markdown content in Slack channels.
Format messages for Slack with pixel-perfect accuracy. Converts Markdown to Slack-compatible output with two delivery paths:
Write a Slack message announcing our Q2 product launch
Format this for Slack: We shipped 3 new features this week...
Create a Slack announcement for the engineering team about the new CI pipeline
Send a deploy notification to Slack via webhook
The converter handles all Markdown features and translates them correctly for Slack:
<@U012AB3CD>, <!here>, <!channel>)User: "Write a Slack message announcing our new feature"
Output (opened as a Slack-themed preview in the browser + copied to clipboard):
The preview shows a pixel-perfect Slack UI rendering. The user pastes directly into Slack with Cmd+V / Ctrl+V and the formatting is preserved.
User: "Send a deploy notification to our #deploys channel via webhook"
Output (sent via mrkdwn to the configured webhook):
*:rocket: Deploy Successful*
*Service:* payment-api
*Version:* v2.5.1
*Environment:* production
*Duration:* 47s
:white_check_mark: All health checks passing
| Env Variable | Default | Description |
|---|---|---|
SLACK_FORMATTER_CLIPBOARD | true | Set to false to disable auto-clipboard copy |
SLACK_FORMATTER_PREVIEW_DIR | /tmp/slack-formatter | Directory for preview HTML files |
CCH_SLA_WEBHOOK | (none) | Slack webhook URL for sending messages |
<@U...>, <#C...>, <!here>) can be included directly in the Markdown