clipboard
Copy text to the system clipboard. Use when user asks to copy something, send to clipboard, or similar requests.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Clipboard
Copy content to the user's system clipboard.
How to Copy
Use a heredoc to reliably handle multi-line content, quotes, and special characters:
cat << 'EOF' | pbcopy
Your content here.
Can span multiple lines.
Handles "quotes" and 'apostrophes' without escaping.
EOF
Platform Commands
-
macOS:
pbcopy(copy) /pbpaste(verify) -
Linux:
xclip -selection clipboardorxsel --clipboard
After Copying
Verify the clipboard content worked:
pbpaste | head -3
If verification shows different content, the sandbox may be blocking clipboard access. In that case, inform the user and display the text directly so they can copy it manually.
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!