Claude Code Export Conversation Fixer
Repairs hard-wrapped Claude Code .txt exports by rebuilding tables, paragraphs, paths and tool output.
What it does
Claude Code exports (YYYY-MM-DD-HHMMSS-*.txt) are hard-wrapped at a fixed column width, which shatters table borders, splits file paths mid-token and chops paragraphs into fragments. This skill runs bundled Python scripts to:
- Rejoin 10 content types — user prompts (
❯), Claude responses (●), tool results (⎿), plan text, agent trees - Rebuild box-drawing table borders and re-pad cells with pipe-count tracking
- Apply pangu spacing between Latin characters and CJK ideographs
- Reconnect broken identifiers and paths (
BASE_+URL,documents+/05-team) - Run a 53-check validation suite comparing input and output
The original file is never modified; marker counts are verified and runaway joins over 500 display columns raise a warning.
Who it's for
- Anyone archiving or sharing Claude Code session logs with a team
- Writers turning exported sessions into blog posts, retros or technical docs
- Heavy users of long sessions packed with tables and tool output
Examples
- Ask "make this exported conversation readable" — the script runs with
--stats, reporting ~20-25% fewer lines and 80+ table borders repaired. - Run the validation suite on the before/after pair; investigate any failing check before handing the file over.
- On mixed English/CJK logs,
Portal都需要is corrected toPortal 都需要for readability.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/daymade/claude-code-skills/HEAD/daymade-claude-code/claude-export-txt-better/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
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/daymade-skills && mkdir -p ~/.claude/skills && cp -r /tmp/daymade-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.
- Open a terminal and confirm Python 3.10+ and
uvare available (uv --version; install withcurl -LsSf https://astral.sh/uv/install.sh | shif missing). - Clone the repository:
git clone https://github.com/daymade/claude-code-skills.git /tmp/daymade-skills - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r /tmp/daymade-skills/daymade-claude-code/claude-export-txt-better ~/.claude/skills/fixing-claude-export-conversations - Verify:
ls ~/.claude/skills/fixing-claude-export-conversations/scriptsshould listfix-claude-export.py. - Restart Claude Code, then say "fix the formatting of this exported conversation" to trigger the skill.