# Yank

> Copy text to system clipboard. Cross-platform (macOS/Linux/WSL). Use when user invokes /yank, or offer when generating prompts or snippets they might want to paste elsewhere.

- **Type:** Skill
- **Install:** `agentstack add skill-joelev-yank-yank`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [joelev](https://agentstack.voostack.com/s/joelev)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [joelev](https://github.com/joelev)
- **Source:** https://github.com/joelev/yank

## Install

```sh
agentstack add skill-joelev-yank-yank
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# /yank

Copy text to your system clipboard.

## Usage

- `/yank Some text` — yank the argument
- `/yank` — offer to yank from recent context (last code block, etc.)
- After generating a prompt or snippet — offer to yank it (ask first!)

## How It Works

Claude Code injects `Platform:` into your context automatically. Use the matching command:

| Platform | Command |
|----------|---------|
| `darwin` | `pbcopy` |
| `linux` | `xclip -selection clipboard` or `wl-copy` (Wayland) |
| WSL | `clip.exe` |

**Single line:**
```bash
echo 'text' | pbcopy
```

**Multi-line:**
```bash
cat <<'EOF' | pbcopy
line one
line two
EOF
```

## Rules

1. **Ask first** — never overwrite the clipboard without permission
2. **Confirm** — say "Yanked to clipboard." when done
3. **No clipboard?** — on headless/SSH, offer to write to a file instead

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [joelev](https://github.com/joelev)
- **Source:** [joelev/yank](https://github.com/joelev/yank)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-joelev-yank-yank
- Seller: https://agentstack.voostack.com/s/joelev
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
