Copy content to clipboard in a format suited to the target (Slack, Markdown, plain text). Use when the user says "clip", "copy that", "clipboard", or "/clip".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Clip?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/poma-ai-clip)
---
name: clip
description: Copy content to clipboard in a format suited to the target (Slack, Markdown, plain text). Use when the user says "clip", "copy that", "clipboard", or "/clip".
allowed-tools: Bash(pbcopy *), Bash(xclip -selection clipboard *), Bash(xsel --clipboard *), Bash(clip.exe *), AskUserQuestion
user-invocable: true
---
# Clip to Clipboard
Copies the most recent output (or specified content) to the clipboard in the right format for the user's target.
## Steps
1. **Ask the user** (unless they already specified): "Where is this going? (slack / md / plain)"
2. **Format based on target:**
**`slack`** — Slack uses `mrkdwn`, NOT Markdown. Convert:
- `*bold*` (not `**bold**`)
- `_italic_` (not `*italic*`)
- `~strikethrough~` (not `~~strikethrough~~`)
- `*HEADING*` on its own line (no `#` headings)
- No markdown tables — use code-block ASCII tables (triple backtick) or bullet lists
- `<url|text>` links (not `[text](url)`)
- Code: single backtick for inline, triple backtick for blocks (same as markdown)
**`md`** — Clean GitHub-Flavored Markdown:
- Tables, headings, links all standard GFM
- No hard wraps, no gutter artifacts, no line-number prefixes
**`plain`** — No formatting at all:
- Strip all markup
- Use indentation and whitespace for structure
3. **Copy to clipboard** using the platform tool. Pass the formatted text on stdin with a here-document whose delimiter is a long random-looking word, checked against the entire text and regenerated until it does not occur anywhere in it. Quote that delimiter in the opening here-document operator to prevent shell expansion of the contents:
- macOS: `pbcopy`
- Linux: `xclip -selection clipboard` or `xsel --clipboard`
- Windows/WSL: `clip.exe`
4. **Confirm** with a one-line message: "Copied (slack/md/plain) — N lines"
## Notes
- If the user says just "copy that" or "clip" without a target, always ask.
- If they say "copy for slack" or "slack copy", skip the question — target is `slack`.
- If they say "copy" with no prior output to copy, ask what they want copied.