Challenge
- Real session logs are long and buried in tool output, so it is hard to see what was decided and how
- Pasting Claude's replies in full is bloated, while over-summarizing loses the most valuable thing to teach: what real prompts look like
Approach
- Three stages: scripts do extraction and page rendering, and Claude handles only the editorial step in between
- User messages stay verbatim, typos included; Claude's side is written only as summaries of its judgments, and any choice that overrides the recommendation is always marked
Outcome
- A single HTML file that opens offline, with four tabs: the evolution, the forks, the key judgments and the final pipeline
- Learners can follow at their own pace how a small request grew, one feature at a time, into a pipeline
The hardest thing to convey about working with AI agents is not the finished product but how decisions were made along the way. The author wanted a way to show real Claude Code sessions as course material.
This skill mechanically pulls the messages and choices out of a session transcript, has Claude edit them into something worth teaching, and lets a script render a single-file page. Tabs for empty sections are hidden automatically.
Key points
Never change the human's words. User messages appear as typed, typos and all; only overly long passages are trimmed with an ellipsis. What real prompts look like is exactly what learners want to see.
Keep only the judgment from the AI. Claude's replies are never pasted; logs are removed and only a summary of what it judged and why remains. Two to four moments where the judgment stood out (untangling concepts, reworking a plan, catching its own mistake in an audit) get a short write-up.
Reproduce every fork. Each AskUserQuestion becomes a card with all options, the recommended one, the actual choice and any free-text answer. When the choice differs from the recommendation it is flagged in red as an override, with one line on what to take away from it.