# Copy

> Copy content to my clipboard using `pbcopy`.

- Skill: `majiayu000/copy-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/copy-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/copy-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/copy-2

---


# Copy to Clipboard

## Arguments

```
$ARGUMENTS
```

## Instructions

### No Arguments / "last response"
Copy Claude's last response to the clipboard.

### File Path
If arguments look like a file path (starts with `/`, `~`, `./`, or contains common extensions):
1. Read the file with Read tool
2. Pipe contents to `pbcopy`

### Literal Content
Copy the provided text directly to clipboard.

## Implementation

```bash
pbcopy << 'EOF'
[content to copy]
EOF
```

## Examples

```
/copy                     → copy last response
/copy last response       → copy last response
/copy ~/notes.txt         → copy file contents
/copy Hello, world!       → copy literal text
/copy the function above  → copy referenced code block
```

