Copies generated text to system clipboard via Bash temp file using pbcopy (macOS), xclip, or xsel (Linux). Auto-activates on 'copy this' or manual /txt-copy invocation.
From workflownpx claudepluginhub umputun/cc-thingz --plugin workflowThis skill is limited to using the following tools:
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Guides idea refinement into designs: explores context, asks questions one-by-one, proposes approaches, presents sections for approval, writes/review specs before coding.
Copy generated text content to clipboard via a timestamped temp file.
Identify the text content to copy (from recent generation or user-specified)
Write to timestamped temp file:
tmpfile="/tmp/claude-txt-copy-$(date +%s).txt"
cat > "$tmpfile" << 'EOF'
<content here>
EOF
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"
cat with heredoc and single-quoted EOF to preserve exact content