# Pcopy

> pcopy

- Skill: `pawel-kica/pcopy` (Agent Skill)
- Install (CLI): `npx skillmds@latest add pawel-kica/pcopy`
- Raw SKILL.md: https://api.skillmd.com/api/skills/pawel-kica/pcopy/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Pawel-Kica (https://skillmd.com/u/pawel-kica)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/pawel-kica/pcopy

---


# pcopy

Copy something from the previous assistant message to the clipboard via `pbcopy` (macOS).

**What:** `$ARGUMENTS` non-empty → extract the matching piece. Empty → the last fenced code block; no block → the main answer stripped of filler. Raw content only, no fences or preamble.

**How:** heredoc into `pbcopy`. Use the sentinel `PCOPY_EOF`; change it if the payload contains that string.

**After:** one line, `Copied <what> (<N> chars).` Nothing else. Can't find a match → say so, do nothing.

