Skip to content
daymade avatar

Fixing Claude Export Conversations

Repairs hard-wrapped Claude Code export files by rebuilding tables, paragraphs, paths, and tool calls with stdlib-only Python.

CCM score
72 of 100
skills.sh installs
846
GitHub stars
1.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers reconstruction of 10 content types, including user prompts, Claude responses, tables, tool calls, tool results, and agent trees
  • Includes fix-claude-export.py with --stats output and validate-claude-export-fix.py, a file-agnostic suite of PASS/FAIL checks
  • Enforces marker-count verification, runaway-line detection above 500 display-width, and never modifies the original file
  • Designed for exported YYYY-MM-DD-HHMMSS-*.txt files with broken tables or split paths, not live web conversations or session history

Install

$ npx -y skills add daymade/claude-code-skills --skill fixing-claude-export-conversations -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Fixing Claude Code Export Conversations

Reconstruct broken line wrapping in Claude Code exported .txt files.

Quick Start

# 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

# Validate the result (per-check PASS/FAIL with evidence; all must pass)
uv run <skill-path>/scripts/validate-claude-export-fix.py <export.txt> fixed.txt

Replace <skill-path> with the resolved path to this skill's directory. Find it with:

find ~/.claude -path "*/fixing-claude-export-conversations/scripts" -type d 2>/dev/null

Workflow

Copy this checklist and track progress:

- [ ] Step 1: Locate the exported .txt file
- [ ] Step 2: Run fix script with --stats
- [ ] Step 3: Run validation suite
- [ ] Step 4: Spot-check output (tables, CJK paragraphs, tool results)
- [ ] Step 5: Deliver fixed file to user

Step 1: Locate the file. Claude Code exports use the naming pattern YYYY-MM-DD-HHMMSS-<slug>.txt.

Details

Repository
github.com/daymade/claude-code-skills
Categories
CLI & Terminal, Python
First seen
Jun 3, 2026

Questions

What does the fixing-claude-export-conversations skill do?

It repairs broken line wrapping in Claude Code exported .txt conversation files, rebuilding tables, paragraphs, paths and tool calls that were hard-wrapped at a fixed width. It also includes an automated validation suite that checks the fixed output file-agnostically.

How do I install the fixing-claude-export-conversations skill?

Run npx -y skills add daymade/claude-code-skills --skill fixing-claude-export-conversations -y in a project. Once installed, the agent can fix a Claude Code export named like YYYY-MM-DD-HHMMSS-*.txt when you ask it to fix an export or make it readable.

Where does this skill rank in the CLI & Terminal category?

On the CLI & Terminal category page it ranks in the top 100. It is a good fit for anyone cleaning up exported conversation text in the terminal, and it works without external packages since it runs on Python 3.10+ with uv.

Does the fixing-claude-export-conversations skill work on live web conversations?

No, it is only for exported .txt files from Claude Code. For a live web conversation, the skill points you to read-claude-web-conversation instead, and for session history it points to read-claude-code-history.

More from daymade/claude-code-skills

All 50

Similar to Fixing Claude Export Conversations

More CLI & Terminal