I’m a visual learner. When I join a new codebase or try to understand a complex flow, I need a diagram. Reading files one by one doesn’t give me the mental model I need—I need to see the connections.
That’s why Amp’s Shareable Walkthroughs caught my attention. The idea is simple: ask your AI coding tool to explain a feature, and it generates an interactive diagram where you can click through nodes to drill into the details.
I couldn’t find the source code for Amp’s implementation. So I built my own.
What It Does
You ask your agent something like “walkthrough how does authentication work” and it:
- Spawns 2–4 subagents to explore relevant parts of your codebase in parallel
- Synthesizes findings into 5–12 key concepts with connections
- Generates a self-contained HTML file with an interactive Mermaid diagram
- Opens it in your browser
Each node in the diagram is clickable. Click one and a detail panel slides in with a plain-English description, file paths, and optional code snippets. The whole thing is designed to give you a mental model in under two minutes.
Here’s a live example—this walkthrough explains how the skill itself works. Click on any node to see the details:
How the Skill Works
The walkthrough above shows the full pipeline. Let me walk through the four phases.
Phase 1: Trigger
Everything starts with a natural-language prompt. When you type something like “walkthrough how does auth work”, your agent matches the trigger pattern in the skill definition and activates the walkthrough workflow.
Phase 2: Skill Configuration
The skill consists of two files:
skill.md defines the four-step workflow: scope the question, launch subagents, synthesize findings, generate HTML. It also includes a quality checklist—things like keeping diagrams to 5–12 nodes and writing descriptions in plain English.
html-patterns.md is the complete reference for the generated output: React components, Mermaid configuration, the color palette, pan/zoom implementation, and Shiki syntax highlighting setup. The agent reads this file and follows the patterns when generating the HTML.
Phase 3: Exploration
This is where it gets interesting. Instead of having one agent read through your entire codebase, the skill uses subagents to parallelize the exploration:
- Scope understanding — The main agent clarifies what you’re asking about and identifies which areas of the codebase are relevant
- Parallel subagents — 2–4 Explore subagents investigate specific regions concurrently, each returning a structured report with purpose, connections, node suggestions, file paths, and key code snippets
- Synthesis — The main agent combines all reports into a single list of nodes, edges, and subgroup groupings
The subagents do the reading. The main agent does the thinking. This keeps the output coherent while making exploration fast.
Phase 4: Generation
With the synthesized data, the agent picks the right diagram type—flowchart for feature flows and architecture, ER diagram for database schemas—and generates a self-contained HTML file. No build step, no dependencies to install. It loads everything from CDNs:
- React 18 for the interactive UI
- Mermaid 11 for diagram rendering
- Tailwind CSS for styling
- Shiki for syntax highlighting in code snippets
The design is dark-only with a pure black background and purple accents. Every diagram node is clickable via Mermaid’s callback system, and there’s scroll-to-zoom and drag-to-pan for larger diagrams. The file opens directly in your browser.
And here’s what happens when I ask the skill to onboard me on this very blog’s codebase:
walkthrough help me to onboard on this project
Five content collections, a presentation engine, educational visualizers, OG image generation—all mapped out in one interactive diagram. Click any node to see what it does and where it lives.
Example Prompts
Here are some ways I use it:
walkthrough how does the presentation mode work
walkthrough explain the authentication flow when a user signs up
walkthrough database schema for the content management system, use an ER diagram
Why I Built This
I’ve written about using AI for diagrams How to Use AI for Effective Diagram Creation: A Guide to ChatGPT and Mermaid Learn how to leverage ChatGPT and Mermaid to create effective diagrams for technical documentation and communication. before. The pattern is always the same—I need to see the system before I can reason about it.
Existing tools either require you to manually write diagram code or generate static images. What I wanted was something interactive where I could start at the high level and drill down only into the parts that matter.
The walkthrough skill fills that gap. It’s the onboarding tool I wish every codebase had.
Conclusion
- Skills are a standard—this works with Claude Code, Amp, and any agent that supports them
- Subagents make codebase exploration fast by parallelizing reads
- Self-contained HTML with CDN dependencies means zero setup for viewers
- The skill is open source at github.com/alexanderop/walkthrough
If you’re a visual thinker like me, give it a try. Ask it to explain something in your codebase and see what comes out.