copy

copy is a skill for Claude Code from harleensahni/copy-to-clipboard-plugin. It costs 119 tokens per session (1,211 once invoked), scanned A, original, MIT.

A clipboard helper that copies text to the system clipboard on macOS, Linux, and Windows.

In plain words
What is it for?
It is for copying text the user needs to paste into a terminal, browser console, configuration file, or another external tool.
Why use it?
It avoids manually selecting and copying commands, queries, configuration snippets, or long links from a response.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Part of the clipboard plugin — 1 skill shipped together

Good fit It is for copying text the user needs to paste into a terminal, browser console, configuration file, or another external tool.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harleensahni/copy-to-clipboard-plugin/copy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add harleensahni/copy-to-clipboard-plugin --skill copy
Clone the repo
git clone --depth 1 https://github.com/harleensahni/copy-to-clipboard-plugin

Made for: Claude Code.

Or install clipboard, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for copy

README.md
[![agentmods](https://agentmods.dev/badge/skills/harleensahni/copy-to-clipboard-plugin/copy/github.svg)](https://agentmods.dev/skills/harleensahni/copy-to-clipboard-plugin/copy)
Your own site
<a href="https://agentmods.dev/skills/harleensahni/copy-to-clipboard-plugin/copy"><img src="https://agentmods.dev/badge/skills/harleensahni/copy-to-clipboard-plugin/copy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for copy

Your own site · 80×15
<a href="https://agentmods.dev/skills/harleensahni/copy-to-clipboard-plugin/copy"><img src="https://agentmods.dev/badge/skills/harleensahni/copy-to-clipboard-plugin/copy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.01211
Opus 5 $0.00060 $0.00606
Sonnet 5 $0.00024 $0.00242
Haiku 4.5 $0.00012 $0.00121

Measured 11d ago against content hash 36da4093701d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

copy scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/copy.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- A long URL or a curl invocation carrying credentials
skills/copy/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Copy to clipboard

Two modes

Mode A — proactive (skill auto-applied while constructing a response)

Trigger: your response is about to include text the user will need to paste somewhere external. Examples:

  • A PromQL / LogQL / SQL query for Grafana Explore
  • A shell command they should run themselves (NOT via the Bash tool)
  • A config snippet for a file they edit by hand
  • A JavaScript snippet they'll paste into the browser devtools console
  • A long URL or a curl invocation carrying credentials

Action:

  1. Show the text inline first — code-fenced as usual — so they can read it before deciding.
  2. After the response body, use AskUserQuestion with one short question:

    "Copy <one-line description> to clipboard?" Options: Yes / No thanks. Single-select. No multiSelect, no preview.

  3. On Yes, run via Bash (quoted heredoc — keeps $variables and `backticks` from shell-expanding):
    cat <<'PBCOPY_EOF' | "${CLAUDE_SKILL_DIR}/scripts/copy.sh"
    <verbatim content>
    PBCOPY_EOF
    
  4. Confirm afterwards in one short line: Copied. If the helper exited non-zero it printed an install hint on stderr — relay that instead of claiming success.
  5. On No, do nothing further. Don't re-ask this turn.

If a response has multiple distinct copyable blocks, batch into ONE AskUserQuestion: Copy A / Copy B / Copy both / Copy none — not one prompt per block.

Mode B — user-invoked (the user typed /clipboard:copy ...)

Trigger: you see a <command-name>copy</command-name> tag in the current turn, OR the user's message text starts with /clipboard:copy. Args (the text after the command name) name a specific target; absence of args means "best-effort from the previous response."

Action — SKIP the confirmation. Copy immediately:

  • No args (/clipboard:copy): pick the most recent block in your previous response that was a copy candidate (code-fenced PromQL / shell command / config snippet / etc.). If multiple, pick the largest / most prominent block.
  • Args (e.g. /clipboard:copy the sql query or /clipboard:copy the PromQL): find the block in recent context (this turn or the last few responses) that matches the description and copy that one.
  • Ambiguous match (the description fits multiple blocks): copy the most recent one and mention in the confirmation line which one you picked, so they can re-issue if you guessed wrong.
  • No matching block found: tell the user briefly that there's nothing matching to copy. Don't fabricate.

Read the full file on GitHub · 96 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 96 lines · 119 tokens per session scan A 36da4093701d

Subscribe to this mod's changes

copy is a skill published in the GitHub repository harleensahni/copy-to-clipboard-plugin (1 stars, last pushed 1mo ago), licensed MIT. It adds 119 tokens to every session and 1,211 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time estimates, make wins visible. Invoke with /i-have-adhd; stays on until "stop adhd mode".

ayghri/i-have-adhd · 62 tokens

my-adhd-caveman

Self-contained output mode: ADHD actable structure (action first, numbered steps, one next action, one-line progress) plus caveman diction (drop fluff/articles, fragments, fewer tokens). Use when the user says "adhd-caveman", "my-adhd-caveman", or invokes /my-adhd-caveman. Needs no other skills.

SteinsFu/my-adhd-caveman · 83 tokens

build-guard

Use when implementing features, refactors, or multi-file changes. Orchestrated plan-then-execute with subagent dispatch and regression checkpoints.

cukas/patrol · 33 tokens

gog

Use the gog CLI for the user's Google account ([email protected]): Gmail search/read, Calendar create/edit, Contacts edit/create, Tasks create/edit. Use when the user asks about email, inbox, calendar events, meetings, contacts, or tasks. Scope is intentionally light: queries and edits only — never delete…

chris-hendrix/ai-hub · 74 tokens

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time estimates, make wins visible. Invoke with /i-have-adhd; stays on until "stop adhd mode".

Scoundrelwildness456/i-have-adhd · 62 tokens

service-desk

Runs the IT service desk — intake, triage, prioritization, escalation, knowledge, and the metrics that improve service rather than distort it. Use this to set up or fix a service desk, design ticket priority and escalation, reduce repeat contacts, structure a knowledge base, or work out why a desk hitting its targets…

cbrock84/headcount · 73 tokens