C clipboard

From NVlabs/Skill2Env · View interactive version

C clipboard is an AI agent skill from the GitHub repository NVlabs/Skill2Env. System clipboard — copy, paste, transform content between clipboard and files.

How to use this skill

Skill file

Clipboard — Copy & Paste

Read from and write to the system clipboard. Built into macOS, no install needed.

Commands

# Read clipboard contents
pbpaste

# Copy text to clipboard
echo "hello world" | pbcopy

# Copy file contents to clipboard
pbcopy < /path/to/file.txt

# Save clipboard to file
pbpaste > /path/to/output.txt

# Copy command output to clipboard
ls -la | pbcopy
date | pbcopy

# Transform clipboard content
pbpaste | tr '[:lower:]' '[:upper:]' | pbcopy    # uppercase
pbpaste | sort | pbcopy                            # sort lines
pbpaste | wc -w                                    # word count

# Copy with no trailing newline
printf "%s" "exact text" | pbcopy

Linux Equivalents

# If on Linux, use xclip or xsel
xclip -selection clipboard           # copy (pipe into)
xclip -selection clipboard -o        # paste

Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.