Claude Clipboard Cleaner — Development skill for Claude Code
Auto-clean trailing spaces from Claude Code clipboard copy.
How to install Claude Clipboard Cleaner
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open esc5221/claude-clipboard-cleaner and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Clipboard Cleaner does
Auto-clean trailing spaces from Claude Code clipboard copy.
Alternatives in Development
- Claude How To — by luongnv89 — Example-driven guide to mastering Claude Code through progressive tutorials with copy-paste tem 8.5k ★
- Last30days Skill — Claude Code skill that researches any topic across Reddit + X from the last 30 days, then writes copy-paste-re 4.4k ★
- Pi Reserved Keybindings — Extensions cannot override these shortcuts — they are silently skipped by registerShortcut() 526 ★
README
Claude Clipboard Cleaner
macOS MenuBar app that automatically cleans Claude Code terminal output when you copy it.
When you copy text from Claude Code's terminal, it comes with trailing space padding and leading 2-space indentation. This app detects that pattern and strips it automatically — so your paste is always clean.
Install
brew install --cask esc5221/tap/claude-clipboard-cleaner
Or download the DMG from [Releases](https://github.com/esc5221/claude-clipboard-cleaner/releases).
Usage
Launch the app — it sits in your menu bar as **⌘C**. That's it.
- Clipboard is monitored automatically (0.3s polling)
- Icon flashes ✓ when a clean happens
- Click the menu bar icon for Enable/Disable, Launch at Login, and clean count
How it works
**Two independent detection paths:**
- Trailing space padding — terminal copy pads lines to fixed width with spaces. If 50%+ of lines have ≥3 trailing spaces, it strips them.
- Leading 2-space pattern — Claude response text uses consistent 2-space indent. If 60%+ of lines match, it strips the indent.
Build from source
git clone https://github.com/esc5221/claude-clipboard-cleaner.git
cd claude-clipboard-cleaner
./build.sh
open "build/Claude Clipboard Cleaner.app"
Test
./test.sh
Requirements
- macOS 13.0+ (Ventura)
- Apple Silicon (arm64)
License
MIT
Related Skills
Ctthandoff
Generate a handoff summary, copy to clipboard, and speak via Tabz TTS
Prompt Engineer
Interactive Prompt Engineer - collaborative refinement with best practices and clipboard copy
Windows To Wsl2 Screenshots
Automate Windows screenshots for Claude Code workflows in WSL2. Take screenshots (Win+Shift+S, Win+PrintScreen
Copy Prompt
Copy a recently emitted fenced prompt to the OS clipboard
Handoff Context
Generate comprehensive context handoff and copy to clipboard for continuing work
Pbcopy
Copy the content of your most recent response (the assistant message immediately preceding this /pbcopy invoca
Related Agents
Data Cleaner
Loads the NYC HMC Violations static dataset, filters and validates it per the Phase 1 spec, and writes a clean
Applier 2
Generates copy-paste answers for job application forms based on pipeline research. Human-in-the-loop — never a
Post Critic
Red-teams a finished infographic for copy hooks, clean creative structure, verified identity assets, typograph