Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Copies text to the macOS clipboard, with optional rich HTML formatting for apps like Slack, Word, and Notion.
Use this skill ↓39% 48%+9 ptsof test cases passed
Passed 11 of 23 test cases with the skill, and 9 of 23 without it.
Can you copy that to my clipboard?
The response asks the user to clarify what specific text to copy.
3 of 3 safety checks passed
Copy the most recent relevant text block from the conversation to the macOS system clipboard.
Use a heredoc to safely handle special characters (quotes, apostrophes, backticks, dollar signs):
cat <<'CLIPBOARD' | pbcopy
<text to copy>
CLIPBOARD
Use when the user wants formatting preserved for pasting into Slack, Word, Google Docs, Notion, etc. Sets both HTML and plain text on the clipboard via Swift, so the receiving app picks the richest format it supports.
Step 1: Write the HTML content to a temp file:
cat <<'CLIPBOARD_HTML' > /tmp/_clipboard_rich.html
<html><body>
<h2>Title</h2>
<p>Paragraph with <b>bold</b> and <i>italic</i>.</p>
<ul><li>Item one</li><li>Item two</li></ul>
</body></html>
CLIPBOARD_HTML
Step 2: Write the plain text fallback to a temp file:
cat <<'CLIPBOARD_TEXT' > /tmp/_clipboard_rich.txt
Title
Paragraph with bold and italic.
- Item one
- Item two
Next to this one in the catalogue, plus more from the same author.