clipboard
Skill169 starsChanged 56 days agoMITView on GitHub
Copy text to clipboard with optional rich formatting. Triggers on "copy to clipboard", "copy that", "pbcopy", "copy formatted", "copy rich text".
5 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dottheir own version, first seen Nov 8, 2026
- fmind/dotfilestheir own version, first seen Nov 8, 2026
- kellyvv/PhoneClawtheir own version, first seen Oct 8, 2026
- MonkeyLeeT/skillstheir own version, first seen Mar 7, 2026
- bitwize-music-studio/claude-ai-music-skillstheir own version, first seen Jan 25, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- kellyvv/PhoneClaw★ 1.3ksame name
- bitwize-music-studio/claude-ai-music-skills★ 589same name
- fmind/dot★ 13same name
- fmind/dotfiles★ 13same name
- MonkeyLeeT/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agentic-readinessSkill
- bug-fix-protocolSkill
- code-that-fits-in-your-headSkill
- fetch-url-as-markdownSkill
- fpf-problem-solvingSkill
- hooks-managementSkill
- installing-cli-toolsSkill
- investigating-repository-historySkill
- maintaining-macos-healthSkill
- maintaining-windows-healthSkill
- mcp-managementSkill
- plan-modeSkill
- plugins-managementSkill
- prompt-engineeringSkill
- refactoring-csharpSkill
- repo-activity-summarySkill
- semantic-scholar-deepSkill
- settings-managementSkill
- skills-managementSkill
- ubiquitous-languageSkill
- windows-qa-engineerSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use a heredoc to safely handle special characters (quotes, apostrophes, backticks, dollar signs):
- Distinctive: line 22
Use when the user wants formatting preserved for pasting into Slack, Word, Google Docs, Notion, etc.
- Distinctive: line 24
Step 1: Write the HTML content to a temp file:
- Distinctive: line 36
Step 2: Write the plain text fallback to a temp file:
- Distinctive: line 75
Plain: Default for code snippets, terminal output, simple text, or when user says "copy to clipboard" without formatting context
- Distinctive: line 80
If ambiguous, ask what to copy
- Very specific: line 81
Use single-quoted heredoc delimiters ('CLIPBOARD', 'CLIPBOARD_HTML', 'CLIPBOARD_TEXT') to prevent shell expansion
- Distinctive: line 83
Always provide a plain text fallback alongside HTML
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Clipboard
Copy the most recent relevant text block from the conversation to the macOS system clipboard.
Plain Text Copy (Default)
Use a heredoc to safely handle special characters (quotes, apostrophes, backticks, dollar signs):
cat <<'CLIPBOARD' | pbcopy
<text to copy>
CLIPBOARDRich Text Copy (Formatted)
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_HTMLStep 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
CLIPBOARD_TEXTStep 3: Set clipboard with both HTML and plain text using Swift:
swift -e '
import AppKit
let html = try Data(contentsOf: URL(fileURLWithPath: "/tmp/_clipboard_rich.html"))
let text = try String(contentsOfFile: "/tmp/_clipboard_rich.txt", encoding: .utf8)
let pb = NSPasteboard.general
pb.clearContents()
pb.setData(html, forType: .html)
pb.setString(text, forType: .string)
'Step 4: Clean up temp files:
rm -f /tmp/_clipboard_rich.html /tmp/_clipboard_rich.txtWhen to Use Rich vs Plain
- Rich (HTML): User says "copy formatted", "copy as rich text", "copy for Slack/LinkedIn/Word/Docs/Notion", or the content has meaningful formatting (bold, headers, lists, code blocks). This is also the correct way to copy for Slack and LinkedIn — they accept HTML rich text from clipboard and render it with proper formatting (bold, lists, code, etc.). Do NOT use Slack mrkdwn or markdown syntax for clipboard copy — use HTML rich text instead, it works universally.
- ⚠️ Slack does NOT render HTML
<table>tags. Tables pasted into Slack appear as a broken mess of text. Instead of<table>, present tabular data as plain-text lines (e.g.Label: valueper line, or use<pre>for aligned columns). This also applies to LinkedIn and most chat apps.
- ⚠️ Slack does NOT render HTML
- Plain: Default for code snippets, terminal output, simple text, or when user says "copy to clipboard" without formatting context
Rules
- Identify the most recent text block the user wants copied (message, code block, drafted text, etc.)
- If ambiguous, ask what to copy
- Use single-quoted heredoc delimiters (
'CLIPBOARD','CLIPBOARD_HTML','CLIPBOARD_TEXT') to prevent shell expansion - For rich copy, convert markdown-style content to proper HTML (use
<b>,<i>,<code>,<ul>/<li>,<h1>-<h6>,<pre>, etc.). Do NOT use<table>for Slack/chat targets — use line-per-row text instead. - Always provide a plain text fallback alongside HTML
- Confirm success after copying, noting whether plain or rich format was used
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

