Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

Claude Code Export Conversation Fixer

Repairs hard-wrapped Claude Code `.txt` conversation exports, rebuilding tables, paragraphs, paths, and tool output.

UtilitiesBeginner1,323212AI score 7/10Last updated: Aug 8, 2026

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

  1. Clean up an export: hand it 2025-03-14-101500-refactor-api.txt and say "fix this export" — you get a repaired file plus stats such as 20–25% line reduction and 80+ table borders restored.
  2. Verify quality: run the validation suite so all 53 checks pass, and investigate any failures before shipping the file.
  3. 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Make sure Python 3.10+ and uv are installed. If not: curl -LsSf https://astral.sh/uv/install.sh | sh.
  2. Clone the repository: git clone https://github.com/daymade/claude-code-skills.git
  3. 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
  4. Restart Claude Code and confirm fixing-claude-export-conversations appears in your skill list.
  5. Ask something like "fix the formatting of this exported conversation" and include the path to your .txt file.
  6. Open the output and spot-check table borders and tool result blocks. Your original file is left untouched.