用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/raine/skills --skill copy-to-slack命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | copy-to-slack |
| description | Convert markdown to Slack-ready rich text and copy to clipboard. |
| allowed-tools | Bash, Read |
| disable-model-invocation | true |
Convert a markdown file to rich text and copy it to the clipboard so it can be pasted into Slack with formatting intact.
The user provides either:
$ARGUMENTS**bold** → <strong>bold</strong>_italic_ / *italic* → <em>italic</em>`code` → <code>code</code><pre><code>...</code></pre>- item / * item → <ul><li>item</li></ul>1. item → <ol><li>item</li></ol>[text](url) → <a href="url">text</a># Header → <strong>Header</strong> (Slack has no native headers)<br><br> (Slack ignores <p> margins, so use
<br><br> between paragraphs for visible spacing)>|
instead of > for redirects (zsh has noclobber set). Use this snippet:html_file=$(mktemp)
plain_file=$(mktemp)
printf '%s' "$html" >| "$html_file"
printf '%s' "$plain" >| "$plain_file"
swift -e "
import AppKit
let html = try! String(contentsOfFile: \"$html_file\", encoding: .utf8)
let plain = try! String(contentsOfFile: \"$plain_file\", encoding: .utf8)
let pb = NSPasteboard.general
pb.clearContents()
pb.setString(html, forType: .html)
pb.setString(plain, forType: .string)
"
rm -f "$html_file" "$plain_file"
Slack's rich text paste interprets HTML. Key mappings:
**bold** → <strong> → bold in Slack_italic_ → <em> → italic in Slack`code` → <code> → inline code in Slack<pre><code> → code blocks in Slack- item → <ul><li> → bullet lists in Slack[text](url) → <a href> → clickable links in Slack