⧉ 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
- 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.
- 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.
- 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.
- 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.
- 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.
1---2name: ctrl-clip3description: '⧉ 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.'4category: communication5license: MIT6allowed-tools: Write, Bash(${CLAUDE_SKILL_DIR}/clip.sh:*), Bash(${CLAUDE_SKILL_DIR}/clip-setup.sh:*)7metadata:8 source: https://skillmd.com/skills/davepoon/ctrl-clip9---1011# ⧉ ctrl-clip1213> Source: https://github.com/geanruca/ctrl-clip (MIT). Also installable as a Claude Code14> plugin: `/plugin marketplace add geanruca/ctrl-clip` then `/plugin install ctrl-clip@ctrl-clip`.15> Usage: `/ctrl-clip [slack|md|plain] [what to copy]`.1617Put text on the user's clipboard so it pastes cleanly. The built-in `/copy` copies18the raw markdown of the last response — blockquotes turn into `>`/`│` pipes and the19commentary comes along. This skill copies **only the content meant to be pasted**,20reformatted for its destination.2122## 1. Decide WHAT to copy2324Arguments: `$ARGUMENTS`2526- If the arguments describe the content ("the Slack reply", "the PR description",27 "the second draft"), copy that.28- Otherwise copy the **most recent drafted message** in the conversation (a Slack29 reply, comment, email, PR text). If the last response had no draft, copy the whole30 last response.31- Copy **only the draft** — never your own framing ("Here's a draft:", "Let me know32 if…", labels, explanations).33- Keep the wording **verbatim**. Reformat, don't rewrite. Don't translate.3435## 2. Format for the target3637First word of the arguments selects the format; default is `slack`.3839**slack** (default — also Teams, WhatsApp, chat)40- No blockquotes (`>`), no headings (`#`), no tables, no horizontal rules.41- Tables → one line per row: `Label: value, value`.42- Bold: `*text*` (single asterisks). Italic: `_text_`. Keep inline `` `code` `` and43 ``` fenced blocks ```.44- Bullets with `- `; blank line between paragraphs.45- Links as bare URLs.4647**md** (PR descriptions, Azure DevOps / GitHub comments, docs)48- Keep standard Markdown (headings, `**bold**`, lists, tables, code fences).49- Still no blockquotes unless the content genuinely quotes someone.5051**plain** (email body, forms, anything without markup)52- No markup at all: strip `*`, `_`, backticks, `#`. Bullets become `- `.53- Tables → `Label: value` lines.5455## 3. Copy56571. Write the formatted text with the **Write** tool to `clip.txt` in the session58 scratchpad directory (fall back to `/tmp/claude-clip.txt` if there is none). Using59 a file avoids every shell quoting problem with `$`, backticks and quotes.602. Run:61 ```62 ${CLAUDE_SKILL_DIR}/clip.sh <that file>63 ```64 The script strips leftover `>`/`│`/`⏺` markers and trailing whitespace, then copies65 via wl-copy, xclip, xsel, pbcopy, or OSC 52 (in that order).6667## 4. Confirm6869Reply with a single line: the script's `⧉ Copied …` output plus the format used,70e.g. `⧉ Copied 6 lines / 412 chars (slack)`. Do **not** echo the copied text again.71If the script fails, show its error line.7273## Inline ⧉ copy link (whenever you draft a message to paste)7475Every draft the user will paste somewhere gets a clickable copy icon (`⧉`, two76overlapping squares) labeled `ctrl + click`, as a reminder of how to trigger it.7778`<CLIP_DIR>` below is the **absolute** path of `~/.cache/claude-clip`, for example79`/home/alice/.cache/claude-clip`. The "Drafts to paste" rule loaded at session start80spells it out. If that rule is not in your context, run81`${CLAUDE_SKILL_DIR}/clip-setup.sh` once: it registers the Ctrl+click handler if needed82and prints `CLIP_DIR=…`. Never write `~` or `$HOME` into a path or link — neither is83expanded.84851. Write the formatted text (section 2, no blockquote markers) with the **Write** tool86 to `<CLIP_DIR>/<id>.claudeclip`. `<id>` is a short unique slug matching87 `[A-Za-z0-9_-]{1,64}`, e.g. `slack-33247-review`.882. In the response, show the draft as a **blockquote** — every line prefixed with `> `,89 blank lines as `>`. The bar is how the user sees exactly what gets copied; nothing90 else goes inside it.913. Right under the blockquote, on its own line:92 `[⧉ ctrl + click](file://<CLIP_DIR>/<id>.claudeclip)`9394The user **Ctrl+clicks** the link (a plain click does nothing). If copying breaks, check95`<CLIP_DIR>/handler.log` first — no entry means the click never reached the handler.9697Why `file://`: Claude Code's fullscreen TUI refuses clicks on non-allowlisted schemes98(custom `claude-clip://` links are never dispatched), but it opens local `file://`99links with xdg-open. `*.claudeclip` is registered as `application/x-claude-clip`,100whose default app is `clip-url-handler.sh`: it copies the file via `clip.sh` and shows101a desktop notification.