Skills

Paste

When you want to clean and reformat content (usually from your terminal) for pasting...

Install

npx skills add coreyhaines31/makerskills --skill paste -g -a claude-code -y
Category
AI and agents
Updated
9d ago
License
MIT
Context cost
Mediumabout 2,086 tokens
Runs scripts
No, instructions only

What it does

When you want to clean and reformat content (usually from your terminal) for pasting into Slack, Notion, Twitter/X, LinkedIn, email, GitHub, or plain text. Strips ANSI codes, box-drawing chars, terminal prompt artifacts, and applies destination-specific formatting. Default input is the system clipboard; default output is both the clipboard and a chat preview. Triggers on "/paste", "/paste [destination]", "clean this for X," "format for slack/notion/twitter/linkedin/email/github," "render as markdown," "paste-ready," "strip formatting," "make this copy-pastable." Default destination is plain. Also scans for secrets (API keys, tokens, .env values) and warns before copying anything sensitive.

/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:

  1. If the user included content in the prompt (pasted, or referenced from earlier in the conversation), use that.
  2. Else, read the clipboard (commands below).
  3. If both empty, ask the user what to paste.

Clipboard commands by platform (read / write):

PlatformReadWrite
macOSpbpastepbcopy < "$f"
Linux (Wayland)wl-paste -nwl-copy < "$f"
Linux (X11)xclip -selection clipboard -oxclip -selection clipboard < "$f"
Windowspowershell Get-Clipboard -Rawpowershell "Get-Content -Raw '$f' | Set-Clipboard"

$f is the temp file from the write procedure in Step 6. Always copy from a file, never from a heredoc or echo.

No clipboard (a remote, headless, or chat-bot agent): skip the clipboard, take content from the prompt, and return the cleaned text in a code fence.

Step 2, Parse destination

InvocationDestination
/pasteplain (default)
/paste plainplain
/paste slackslack
/paste notionnotion
/paste twitter or /paste xtwitter
/paste linkedin or /paste lilinkedin
/paste emailemail (plain)
/paste email rich or /paste email htmlemail (rich/HTML)
/paste github or /paste ghgithub
/paste markdown or /paste mdmarkdown render
/paste htmlrender to HTML file + open in browser

If ambiguous, ask. Per-destination rules live in references/destinations.md.

Step 3, Scan for secrets

Before any cleaning or copying, scan against patterns in references/secret-patterns.md.

Read the whole SKILL.md on GitHub

More in AI and agents