clipboard

Solid

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

AI & Automation 110 stars 8 forks Updated today MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
68
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
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
6 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 today
magnusrodseth
AI & Automation Featured

paste

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 clipboard (read via `pbpaste`); default output is both the clipboard (`pbcopy`) 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.

229 Updated 2 days ago
coreyhaines31
AI & Automation Listed

copy-paste-via-file

Whenever the assistant needs the user to copy-paste a command, code snippet, prompt, or any text where chat-rendered formatting could mangle line wrapping, regex literals, or string contents (e.g. DevTools console one-liners, terminal commands with quoted JSON, long URLs, multi-line prompts), write the exact text to a file and open it so the user can copy it clean. Use whenever the assistant is about to say "paste this command into..." or similar, especially for browser DevTools console pastes, complex shell commands, or anything containing regex literals, escaped quotes, or backticks.

0 Updated 5 days ago
cobuchan