slack-message-formatter
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.
Best use case
slack-message-formatter is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
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.
Teams using slack-message-formatter should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/slack-message-formatter/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How slack-message-formatter Compares
| Feature / Agent | slack-message-formatter | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
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.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agent for YouTube Script Writing
Find AI agent skills for YouTube script writing, video research, content outlining, and repeatable channel production workflows.
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
Best AI Agents for Marketing
A curated list of the best AI agents and skills for marketing teams focused on SEO, content systems, outreach, and campaign execution.
SKILL.md Source
# Slack Message Formatter Format messages for Slack with pixel-perfect accuracy. Converts Markdown to Slack-compatible output with two delivery paths: 1. **Copy-paste** — Rich HTML that preserves formatting when pasted into Slack's compose box 2. **API/Webhook** — Slack mrkdwn syntax for bots, automation, and CI/CD ## When to Use This Skill - User asks to write a Slack message, announcement, or notification - User asks to format something "for Slack" - User wants to preview how a message will look in Slack - User wants to send a message via Slack webhook - User has Markdown content they want to share in Slack ## What This Skill Does 1. **Generates content in Markdown** — Claude writes the message in standard Markdown, its native format 2. **Converts to Rich HTML** — Transforms Markdown into rich HTML that preserves formatting when pasted into Slack's compose box 3. **Converts to Slack mrkdwn** — Transforms Markdown into Slack's proprietary mrkdwn syntax for API/webhook delivery 4. **Generates a Slack-themed preview** — Creates an HTML preview page styled like the Slack UI and opens it in the browser 5. **Copies to clipboard** — Automatically copies the rich HTML to the system clipboard for one-step paste into Slack ## How to Use ### Basic Usage ``` 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 ``` ### Webhook/API Delivery ``` Send a deploy notification to Slack via webhook ``` ### Formatting Features The converter handles all Markdown features and translates them correctly for Slack: - Bold, italic, strikethrough, inline code - Links and headings (converted to bold in Slack) - Tables (rich HTML tables for paste, code blocks for API) - Task lists with emoji checkboxes - Nested lists and blockquotes - Code blocks with syntax highlighting - Slack mentions (`<@U012AB3CD>`, `<!here>`, `<!channel>`) - 150+ emoji shortcodes converted to Unicode ## Example **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 ``` ## Configuration | 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 | ## Tips - Always let the converter handle the Markdown-to-Slack translation; never write mrkdwn or HTML by hand - Slack mentions (`<@U...>`, `<#C...>`, `<!here>`) can be included directly in the Markdown - Tables work beautifully via the copy-paste path; for API delivery they become code blocks (Slack has no table syntax) - Preview files are timestamped so you can revisit them from conversation history
Related Skills
slack-gif-creator
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
slack-automation
Automate Slack messaging, channel management, search, reactions, and threads via Rube MCP (Composio). Send messages, search conversations, manage channels/users, and react to messages programmatically.
tiktok-automation
Automate TikTok tasks via Rube MCP (Composio): upload/publish videos, post photos, manage content, and view user profiles/stats. Always search tools first for current schemas.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
telegram-automation
Automate Telegram tasks via Rube MCP (Composio): send messages, manage chats, share photos/documents, and handle bot commands. Always search tools first for current schemas.
tailored-resume-generator
Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances
supabase-automation
Automate Supabase database queries, table management, project administration, storage, edge functions, and SQL execution via Rube MCP (Composio). Always search tools first for current schemas.
stripe-automation
Automate Stripe tasks via Rube MCP (Composio): customers, charges, subscriptions, invoices, products, refunds. Always search tools first for current schemas.
square-automation
Automate Square tasks via Rube MCP (Composio): payments, orders, invoices, locations. Always search tools first for current schemas.
skill-share
A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
shopify-automation
Automate Shopify tasks via Rube MCP (Composio): products, orders, customers, inventory, collections. Always search tools first for current schemas.