untanglelisted
Install: claude install-skill xPribluda/claude-code-untangle
# Untangle this chat
Splits the chat you are in into one new session per topic. The original chat is never changed.
## 1. Read the chat
Run, with SKILL_DIR set to the base directory of this skill (shown when the skill loads; it holds this file and the `untangle/` Python folder) and a file path in your scratchpad directory (or a temp folder) for OUT:
```bash
PYTHONPATH="SKILL_DIR" python3 -m untangle dump --out "OUT"
```
It needs Python 3.9 or later and nothing else.
It reads this session (from CLAUDE_CODE_SESSION_ID) and writes a numbered transcript: `[n] USER/ASSISTANT time`, then the text, then a one-line list of tools used. If the user named another session id, pass it as the first argument after `dump`. Read OUT in full (in parts if it is long). Ignore the /untangle request itself and anything after it.
## 2. Find the topics
- A topic is one piece of work or one question thread the user would want to continue on its own. Usually 2 to 6 topics. Small one-off asks that are finished go under "Done, no new chat".
- Topics can be interleaved: group messages by topic, not by position.
- A message that serves several topics (shared background, a decision that affects both) goes into each one.
- Use only what is in the transcript. Do not add facts, and do not guess at what a cut-off message said.
## 3. Show the preview and wait
Show a short table: topic number, title (under 60 characters), message numbers, and a 3 to 5 sentence brief (where it stands, what is decided, w