home / skills / aidotnet / moyucode / clipboard-manager
This skill helps you manage clipboard content by copying and pasting text or files with history and format conversion.
npx playbooks add skill aidotnet/moyucode --skill clipboard-managerReview the files below or copy the command above to add this skill to your agents.
---
name: clipboard-manager
description: 复制和粘贴文本/文件到剪贴板,支持历史记录和格式转换。
metadata:
short-description: 剪贴板操作
source:
repository: https://github.com/asweigart/pyperclip
license: BSD-3-Clause
---
# Clipboard Manager Tool
## Description
Copy and paste text and files to system clipboard with history tracking and format conversion.
## Trigger
- `/clipboard` command
- User needs clipboard operations
- User wants to copy/paste programmatically
## Usage
```bash
# Copy text to clipboard
python scripts/clipboard_manager.py copy "Hello World"
# Copy file content
python scripts/clipboard_manager.py copy --file document.txt
# Paste from clipboard
python scripts/clipboard_manager.py paste
# Paste to file
python scripts/clipboard_manager.py paste --output output.txt
```
## Tags
`clipboard`, `copy`, `paste`, `text`, `utility`
## Compatibility
- Codex: ✅
- Claude Code: ✅
This skill manages system clipboard operations: copy and paste text or files with a searchable history and optional format conversion. It exposes a simple command interface for programmatic clipboard control and supports redirecting clipboard content to or from files. It is lightweight and designed for automation and scripting workflows.
The tool provides commands to copy text or file contents into the system clipboard and to paste clipboard contents back to stdout or into a file. Each copy action is recorded in a local history store, allowing retrieval of previous entries. Built-in format conversion simplifies switching between plain text and common encodings when copying or pasting.
How do I copy a file into the clipboard?
Use the copy command with the file option to load file contents into the clipboard (example: copy --file document.txt).
Can I paste the current clipboard contents to a file?
Yes — use the paste command with an output path to write clipboard contents to a file (example: paste --output output.txt).