Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
- [python-expert](./plugins/python-expert)
- [rapid-prototyper](./plugins/rapid-prototyper)
- [react-native-dev](./plugins/react-native-dev)
- [slack-message-formatter](./plugins/slack-message-formatter)
- [vision-specialist](./plugins/vision-specialist)
- [web-dev](./plugins/web-dev)

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ Install or disable them dynamically with the `/plugin` command — enabling you
- [python-expert](./plugins/python-expert)
- [rapid-prototyper](./plugins/rapid-prototyper)
- [react-native-dev](./plugins/react-native-dev)
- [slack-message-formatter](./plugins/slack-message-formatter)
- [vision-specialist](./plugins/vision-specialist)
- [web-dev](./plugins/web-dev)

Expand Down
10 changes: 10 additions & 0 deletions plugins/slack-message-formatter/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "slack-message-formatter",
"description": "Format Markdown for Slack. Rich HTML copy-paste + mrkdwn API output.",
"version": "1.0.0",
"author": {
"name": "karanb192",
"url": "https://github.com/karanb192"
},
"homepage": "https://github.com/karanb192/slack-message-formatter"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
description: Format Markdown for Slack. Rich HTML copy-paste + mrkdwn API output.
author: karanb192
author-url: https://github.com/karanb192
version: 1.0.0
---

# Slack Message Formatter

This slash command formats messages for Slack with pixel-perfect accuracy. It converts standard 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

## Key Features

- Converts bold, italic, strikethrough, code, links, headings, tables, task lists, and more
- Handles Slack mentions (`<@U...>`, `<#C...>`, `<!here>`) as pass-through
- Generates a Slack-themed browser preview page
- Copies rich HTML to clipboard for instant paste into Slack
- Supports direct webhook sending via `CCH_SLA_WEBHOOK` environment variable
- Converts 150+ emoji shortcodes to native Unicode

## Usage

```
/slack-message-formatter preview
/slack-message-formatter send
```

Write your message in standard Markdown, and the formatter handles conversion to Slack's mrkdwn syntax and rich HTML automatically.