---
name: Clipboard
slug: clipboard
category: Automation
description: Clipboard copies, pastes, and transforms text between the system clipboard and files. Use it when you need to move command output into the clipboard or save clipboard contents to disk.
github: "https://github.com/daxaur/openpaw/tree/main/skills/c-clipboard"
language: TypeScript
stars: 167
forks: 11
install: "npx degit https://github.com/daxaur/openpaw/tree/main/skills/c-clipboard ~/.claude/skills/c-clipboard"
installs_to: ~/.claude/skills/c-clipboard
source_path: skills/c-clipboard/SKILL.md
collection_size: 25
category_size: 2226
collection_url: "https://dirskills.com/collections/daxaur/openpaw"
added: 2026-09-08T05:34:28.810Z
last_synced: 2026-09-08T05:34:28.810Z
canonical_url: "https://dirskills.com/skills/clipboard"
---

# Clipboard

Clipboard copies, pastes, and transforms text between the system clipboard and files. Use it when you need to move command output into the clipboard or save clipboard contents to disk.

**Install:**

```bash
npx degit https://github.com/daxaur/openpaw/tree/main/skills/c-clipboard ~/.claude/skills/c-clipboard
```

## README

# Clipboard — Copy & Paste

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

## Commands

```bash
# 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

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

## Guidelines

- When the user says "copy this" or "put this in my clipboard", use `pbcopy`
- When the user says "what's in my clipboard?" or "paste", use `pbpaste`
- For transformations, pipe `pbpaste` through the transform and back to `pbcopy`
- Always confirm what was copied with a brief summary
- Never display clipboard contents unless asked — they may contain sensitive data
