pb
Installation
SKILL.md
pb - Cross-Platform Clipboard
The pb module provides a unified interface for system clipboards across macOS, Windows, Linux, and Android. It automatically detects the environment and even supports SSH-based copying through the OSC52 protocol.
When to Activate
- When the user wants to copy command output or text to the system clipboard.
- When pasting clipboard content into the terminal or a command.
- When working in a remote SSH session and needing to sync the remote clipboard with the local machine.
Core Principles & Rules
- Environment Agnostic: One command (
x pb) replacespbcopy,xclip,wl-copy, andclip.exe. - Remote Synchronization: Automatically uses OSC52 in SSH sessions to allow copying from a server to a local client.
- Input Flexibility: Supports both piped input and direct arguments for copying.