agentleFS
LaansDoleLaansDole/my-hermes-skills/skills/productivity/pbcopy-word-delivery/SKILL.md

pbcopy-word-delivery

Skill2 starsChanged 4 months agoMITView on GitHub

Deliver structured text content (verdicts, reports, summaries) directly to the macOS clipboard via pbcopy so the user can Cmd+V into Word without Warp terminal soft-wrap artifacts.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    ALL CAPS for section headers (e.g.

    line 18
  2. Distinctive:

    No hard line breaks mid-sentence - let Word wrap naturally

    line 20
  3. Distinctive:

    Use a plain hyphen (-) for bullet points if needed

    line 21
  4. Distinctive:

    Use printf '%s' (not echo) to avoid echo adding a trailing newline or interpreting escape sequences differently across shells.

    line 29
  5. Distinctive:

    Use the heredoc pattern when the content contains single quotes, since printf '%s' '...' cannot contain unescaped single quotes.

    line 40
  6. Distinctive:

    Check if the content contains single quotes.

    line 44
  7. Distinctive:

    Run the terminal command. Confirm with "Copied to clipboard." output.

    line 45
  8. Distinctive:

    Do NOT also print the content to the terminal - the whole point is to avoid Warp rendering it.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

pbcopy Word Delivery

When to use

Any time the user wants to paste structured content into Word (or any rich text app) and is using Warp terminal, where terminal column-width soft-wraps become hard newlines in the clipboard. Pipe content directly to pbcopy instead of printing it.

Format rules (inside the piped content)

  • Plain text only - no markdown symbols (no **, ##, ---, backticks, *, _)
  • ALL CAPS for section headers (e.g. VERDICT, POPULATION - PASS)
  • Single blank line between sections
  • No hard line breaks mid-sentence - let Word wrap naturally
  • Use a plain hyphen (-) for bullet points if needed

Command pattern

printf '%s' "YOUR CONTENT HERE" | pbcopy && echo "Copied to clipboard."

Use printf '%s' (not echo) to avoid echo adding a trailing newline or interpreting escape sequences differently across shells.

For multi-line content with special characters (quotes, backslashes), write to a temp file first then pipe:

cat > /tmp/hermes_clip.txt << 'EOF'
YOUR CONTENT HERE
EOF
pbcopy < /tmp/hermes_clip.txt && echo "Copied to clipboard." && rm /tmp/hermes_clip.txt

Use the heredoc pattern when the content contains single quotes, since printf '%s' '...' cannot contain unescaped single quotes.

Steps

  1. Compose the full content as plain text following the format rules above.
  2. Check if the content contains single quotes. If yes, use the heredoc pattern. If no, use printf '%s'.
  3. Run the terminal command. Confirm with "Copied to clipboard." output.
  4. Tell the user: content is in clipboard, ready for Cmd+V into Word.

Pitfalls

  • Single quotes inside printf '%s' '...' will break the shell quoting - use heredoc instead.
  • echo adds a trailing newline and may interpret \n, \t on some shells - prefer printf.
  • This is macOS-only (pbcopy). On Linux the equivalent is xclip -selection clipboard or xdotool.
  • Do NOT also print the content to the terminal - the whole point is to avoid Warp rendering it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.