clipboard
Copy the last requested output to the system clipboard.
Install
npx skills add https://github.com/fmind/dot/tree/main/skills/clipboard
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install fmind-dot@llmmart
git clone https://github.com/fmind/dot.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole fmind/dot collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Clipboard
/clipboard copies the latest requested deliverable; optional arguments select a specific output or format.
Workflow
Select the deliverable verbatim: draft, prompt, command, snippet, table, or test output—without assistant preambles, tool logs, or surrounding code fences (unless Markdown was requested). Never regenerate or guess missing context; ask if multiple outputs fit.
Pipe UTF-8 stdin to scripts/copy.py via
python3 -Iand structured stdin or a single-quoted heredoc (never shell interpolation or argv). Payloads >1 MiB belong in a file; pass--keep-final-newlinewhen a trailing newline is part of the deliverable:python3 -I ~/.agents/skills/clipboard/scripts/copy.py <<'CLIPBOARD_PAYLOAD' The selected deliverable goes here, unchanged. CLIPBOARD_PAYLOADConfirm without repeating the payload:
copy.pyverifies the clipboard byte-for-byte (pbcopy/pbpastewithLC_CTYPE=UTF-8on macOS;wl-copy/wl-pasteonWAYLAND_DISPLAY, elsexcliponDISPLAY—forwarded as OSC 52 byttyd-clipboard.serviceon Android AVFttydVMs; 5s timeout per command). On failure, report the native diagnostic without retrying or claiming success.
Boundaries
- Install backends only with consent:
xcliporwl-clipboardmatching the session; neversudo. - No OSC 52 in tool output: captured stdout may never reach the user's terminal.
- Copy ≠ paste: replacing the clipboard never authorizes pasting or sending elsewhere.
Documentation
Files (dot)
-
scripts
-
copy.py 4.8 KB
Loading…
-
-
SKILL.md 1.9 KB
--- name: clipboard description: "Copy the last requested output to the system clipboard." license: MIT metadata: kind: task author: Médéric HURIER (Fmind) source: github.com/fmind/dot/tree/main/skills/clipboard created: "2026-10-03" updated: "2026-11-11" --- # Clipboard `/clipboard` copies the latest requested deliverable; optional arguments select a specific output or format. ## Workflow 1. **Select the deliverable verbatim**: draft, prompt, command, snippet, table, or test output—without assistant preambles, tool logs, or surrounding code fences (unless Markdown was requested). Never regenerate or guess missing context; ask if multiple outputs fit. 1. **Pipe UTF-8 stdin to [scripts/copy.py](scripts/copy.py)** via `python3 -I` and structured stdin or a single-quoted heredoc (never shell interpolation or argv). Payloads >1 MiB belong in a file; pass `--keep-final-newline` when a trailing newline is part of the deliverable: ```bash python3 -I ~/.agents/skills/clipboard/scripts/copy.py <<'CLIPBOARD_PAYLOAD' The selected deliverable goes here, unchanged. CLIPBOARD_PAYLOAD ``` 1. **Confirm without repeating the payload**: `copy.py` verifies the clipboard byte-for-byte (`pbcopy`/`pbpaste` with `LC_CTYPE=UTF-8` on macOS; `wl-copy`/`wl-paste` on `WAYLAND_DISPLAY`, else `xclip` on `DISPLAY`—forwarded as OSC 52 by `ttyd-clipboard.service` on Android AVF `ttyd` VMs; 5s timeout per command). On failure, report the native diagnostic without retrying or claiming success. ## Boundaries - **Install backends only with consent**: `xclip` or `wl-clipboard` matching the session; never `sudo`. - **No OSC 52 in tool output**: captured stdout may never reach the user's terminal. - **Copy ≠ paste**: replacing the clipboard never authorizes pasting or sending elsewhere. ## Documentation - [xclip](https://github.com/astrand/xclip) · [wl-clipboard](https://github.com/bugaevc/wl-clipboard).
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.