← ClaudeAtlas

clean-copylisted

Cleans terminal-formatted text and copies it to the macOS clipboard via pbcopy, formatted for the target platform (Gmail, Slack, LinkedIn, plain, markdown). Strips uniform leading indentation, trailing whitespace, and soft-wrapped paragraphs that come from copying out of a terminal, then applies platform conventions (Slack `*bold*` vs Gmail plain prose, etc.). Use when the user wants to paste a draft from the chat into Gmail, Slack, LinkedIn, or any other tool without nightmare terminal formatting (extra whitespace, hard wraps, indented blocks) coming along.
mostafa-drz/claude-skills · ★ 4 · AI & Automation · score 76
Install: claude install-skill mostafa-drz/claude-skills
# Clean Copy Clean a draft from the conversation (or a pasted/file source) and copy it to the clipboard, formatted for a specific platform. The goal: a paste that looks right in Gmail / Slack / LinkedIn on the first try, with zero manual cleanup. ## Preferences Before starting, use the `Read` tool to read `~/.claude/skills/clean-copy/preferences.md`. If the file does not exist, treat as "no preferences set" and use defaults below. **Defaults:** - default-platform: `gmail` - default-source: `last` (most recent assistant draft in the conversation) - reflow-paragraphs: `true` (rewrap soft-wrapped paragraphs into single lines) - bullet-style: `-` (preserve as-is) - preview-after-copy: `true` (show first 12 lines + char count) ## Command routing Check `$ARGUMENTS`: - **`help`** → display help, stop - **`config`** → interactive setup, stop - **`reset`** → delete `~/.claude/skills/clean-copy/preferences.md`, confirm, stop - **anything else** (including empty) → run the skill ### Help ``` Clean Copy — Clean terminal-formatted text and copy to clipboard for a target platform Usage: /clean-copy <platform> Clean latest draft, format, pbcopy /clean-copy Use default platform from preferences /clean-copy config Set defaults (default platform, reflow, etc.) /clean-copy reset Clear preferences /clean-copy help This help Platforms: gmail Plain prose, bullets as "- ", no markdown rend