Home
cd ../playbooks
ProductivityBeginner

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.

5 minutes
By daymadeSource
#claude-code#export#formatting#cleanup#text

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.

Or install from your terminal:
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.txt

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

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.

$Related Playbooks

Productivity

Chief of Staff Check-In

Run a structured 10-15 minute interactive session combining inbox triage, reminder management, meeting prep, email drafting, and priority alignment.

20 minutes
Advanced
Productivity

Claude Code Custom Personalities for Non-Coding Tasks

Use Claude Code for non-coding tasks by creating custom personalities. Turn each project folder into a different assistant — writing editor, media manager, notes organizer, and more.

10 minutes
Intermediate
Productivity

Decision Matrix

Stop going in circles — define criteria, weight importance, score options, and let the math reveal what your gut already knows.

5 minutes
Beginner
Productivity

Credential Switch

Switch brand credentials.

15 minutes
Intermediate
Productivity

Data Export

Export marketing data.

15 minutes
Intermediate
Productivity

Data Import

Import data from external sources.

15 minutes
Intermediate
Productivity

Enterprise Search Aggregator

Search across all connected sources with a single unified query

10 minutes
Intermediate
Productivity

Daily Morning Briefing

Generate a comprehensive daily briefing consolidating your calendar, email inbox, tasks, weather, and meeting context into one unified view.

15 minutes
Intermediate
Productivity

DIY Project Planner — Materials Lists, Costs & Build Instructions

Plan any home improvement project with AI-generated materials lists, itemized cost estimates, tool checklists, and step-by-step build instructions. From shelves to decks to full renovations.

10 minutes
Intermediate
Productivity

Email Thread Data Extractor

Extract dates, action items, decisions, and commitments from email threads into structured formats.

10 minutes
Intermediate
Productivity

Event Ticket Booking Assistant

Plan events by reviewing calendars, researching venues, comparing prices, and recommending optimal dates.

5 minutes
Beginner
Productivity

Executive Chief of Staff

AI-powered executive assistant that unifies inboxes, manages multiplayer todo lists, enriches contacts, and keeps you aligned with key goals.

30 minutes
Advanced

Browse all Productivity playbooks →