Claude Export Fixer
Fix broken line-wrapping in Claude Code exported conversation files — reconstruct tables, paragraphs, paths, and tool calls that were hard-wrapped at fixed column widths, with an automated validation suite.
Exporting a Claude Code conversation to .txt shreds your tables and splits file paths mid-line. This playbook reconstructs the original formatting so the export is actually readable.
Who it's for: Claude Code users, developers, note-keepers
Example
"Fix the broken formatting in this exported conversation" → A clean version with tables, paragraphs, and paths reconstructed and validated
CLAUDE.md Template
New here? 3-minute setup guide → | Already set up? Copy the template below.
npx ccplaybooks add claude-export-txt-better# Fixing Claude Code Export Conversations
Reconstruct broken line wrapping in Claude Code exported `.txt` files.
## Quick Start
```bash
# Fix and show stats
uv run <skill-path>/scripts/fix-claude-export.py <export.txt> --stats
# Custom output
uv run <skill-path>/scripts/fix-claude-export.py <export.txt> -o fixed.txtGet new playbooks like this one
One email a week with new Claude Code workflows. Free, like everything here.
No spam. Unsubscribe anytime.
What This Does
Fix broken line-wrapping in Claude Code exported conversation files — reconstruct tables, paragraphs, paths, and tool calls that were hard-wrapped at fixed column widths, with an automated validation suite.
What's Inside
The template covers:
- Workflow
- What Gets Fixed
- Key Design Decisions
- Safety
- Dependencies
Quick Start
Step 1: Create a Project Folder
Make a dedicated folder for this workflow and open it in Claude Code.
Step 2: Download the Template
Click Download above to save the template, then drop it into your project as CLAUDE.md (or paste it into your existing one).
Step 3: Start Working
Tell Claude what you need in plain language — it will follow the template's workflow automatically. For example:
Fix the broken formatting in this exported conversation
Claude reads the template and runs the steps for you.