Claude Code Export Conversation Fixer
Repairs hard-wrapped Claude Code `.txt` conversation exports, rebuilding tables, paragraphs, paths, and tool output.
What it does
Claude Code .txt exports are hard-wrapped at a fixed column width (~76), which shatters table borders, splits file paths across lines, and fragments paragraphs. This skill runs a state machine with next-line look-ahead — asking "does the following line look like a continuation?" instead of guessing at width thresholds — across 10 content types: user prompts (❯), Claude responses (●), tool results (⎿), tables, plan text, agent trees, separators, and tree connectors.
It also applies pangu spacing for mixed CJK/ASCII text (Portal 都需要) and joins mid-token breaks without a space when they look like identifiers (BASE_ + URL), paths, or hyphenated names. The original file is never modified, and results are verified by marker-count matching, runaway-join detection, and a 53-check validation script.
Who it's for
- Anyone publishing Claude Code session logs to a wiki or docs site
- Writers turning exported sessions into blog posts or postmortems
- Engineers re-reading table- and tool-output-heavy sessions
- Teams working with mixed CJK/English conversation logs
Examples
- Clean up an export: hand it
2025-03-14-101500-refactor-api.txtand say "fix this export" — you get a repaired file plus stats such as 20–25% line reduction and 80+ table borders restored. - Verify quality: run the validation suite so all 53 checks pass, and investigate any failures before shipping the file.
- Docs pipeline: process several session logs in sequence and paste them into internal documentation with tables, diffs, and tool output intact.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the daymade-claude-code/claude-export-txt-better folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/fixing-claude-export-conversations/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/daymade/claude-code-skills.git /tmp/claude-code-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-skills/daymade-claude-code/claude-export-txt-better ~/.claude/skills/fixing-claude-export-conversations⚠ This is a third-party skill. Check the source repository before installing.
- Make sure Python 3.10+ and
uvare installed. If not:curl -LsSf https://astral.sh/uv/install.sh | sh. - Clone the repository:
git clone https://github.com/daymade/claude-code-skills.git - Copy the skill into place:
mkdir -p ~/.claude/skills && cp -r claude-code-skills/daymade-claude-code/claude-export-txt-better ~/.claude/skills/fixing-claude-export-conversations - Restart Claude Code and confirm
fixing-claude-export-conversationsappears in your skill list. - Ask something like "fix the formatting of this exported conversation" and include the path to your
.txtfile. - Open the output and spot-check table borders and tool result blocks. Your original file is left untouched.