ctrl-clip
/ctrl-clip
⧉ Copy a message to the system clipboard cleanly formatted — no blockquote pipes, no terminal bars, no Claude commentary. Use whenever you draft a message the user will paste (Slack, Teams, PR comment, email) to add a clickable "⧉ ctrl + click" copy link under it, and when the user says "/ctrl-clip", "copy that", "put it on the clipboard" (in any language). Optional argument picks the target format: slack (default), md, plain.
- Author
- davepoon ↗
- Repository
- buildwithclaude ↗
- Licence
- MIT
- Last repository change
- 25.10.2026
Assessment and security
- Files in this package
- 4
- Scripts
- 3
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 3 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: clip-setup.sh, clip-url-handler.sh, clip.sh
What it does and when to use it
⧉ Copy a message to the system clipboard cleanly formatted — no blockquote pipes, no terminal bars, no Claude commentary. Use whenever you draft a message the user will paste (Slack, Teams, PR comment, email) to add a clickable "⧉ ctrl + click" copy link under it, and when the user says "/ctrl-clip", "copy that", "put it on the clipboard" (in any language). Optional argument picks the target format: slack (default), md, plain.
Triggers from the description
Original author description
⧉ Copy a message to the system clipboard cleanly formatted — no blockquote pipes, no terminal bars, no Claude commentary. Use whenever you draft a message the user will paste (Slack, Teams, PR comment, email) to add a clickable "⧉ ctrl + click" copy link under it, and when the user says "/ctrl-clip", "copy that", "put it on the clipboard" (in any language). Optional argument picks the target format: slack (default), md, plain.
How it works
- 1. Decide WHAT to copy
- 2. Format for the target
SKILL.md preview
---
name: ctrl-clip
description: '⧉ Copy a message to the system clipboard cleanly formatted — no blockquote pipes, no terminal bars, no Claude commentary. Use whenever you draft a message the user will paste (Slack, Teams, PR comment, email) to add a clickable "⧉ ctrl + click" copy link under it, and when the user says "/ctrl-clip", "copy that", "put it on the clipboard" (in any language). Optional argument picks the target format: slack (default), md, plain.'
category: communication
license: MIT
allowed-tools: Write, Bash(${CLAUDE_SKILL_DIR}/clip.sh:*), Bash(${CLAUDE_SKILL_DIR}/clip-setup.sh:*)
---
# ⧉ ctrl-clip
> Source: https://github.com/geanruca/ctrl-clip (MIT). Also installable as a Claude Code
> plugin: `/plugin marketplace add geanruca/ctrl-clip` then `/plugin install ctrl-clip@ctrl-clip`.
> Usage: `/ctrl-clip [slack|md|plain] [what to copy]`.
Put text on the user's clipboard so it pastes cleanly. The built-in `/copy` copies
the raw markdown of the last response — blockquotes turn into `>`/`│` pipes and the
commentary comes along. This skill copies **only the content meant to be pasted**,
reformatted for its destination.
## 1. Decide WHAT to copy
Arguments: `$ARGUMENTS`
- If the arguments describe the content ("the Slack reply", "the PR description",
"the second draft"), copy that.
- Otherwise copy the **most recent drafted message** in the conversation (a Slack
reply, comment, email, PR text). If the last response had no draft, copy the whole
last response.
- Copy **only the draft** — never your own framing ("Here's a draft:", "Let me know
if…", labels, explanations).
- Keep the wording **verbatim**. Reformat, don't rewrite. Don't translate.
## 2. Format for the target
First word of the arguments selects the format; default is `slack`.
**slack** (default — also Teams, WhatsApp, chat)
- No blockquotes (`>`), no headings (`#`), no tables, no horizontal rules.
- Tables → one line per row: `Label: value, value`.
- Bold: `*text*` (single asterisks). Italic: `_text_`. Keep inline `` `code` `` and
``` fenced blocks ```.
- Bullets with `- `; blank line between paragraphs.
- Links as bare URLs.
**md** (PR descriptions, Azure DevOps / GitHub comments, docs)
- Keep standard Markdown (headings, `**bold**`, lists, tables, code fences).
- Still no blockquotes unless the content genuinely quotes someone.
**plain** (email body, forms, anything without markup)
- No markup at all: strip `*`, `_`, backticks, `#`. Bullets become `- `.
- Tables → `Label: value` lines.
## 3. Copy
1. Write the formatted text with the **Write** tool to `clip.txt` in the session
scratchpad directory (fall back to `/tmp/claude-clip.txt` if there is none). Using
a file avoids every shell quoting problem with `$`, backticks and quotes.
2. Run:
```
${CLAUDE_SKILL_DIR}/clip.sh <that file>
```
The script strips leftover `>`/`│`/`⏺` markers and trailing whitespace, then copies
via wl-copy, xclip, xsel, pbcopy, or OSC 52 (in that order).
## 4. Confirm
Reply with a single line: the script's `⧉ Copied …` output plus the format used,
e.g. `⧉ Copied 6 lines / 412 chars (slack)`. Do **not** echo the copied text again.
If the script fails, show its error line.
## Inline ⧉ copy link (whenever you draft a message to paste)
Every draft the user will paste somewhere gets a clickable copy icon (`⧉`, two
overlapping squares) labeled `ctrl + click`, as a reminder of how to trigger it.
`<CLIP_DIR>` below is the **absolute** path of `~/.cache/claude-clip`, for example
`/home/alice/.cache/claude-clip`. The "Drafts to paste" rule loaded at session start
spells it out. If that rule is not in your context, run
`${CLAUDE_SKILL_DIR}/clip-setup.sh` once: it registers the Ctrl+click handler if needed
and prints `CLIP_DIR=…`. Never write `~` or `$HOME` into a path or link — neither is
expanded.
1. Write the formatted text (section 2, no blockquote markers) with the **Write** tool
to `<CLIP_DIR>/<id>.claudeclip`. `<id>` is a short unique slug matching
`[A-Za-z0-9_-]{1,64}`, e.g. `slack-33247-review`.
2. In the response, show the draft as a **blockquote** — every line prefixed with `> `,
blank lines as `>`. The bar is how the user sees exactly what gets copied; nothing
else goes inside it.
3. Right under the blockquote, on its own line:
`[⧉ ctrl + click](file://<CLIP_DIR>/<id>.claudeclip)`
The user **Ctrl+clicks** the link (a plain click does nothing). If copying breaks, check
`<CLIP_DIR>/handler.log` first — no entry means the click never reached the handler.
Why `file://`: Claude Code's fullscreen TUI refuses clicks on non-allowlisted schemes
(custom `claude-clip://` links are never dispatched), but it opens local `file://`
links with xdg-open. `*.claudeclip` is registered as `application/x-claude-clip`,
whose default app is `clip-url-handler.sh`: it copies the file via `clip.sh` and shows
a desktop notification.
Files in this package (4)
- SKILL.md 5 KB
- clip-setup.sh 8 KB
- clip-url-handler.sh 1 KB
- clip.sh 2 KB
Versions
The database has no other skills named ctrl-clip.
Database snapshot: 13.11.2026 · package version 84cc372a4995 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100clipboard
Copy text to clipboard with optional rich formatting. Triggers on "copy to clipboard", "copy that", "pbcopy", "copy formatted", "copy rich text". - 100md-copy
Format final answer as markdown and copy to clipboard. Use when user says "copy as markdown", "md copy", "copy formatted", "clipboard", or wants the session's final answer formatted and copied. - 100txt-copy
Copy generated text content to clipboard. Use when user asks to "copy this", "copy to clipboard", "save to clipboard", or after creating emails, messages, letters, or other text content that needs to be shared. - 100clipboard
Copy content you just generated to the macOS clipboard via pbcopy, formatted for clean pasting. Use when the user types /clipboard, asks to "copy that", "pbcopy this", or wants the last commit message / blurb / snippet on their clipboard ready to paste. Strips markdown and… - 100p-clipboard-copy
Pull copy-worthy fragments out of the ongoing session — commands, code blocks, file paths, URLs, IDs, queries, message drafts, error snippets, diffs — and push them into the macOS clipboard history as separate entries, stripped of markdown fences, shell prompts and line numbers,… - 100slack-formatter
Copy markdown text to macOS clipboard as rich HTML + plain-text fallback, ready for Cmd+V into Slack with formatting (bold, lists, code blocks, headings) preserved. Use when the user asks to prepare, format, copy, or paste text for Slack, or when a drafted message with markdown…