计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
, backticks and quotes.\n2. Run:\n ```\n ${CLAUDE_SKILL_DIR}/clip.sh \u003cthat file>\n ```\n The script strips leftover `>`/`│`/`⏺` markers and trailing whitespace, then copies\n via wl-copy, xclip, xsel, pbcopy, or OSC 52 (in that order).\n\n## 4. Confirm\n\nReply with a single line: the script's `⧉ Copied …` output plus the format used,\ne.g. `⧉ Copied 6 lines / 412 chars (slack)`. Do **not** echo the copied text again.\nIf the script fails, show its error line.\n\n## Inline ⧉ copy link (whenever you draft a message to paste)\n\nEvery draft the user will paste somewhere gets a clickable copy icon (`⧉`, two\noverlapping squares) labeled `ctrl + click`, as a reminder of how to trigger it.\n\n`\u003cCLIP_DIR>` below is the **absolute** path of `~/.cache/claude-clip`, for example\n`/home/alice/.cache/claude-clip`. The \"Drafts to paste\" rule loaded at session start\nspells it out. If that rule is not in your context, run\n`${CLAUDE_SKILL_DIR}/clip-setup.sh` once: it registers the Ctrl+click handler if needed\nand prints `CLIP_DIR=…`. Never write `~` or `$HOME` into a path or link — neither is\nexpanded.\n\n1. Write the formatted text (section 2, no blockquote markers) with the **Write** tool\n to `\u003cCLIP_DIR>/\u003cid>.claudeclip`. `\u003cid>` is a short unique slug matching\n `[A-Za-z0-9_-]{1,64}`, e.g. `slack-33247-review`.\n2. In the response, show the draft as a **blockquote** — every line prefixed with `> `,\n blank lines as `>`. The bar is how the user sees exactly what gets copied; nothing\n else goes inside it.\n3. Right under the blockquote, on its own line:\n `[⧉ ctrl + click](file://\u003cCLIP_DIR>/\u003cid>.claudeclip)`\n\nThe user **Ctrl+clicks** the link (a plain click does nothing). If copying breaks, check\n`\u003cCLIP_DIR>/handler.log` first — no entry means the click never reached the handler.\n\nWhy `file://`: Claude Code's fullscreen TUI refuses clicks on non-allowlisted schemes\n(custom `claude-clip://` links are never dispatched), but it opens local `file://`\nlinks with xdg-open. `*.claudeclip` is registered as `application/x-claude-clip`,\nwhose default app is `clip-url-handler.sh`: it copies the file via `clip.sh` and shows\na desktop notification.\n","licenseDocuments":[]}}
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 lan…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Source: https://github.com/geanruca/ctrl-clip (MIT). Also installable as a Claude Code plugin:
/plugin marketplace add geanruca/ctrl-clipthen/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.
Arguments: $ARGUMENTS
First word of the arguments selects the format; default is slack.
slack (default — also Teams, WhatsApp, chat)
>), no headings (#), no tables, no horizontal rules.Label: value, value.*text* (single asterisks). Italic: _text_. Keep inline `code` and
fenced blocks.- ; blank line between paragraphs.md (PR descriptions, Azure DevOps / GitHub comments, docs)
**bold**, lists, tables, code fences).plain (email body, forms, anything without markup)
*, _, backticks, #. Bullets become - .Label: value lines.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.${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).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.
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.
<CLIP_DIR>/<id>.claudeclip. <id> is a short unique slug matching
[A-Za-z0-9_-]{1,64}, e.g. slack-33247-review.> ,
blank lines as >. The bar is how the user sees exactly what gets copied; nothing
else goes inside it.[⧉ 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.