Copy — Clipboard Skill
When invoked, identify the most recent substantive content from the conversation (email draft, code block, config snippet, command, etc.) and pipe it to pbcopy.
Rules
- Identify the last meaningful output — prefer the most recent draft, code fence, or structured content the user would want on their clipboard.
- Use
printf '%s' '...' | pbcopyto avoid trailing newlines from echo. - Escape single quotes in content with
'''. - Confirm with a one-liner: "Copied to clipboard."
- If ambiguous what to copy, ask the user.
Platform
- macOS:
pbcopy - Linux:
xclip -selection clipboard(fallback)