← ClaudeAtlas

format-slack-messagelisted

Format a message for Slack and copy it to the clipboard as HTML so Slack's composer renders rich text (bold, italic, code, lists, links, blockquotes) on paste. Use when the user wants to paste a formatted message into Slack. Triggers on "copy to slack", "format for slack", "slack message", "paste to slack", or any request to prepare a rich-formatted message for Slack.
magnusrodseth/dotfiles · ★ 2 · Code & Development · score 65
Install: claude install-skill magnusrodseth/dotfiles
# Format Slack Message Draft a message in Magnus's voice, format it as Markdown for Slack, and copy it to the macOS clipboard as HTML. Slack's message composer is a Chromium-based rich text (WYSIWYG) editor. On paste it reads the `public.html` clipboard flavor (which Chromium maps to `text/html`) and converts it into Slack's own rich text. So the reliable way to get real formatting is to put HTML on the clipboard, the same mechanism the `format-teams-message` skill uses. Pasting plain Markdown leaves raw characters visible unless the user has "Format messages with markup" enabled, which is off by default in modern Slack. ## Workflow 1. **Draft the message in Magnus's voice.** Run the content through the `write-in-my-voice` skill so it reads like he wrote it, not like an AI drafted it (see "Composing the message" below). Skip only if the user pasted final text they want verbatim. 2. **Append the AI-disclosure footer** (see "AI-disclosure footer" below) as the last line. 3. **Slackify the Markdown** (see "Slackifying" below): drop tables, keep headings shallow, and prefer links over images. 4. Convert Markdown → HTML using `pandoc`. 5. Place the HTML on the clipboard using `osascript` with the AppKit framework. 6. Confirm the copy and remind the user to paste into Slack. ## Composing the message Slack messages are outward-facing first-person text, so they go through `write-in-my-voice` (Norwegian or English, register auto-selected). On top of that skill's rules, lean into