copy-as

copy-as is a command for Claude Code from vladolaru/claude-code-plugins. It costs 28 tokens per session (3,568 once invoked), scanned A, original, MIT.

A clipboard formatter that converts content into Markdown, Slack's message format, or the HTML used by WordPress Gutenberg and copies it to the system clipboard.

In plain words
What is it for?
Use it to copy conversation text, code, or files in a format ready for Markdown, Slack, or WordPress.
Why use it?
It avoids manually reformatting the same content for different destinations.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to copy conversation text, code, or files in a format ready for Markdown, Slack, or WordPress.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/vladolaru/claude-code-plugins/copy-as
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.

Clone the repo
git clone --depth 1 https://github.com/vladolaru/claude-code-plugins

Made for: Claude Code.

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-as

README.md
[![agentmods](https://agentmods.dev/badge/commands/vladolaru/claude-code-plugins/copy-as/github.svg)](https://agentmods.dev/commands/vladolaru/claude-code-plugins/copy-as)
Your own site
<a href="https://agentmods.dev/commands/vladolaru/claude-code-plugins/copy-as"><img src="https://agentmods.dev/badge/commands/vladolaru/claude-code-plugins/copy-as/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-as

Your own site · 80×15
<a href="https://agentmods.dev/commands/vladolaru/claude-code-plugins/copy-as"><img src="https://agentmods.dev/badge/commands/vladolaru/claude-code-plugins/copy-as.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,568 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00028 $0.03568
Opus 5 $0.00014 $0.01784
Sonnet 5 $0.00006 $0.00714
Haiku 4.5 $0.00003 $0.00357

Measured 7d ago against content hash 9906b3114edc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

copy-as scanned grade A with 0 findings 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 7d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/pirategoat-tools/commands/copy-as.md · 323 lines

How it starts

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

You are a format-aware clipboard tool. You convert content to the target format and copy it to the system clipboard. Do what is asked; nothing more, nothing less.

Step 1: Identify Target Format, Then Extract Content

Arguments: $ARGUMENTS

Before extracting content, determine the target format — it controls how you process everything downstream.

Target format — scan arguments for a destination keyword:

  • slack or for slack or mrkdwn → Slack mrkdwn
  • p2 or for p2 or gutenberg or wordpress → P2/Gutenberg HTML
  • markdown, md, or nothing specified → Standard markdown (default)

Content source — one of:

  • Inline text in the arguments
  • A conversation reference (e.g., "the summary above", "that code block")
  • A file path to read

If the content reference is ambiguous, ask the user to clarify.

Step 2: Prepare Content

Extract the content. If it comes from a file, read it. If it references conversation context, locate and extract the relevant portion.

Default to human-readable form. Unless the user explicitly asks for raw output (JSON, code, logs, tool output), extract the prose or structured representation that a person would read — not the underlying data. If both exist (e.g., a summary and a JSON payload), copy the summary.

PR descriptions, review comments, and similar dual-audience content

Exception to the default above. PR content serves two audiences with different needs: human reviewers who need a quick scannable recap, and future AI sessions that benefit from rich context. Human reviewers won't read walls of text; AI sessions need detail to work effectively. Serve both by structuring content:

1. Lead with a human recap — 3-5 short bullets covering what changed, why, and anything the reviewer should pay attention to. This is the part a human actually reads. Keep it under ~100 words.

2. Follow with detailed context — Below a --- separator (or a <details> block), include the richer description: implementation approach, trade-offs, affected areas, test coverage notes. This section serves future AI sessions and thorough reviewers.

Read the full file on GitHub · 323 lines

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. 7d ago First seen · 323 lines · 28 tokens per session scan A 9906b3114edc

Subscribe to this mod's changes

copy-as is a command published in the GitHub repository vladolaru/claude-code-plugins (8 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 3,568 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.