/txt-copy
Copy generated text content to clipboard. Use when user asks to "copy this", "copy to clipboard", "save to clipboard", or after creating emails, messages, letters, or other text content that needs to be shared.
Claude Code
$ npx -y skills add umputun/cc-thingz --skill txt-copy --agent claude-code
Codex
$ npx skills add umputun/cc-thingz --skill txt-copy -a codex -y
Cursor
$ npx skills add umputun/cc-thingz --skill txt-copy -a cursor -y
Gemini CLI
$ npx skills add umputun/cc-thingz --skill txt-copy -a gemini-cli -y
GitHub Copilot
$ npx skills add umputun/cc-thingz --skill txt-copy -a github-copilot -y
OpenCode
$ npx skills add umputun/cc-thingz --skill txt-copy -a opencode -y
Windsurf
$ npx skills add umputun/cc-thingz --skill txt-copy -a windsurf -y
SKILL.md
txt-copy.SKILL.mdname: txt-copy
description: Copy generated text content to clipboard. Use when user asks to "copy this", "copy to clipboard", "save to clipboard", or after creating emails, messages, letters, or other text content that needs to be shared.
allowed-tools: Bash
Copy Text to Clipboard
Copy generated text content to clipboard via a timestamped temp file.
Activation Triggers
- "copy this", "copy to clipboard", "save to clipboard"
- "copy the email", "copy the message", "copy the letter"
- After generating text content when user indicates they want to use it
- "I need to paste this", "put it in clipboard"
Workflow
1. Identify the text content to copy (from recent generation or user-specified)
2. Write to timestamped temp file:
tmpfile="/tmp/claude-txt-copy-$(date +%s).txt"
cat > "$tmpfile" << 'EOF'
<content here>
EOF
3. Copy to clipboard and remove temp file:
if [[ "$OSTYPE" == "darwin"* ]]; then
pbcopy < "$tmpfile"
elif command -v xclip &> /dev/null; then
xclip -selection clipboard < "$tmpfile"
elif command -v xsel &> /dev/null; then
xsel --clipboard --input < "$tmpfile"
else
echo "No clipboard tool found" >&2
fi
rm -f "$tmpfile"4. Confirm to user: "Copied to clipboard (N characters)"
Notes
- Use `cat` with heredoc and single-quoted EOF to preserve exact content
- Temp file uses timestamp to avoid collisions across invocations
- Temp file is removed after clipboard copy
Read more
name: txt-copy description: Copy generated text content to clipboard. Use when user asks to "copy this", "copy to clipboard", "save to clipboard", or after creating emails, messages, letters, or other text content that needs to be shared. allowed-tools: Bash
Copy Text to Clipboard
Copy generated text content to clipboard via a timestamped temp file.
Activation Triggers
- "copy this", "copy to clipboard", "save to clipboard"
- "copy the email", "copy the message", "copy the letter"
- After generating text content when user indicates they want to use it
- "I need to paste this", "put it in clipboard"
Workflow
1. Identify the text content to copy (from recent generation or user-specified)
2. Write to timestamped temp file:
tmpfile="/tmp/claude-txt-copy-$(date +%s).txt" cat > "$tmpfile" << 'EOF' <content here> EOF
3. Copy to clipboard and remove temp file:
if [[ "$OSTYPE" == "darwin"* ]]; then
pbcopy < "$tmpfile"
elif command -v xclip &> /dev/null; then
xclip -selection clipboard < "$tmpfile"
elif command -v xsel &> /dev/null; then
xsel --clipboard --input < "$tmpfile"
else
echo "No clipboard tool found" >&2
fi
rm -f "$tmpfile"4. Confirm to user: "Copied to clipboard (N characters)"
Notes
- Use `cat` with heredoc and single-quoted EOF to preserve exact content
- Temp file uses timestamp to avoid collisions across invocations
- Temp file is removed after clipboard copy
Things to make Claude Code even better — hooks, skills, and commands, organized as a marketplace of independent plugins. This is an unapologetically opinionated set.
Other skills on cc-thingz.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about txt-copy.
- Which coding agents can use txt-copy?
- txt-copy installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

