paste
Installation
SKILL.md
/paste — Clean content for any destination
Cleans terminal output (ANSI, box-drawing, prompt artifacts, etc.) and reformats per destination rules. Reads clipboard by default, writes back to clipboard + previews in chat.
Step 1 — Get the content
In order:
- If the user included content in the prompt (pasted, or referenced from earlier in the conversation), use that.
- Else, read the clipboard (commands below).
- If both empty, ask the user what to paste.
Clipboard commands by platform (read / write):
| Platform | Read | Write |
|---|---|---|
| macOS | pbpaste |
pbcopy < "$f" |
| Linux (Wayland) | wl-paste -n |
wl-copy < "$f" |
| Linux (X11) | xclip -selection clipboard -o |
xclip -selection clipboard < "$f" |
| Windows | powershell Get-Clipboard -Raw |
powershell "Get-Content -Raw '$f' | Set-Clipboard" |