slackfmt

Use when formatting or copying content, markdown or plain text, for Slack with rich text preserved

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "slackfmt" with this command: npx skills add cauethenorio/slackfmt/cauethenorio-slackfmt-slackfmt

slackfmt

Convert markdown (or HTML) to Slack's native rich text format and copy to clipboard. When pasted into Slack, all formatting (bold, italic, lists, code blocks, links, blockquotes) is preserved.

When to Use

  • User wants to format a message for Slack
  • User wants to copy formatted content to clipboard for pasting into Slack
  • User has markdown, HTML, or Quill Delta content destined for Slack
  • User asks to "copy to Slack", "format for Slack", or "paste into Slack"

Slack limitations: Headings are converted to bold text. Only basic formatting is supported (bold, italic, strikethrough, code, links, lists, blockquotes, code blocks).

CLI Usage

# Pipe content to slackfmt (copies to clipboard by default)
echo "**bold** and _italic_" | npx @slackfmt/cli@latest

# Specify input format explicitly
echo "<b>hello</b>" | npx @slackfmt/cli@latest -f html

Flags:

  • -f, --format — Input format: markdown (default), html, slack-html, quill-delta
  • --stdout — Print Quill Delta JSON to stdout instead of copying to clipboard

Format auto-detection: If no -f flag, slackfmt detects JSON (quill-delta), HTML tags (html), or falls back to markdown.

Instructions

  1. Compose the content as markdown in an echo or printf command
  2. Pipe it to npx @slackfmt/cli@latest
  3. The formatted content is copied to the system clipboard
  4. User can paste directly into Slack with formatting preserved

Example

echo '- **Performance**
  - Dashboard speed improvements
  - 90% faster queries
- **Bug Fixes**
  - Fixed mobile layout issue' | npx @slackfmt/cli@latest

Tips

  • Use * for bold, _ for italic (Slack conventions)
  • Nested lists work — use 2-space indentation
  • Links: [text](url) becomes clickable in Slack
  • Code blocks: use triple backticks
  • Blockquotes: use >
  • Headings (#, ##, etc.) are converted to bold paragraphs

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated
General

explainer

Create explainer videos with narration and AI-generated visuals. Triggers on: "解说视频", "explainer video", "explain this as a video", "tutorial video", "introduce X (video)", "解释一下XX(视频形式)".

Archived SourceRecently Updated
General

asr

Transcribe audio files to text using local speech recognition. Triggers on: "转录", "transcribe", "语音转文字", "ASR", "识别音频", "把这段音频转成文字".

Archived SourceRecently Updated