Skip to content
Back to skills

Clipboard

ASecurity

Copy files, bundles, zips, images, screenshots, artifact paths, or text to the desktop clipboard with verified KDE/GNOME-compatible MIME targets. Use when the user says "$clipboard", "copy to clipboard", "put this on clipboard", or asks to copy a file/artifact/zip/image/bundle.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
toolsbash

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add grahama1970/agent-skills --skill clipboard --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clipboard?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clipboard
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/grahama1970-clipboard/badge)](https://www.skillsdirectory.com/skills/grahama1970-clipboard)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clipboard
description: >
  Copy files, bundles, zips, images, screenshots, artifact paths, or text to the
  desktop clipboard with verified KDE/GNOME-compatible MIME targets. Use when
  the user says "$clipboard", "copy to clipboard", "put this on clipboard", or
  asks to copy a file/artifact/zip/image/bundle.
metadata:
  short-description: Verified desktop clipboard copy for files and text
provides:
  - clipboard-copy
  - file-clipboard-mime
  - clipboard-verification
composes:
  - clipboard-file
  - agentic-evals
complies:
  - best-practices-skills
  - best-practices-kde
disciplines:
  - developer-tooling
---

# Clipboard

Use this skill whenever the user asks to copy something to the clipboard.

## Critical Rule For Files

When copying a file-like artifact, do **not** copy only the path as plain text.
Copy it as a desktop file-list MIME item and verify the clipboard target.

Examples of file-like artifacts:

- zip bundles
- screenshots
- images
- PDFs
- generated reports
- archives
- any path the user expects to paste/upload as a file

## KDE Plasma / X11

KDE Plasma expects `text/uri-list` for file paste/upload workflows:

```bash
./run.sh file /absolute/path/to/file.zip
```

The expected verified payload is:

```text
file:///absolute/path/to/file.zip
```

## GNOME / X11

GNOME file-manager copy can use `x-special/gnome-copied-files`:

```bash
./run.sh file --target gnome /absolute/path/to/file.zip
```

The expected verified payload is:

```text
copy
file:///absolute/path/to/file.zip
```

## Commands

```bash
# Auto-detect desktop; KDE resolves to text/uri-list
./run.sh file /absolute/path/to/file.zip

# Force KDE-compatible uri-list
./run.sh file --target kde /absolute/path/to/file.zip

# Force GNOME copied-files target
./run.sh file --target gnome /absolute/path/to/file.zip

# Copy plain text only when the user explicitly asks for text
./run.sh text "literal clipboard text"
```

## Verification Contract

For file copies, the operation is not complete unless the command verifies:

1. `TARGETS` includes the selected MIME target.
2. The payload contains the expected `file://...` URI.
3. A persistent `xclip` owner process is alive for the selected target.

If verification fails, report the fallback path and do not claim clipboard
success.

Files in this skill

  • SKILL.md2.2 KB
  • fixtures/agentic_eval.json504 B
  • run.sh1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.