clipboard

Featured

Copy text to clipboard with optional rich formatting. Triggers on "copy to clipboard", "copy that", "pbcopy", "copy formatted", "copy rich text".

AI & Automation 149 stars 13 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
72
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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): ```bash cat <<'CLIPBOARD' | pbcopy <text to copy> CLIPBOARD ``` ## Rich 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: ```bash 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: ```bash cat <<'CLIPBOARD_TEXT' > /tmp/_clipboard_rich.txt Title Paragraph with bold and italic. - Item one - Item two CLIPBOARD_TEXT ``` **Step 3:** Set clipboard with both HTML and plain text using Swift: ```bash 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: ```bash rm -f /tmp/_clipboard_rich.html /tmp/_c...

Details

Author
CodeAlive-AI
Repository
CodeAlive-AI/ai-driven-development
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

copy-to-clipboard

Format text/messages nicely based on context and copy to clipboard using pbcopy. Use when the user wants to draft and copy a message, email, post, or any text to their clipboard. Triggers on "copy to clipboard", "draft a message", "write an email and copy it", "copy this", or any request to prepare and copy text for pasting elsewhere.

2 Updated 3 days ago
magnusrodseth
Web & Frontend Listed

copy

Clipboard helper for macOS, Linux and Windows. Two modes — (a) proactive: when your next response includes text the user will need to paste somewhere external (a query for Grafana, a shell command, a config snippet, JavaScript for the browser console), show it inline as usual AND ask via AskUserQuestion if they want it copied to clipboard; (b) user-invoked: when the user types `/clipboard:copy [optional target]`, skip the confirmation and copy immediately (best-effort selection from the previous response, or the target the user named).

1 Updated 1 months ago
harleensahni
AI & Automation Listed

ctrl-clip

⧉ Copy a message to the system clipboard cleanly formatted — no blockquote pipes, no terminal bars, no Claude commentary. Use whenever you draft a message the user will paste (Slack, Teams, PR comment, email) to add a clickable "⧉ ctrl + click" copy link under it, and when the user says "/ctrl-clip", "copy that", "put it on the clipboard" (in any language). Optional argument picks the target format: slack (default), md, plain.

1 Updated 1 weeks ago
geanruca