Claude Skill

clipboard

Copy the last requested output to the system clipboard.

LLM Mart · 0 points · 1 views 0 listing impressions 0 install-command copies
Download fmind-dot-skills_clipboard-3bbe830.zip · 3 KB

Install

skills CLI npx skills add https://github.com/fmind/dot/tree/main/skills/clipboard
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install fmind-dot@llmmart
Git 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

  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.

  2. Pipe UTF-8 stdin to 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:

    python3 -I ~/.agents/skills/clipboard/scripts/copy.py <<'CLIPBOARD_PAYLOAD'
    The selected deliverable goes here, unchanged.
    CLIPBOARD_PAYLOAD
    
  3. 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

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.

No comments yet.

Reviews (0)

No reviews yet.