Clipboard Copy
Workflow
Use this skill when the user explicitly wants clipboard output.
- •Identify the source to copy.
- •If the user provides a file path, copy that file.
- •If no path is provided, default to
sections/02_1_overview.texwhen it exists in the current workspace. - •If the user wants generated text copied, pass the text through stdin.
- •Run the bundled script.
- •File copy:
scripts/copy_to_clipboard.sh <path> - •Default file copy:
scripts/copy_to_clipboard.sh - •Text copy via stdin:
printf '%s' "<text>" | scripts/copy_to_clipboard.sh -
- •Confirm the result.
- •Report exactly what was copied.
- •If copying fails, report the reason (
pbcopyunavailable, file missing, or permission issue).
Notes
- •This skill is macOS-specific and requires
pbcopy. - •In sandboxed sessions, clipboard access may require escalated permissions.