esc5221

Claude Clipboard Cleaner — Development skill for Claude Code

Development community

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.

Demo

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