fixing-claude-export-conversations

Repair broken line-wrapping in Claude Code .txt export files.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/HuuBar/skill-routing-experiment --skill fixing-claude-export-conversations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fixing-claude-export-conversations
Source: https://github.com/HuuBar/skill-routing-experiment/tree/main/unified_skills/daymade/claude-export-txt-better
Command: npx skills add https://github.com/HuuBar/skill-routing-experiment --skill fixing-claude-export-conversations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Fixes broken line wrapping in Claude Code exported conversation files (.txt), reconstructing tables, paragraphs, paths, and tool calls that were hard-wrapped at fixed column widths. Includes an automated validation suite (generic, file-agnostic checks). Triggers when the user has a Claude Code export file with broken formatting, mentions "fix export", "fix conversation", "exported conversation", "make export readable", references a file matching YYYY-MM-DD-HHMMSS-*.txt, or has a .txt file with broken tables, split paths, or mangled tool output from Claude Code.

Core Features & Use Cases

  • Reconstructs wrapped content in Claude Code exports, including tables, paragraphs and tool outputs.
  • Validates results with a deterministic, file-agnostic test suite and outputs a summary report.
  • Works across common export scenarios and enforces non-destructive, idempotent changes.

Quick Start

Run the fix script on an exported Claude Code .txt file to repair line-wrapping and generate a report.

Frequently Asked Questions about fixing-claude-export-conversations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix broken line wrapping in exported Claude Code conversations?

To fix broken line wrapping in exported Claude Code conversations, run a script that applies deterministic joining heuristics to reconstruct mangled tables, paragraphs, and paths. The process repairs hard-wrapped text and generates a validation report.

What causes mangled tables and split paths in Claude Code .txt exports?

Mangled tables and split paths in Claude Code .txt exports are caused by hard-wrapping text at fixed column widths during the export process. This breaks continuous content into disconnected fragments, making tool outputs and paragraphs difficult to read.

Can I repair formatting in Claude Code exports without altering the original file?

Yes, you can repair formatting in Claude Code exports without altering the original file. The reconstruction process enforces non-destructive, idempotent changes, ensuring your source .txt export remains safe while generating a fixed version.

Does the export repair script work with any .txt file or only Claude Code exports?

The repair script works specifically with Claude Code export files, typically matching the YYYY-MM-DD-HHMMSS-*.txt naming convention. It targets wrapped tool outputs and tables from Claude Code, using deterministic heuristics rather than generic text unwrapping.

How does the validation suite verify that reconstructed conversation text is correct?

The validation suite verifies reconstructed conversation text using deterministic, file-agnostic checks that output a summary report. It tests whether wrapped content like tables and paragraphs has been successfully joined back into coherent text.