Skip to main content

decompose-agent-transcript-into-transcript-segments

Stars2
Forks0
UpdatedMay 29, 2026 at 01:58

Given the tmp folder produced by get-claude-code-transcript-from-local (containing transcript.json โ€” an OpenTranscripts Transcript document), decompose the transcript into a recursive tree of Transcript Segments (see the transcript-segment reference). Each Segment carries a Trigger (kind: New | Correction ร— source: user | agent | subagent), a Goal (Plan | Action), an Outcome (Success | Failure), child sub-segments, and a meta block (event range, wall-clock, tokens, model). Emits segments.json (structured) and flamegraph.html (annotated). All phase-3 analyzers read segments.json โ€” they never walk transcript.json events directly. Use this skill immediately after acquisition and before any analyze-* skill.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
2 files
SKILL.md
readonly