Slack Message Formatter
A skill for Claude Code and Codex CLI that converts Markdown to Slack-compatible output with two delivery paths:
- Copy-paste: rich HTML that preserves formatting when pasted into Slack's compose box
- API/Webhook: Slack mrkdwn syntax for bots, automation, and CI/CD
Why?
- Slack uses mrkdwn (not Markdown).
**bold** doesn't work, you need *bold*.
- Existing tools handle conversion well, but none combine generation + preview + copy-paste in one workflow.
- Programmatic clipboard doesn't preserve tables in Slack. Manual browser copy does.
- This skill gives you both paths: copy-paste for humans, webhook for bots.
Zero runtime dependencies. Requires Node.js 20 or newer. Install with a native plugin or the skills CLI.

Install
Claude Code plugin
claude plugin marketplace add karanb192/slack-message-formatter
claude plugin install slack-message-formatter@slack-message-formatter
Codex CLI plugin (recommended for Codex)
codex plugin marketplace add karanb192/slack-message-formatter
codex plugin add slack-message-formatter@slack-message-formatter
Start a new Codex session, then ask it to format a Slack message. Use a current
Codex CLI with the codex plugin commands. If your version lacks them, update
Codex or use the skills CLI below.
Standalone skill via skills.sh
Install for Codex across your projects with Node.js/npm and Git available:
npx skills add karanb192/slack-message-formatter --skill slack-message-formatter --agent codex --global
Omit --global to install into the current project's .agents/skills directory.
Choose either this route or the Codex plugin to avoid duplicate skills.
The skill stays in this GitHub repo. skills.sh lists skills through install
telemetry,
so no separate package upload is needed. The native plugins and skills CLI all
use skills/slack-message-formatter/.
Manual install (curl)
# Claude Code global
curl -sSL https://raw.githubusercontent.com/karanb192/slack-message-formatter/main/install.sh | bash
# Codex global
curl -sSL https://raw.githubusercontent.com/karanb192/slack-message-formatter/main/install.sh | bash -s codex
# Current project only (auto-detects Claude Code or Codex)
curl -sSL https://raw.githubusercontent.com/karanb192/slack-message-formatter/main/install.sh | bash -s project
Updating
For the Codex plugin, refresh the marketplace and install the current version,
then start a new session:
codex plugin marketplace upgrade slack-message-formatter
codex plugin add slack-message-formatter@slack-message-formatter
For a skills CLI install, rerun its install command above. For a shell install,
rerun the corresponding install.sh command.
For the Claude Code plugin, refresh the marketplace inside Claude Code:
/plugin marketplace update slack-message-formatter
/reload-plugins
Uninstall
# Codex plugin
codex plugin remove slack-message-formatter@slack-message-formatter
# skills CLI global install (omit --global for a project install)
npx skills remove slack-message-formatter --agent codex --global
# Claude Code plugin
claude plugin uninstall slack-message-formatter@slack-message-formatter
For a shell install, remove only the slack-message-formatter directory at the
path printed by the installer. Codex global shell installs use
${CODEX_HOME:-$HOME/.codex}/skills/slack-message-formatter; Claude Code global
shell installs use ~/.claude/skills/slack-message-formatter.
Use the skill
In Claude Code or a new Codex session, ask:
- "Write a Slack message announcing our v2.5 release"
- "Format this for Slack"
For explicit invocation, use $slack-message-formatter in Codex or
/slack-message-formatter in Claude Code.
Standalone CLI
From a clone of this repo:
cd skills/slack-message-formatter
echo '**bold** and *italic*' | node src/run.mjs html
# → <b>bold</b> and <i>italic</i>
echo '**bold** and *italic*' | node src/run.mjs mrkdwn
# → *bold* and _italic_
echo '## Announcement' | node src/run.mjs preview
# → Opens browser with Slack-themed preview + copy page
The preview footer links to this repository. The copy page, HTML output,
mrkdwn output, and webhook payload contain only your message.
After confirmed useful output, the skill can offer one optional star
invitation. Its record lives in $XDG_CACHE_HOME/slack-message-formatter/
(default ~/.cache/slack-message-formatter/), outside temporary previews.
Starring through GitHub CLI requires an explicit yes. Clearing the cache
resets the record.
Features