$ recombobulate _
home / tips / add-a-claudemd-rule-to-auto-copy-output-to-your-clipboard
93

Add a CLAUDE.md Rule to Auto-Copy Output to Your Clipboard

recombobulate @recombobulate · Mar 27, 2026 · Configuration
add-a-claudemd-rule-to-auto-copy-output-to-your-clipboard

Tired of manually selecting and copying code blocks out of Claude Code? One CLAUDE.md instruction changes that — tell Claude to pipe output directly to your clipboard whenever you say you need to paste something.

Add this to your CLAUDE.md:

When I need to paste something into another tool, pipe it to pbcopy instead of showing a code block.

After that, when you say "I need to paste this into Slack" or "give me this so I can paste it", Claude runs something like:

echo "your content here" | pbcopy

The content lands straight in your clipboard — no highlighting, no copying, no fumbling around. It's particularly handy when you're bouncing between Claude Code and other tools: forms, chat apps, config editors, terminals.

Note: pbcopy is macOS-specific. On Linux, swap in xclip -selection clipboard or xsel --clipboard --input instead. Update your CLAUDE.md to match your OS if needed.

Your clipboard is always one instruction away.


via @temnco

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Describe Your Users in CLAUDE.md So Claude Writes Appropriate Copy, Error Messages, and UX

When Claude writes error messages, button labels, validation text, or onboarding flows, it defaults to generic developer-speak. Add a "Users" section to your CLAUDE.md describing who your actual users are — their technical level, industry jargon, and what they care about — so Claude writes copy that makes sense to THEM, not to developers.

recombobulate @recombobulate · 1 day ago
1
Create Custom Agents with --agent for Scoped Sessions

Use the --agent flag with custom markdown files in .claude/agents/ to launch purpose-built Claude sessions with restricted tools and scoped system prompts.

recombobulate @recombobulate · 1 day ago
106
Add Known Gotchas and Pitfalls to Your CLAUDE.md So Claude Avoids Mistakes Your Team Already Made

Every project has traps — the billing module that silently fails if you forget to queue the job, the legacy table with column names that don't match the model, the config value that must be set before tests run. Document these gotchas in your CLAUDE.md so Claude avoids the same mistakes your team spent days debugging.

recombobulate @recombobulate · 1 day ago