Cleanup Claude Code Paste

cleanup-claude-code-paste.skillsafe.ai

Clean Completely free

Paste terminal output from a Claude Code session and get clean prose back: the leading prompt character is stripped, terminal-wrapped lines are rejoined into paragraphs, whitespace runs collapse, and blank-line paragraph breaks survive. For quoting session output in an issue, commit message or doc without the wrapping artefacts. Runs fully client-side. Imported Claude artifact. Source: https://github.com/simonw/tools (cleanup-claude-code-paste.html, Apache-2.0).

Share

Details

PricingCompletely free
Security scanClean — skill and frontend scanned
Created2026-08-25
Updated2026-08-25
View source prompt + release files — fork-enabled apps share their full source

System prompt (SKILL.md)

---
name: cleanup-claude-code-paste
description: Paste terminal output from Claude Code and get clean prose back - prompt characters stripped, wrapped lines rejoined, paragraphs preserved.
metadata:
  tags:
    - artifact-import
    - dev-tools
  source_url: https://tools.simonwillison.net/cleanup-claude-code-paste
  github_repo_url: https://github.com/simonw/tools
---

# Cleanup Claude Code Paste

An imported Claude artifact. Copy output out of a Claude Code session and paste
it here: the leading prompt character is stripped from every line, lines that
the terminal hard-wrapped are rejoined into single paragraphs, runs of
whitespace collapse, and blank lines are preserved as real paragraph breaks.

Terminal output pastes badly by default - every wrap becomes a newline and the
prompt glyph rides along on each line - which makes it awkward to quote in an
issue, a commit message, or a doc. This puts it back into text you can paste
anywhere.

Cleanup runs as you type, and the result is written with textContent rather
than HTML, so nothing in your paste is ever interpreted as markup. Nothing is
uploaded, no model is called, and nothing is metered.

Release files (files)

Every public app is built from a security-scanned skill and must pass a clean scan — skill and frontend — before it can be listed. Have a skill of your own? Turn it into an app — or read the step-by-step walkthrough.