A skill that generates interactive HTML walkthroughs with clickable Mermaid diagrams — flowcharts and ER diagrams — to explain codebase features, flows, architecture, and database schemas.
Inspired by Amp's Shareable Walkthroughs.
Ask your agent to walk you through any part of your codebase and it produces a self-contained HTML file with:
- A clickable Mermaid diagram (flowchart or ER diagram) showing the key concepts and their connections
- A detail panel for each node with a plain-English description, file paths, and code snippets
- Pan and zoom — scroll to zoom, drag to pan, auto-fit on load
- Syntax highlighting via Shiki for every node's code snippet
- Dark mode — pure black background, white text, purple accents
The goal is fast onboarding: give a new developer a mental model of how something works in under 2 minutes. Not a code reference — a map.
Live demo — walkthrough of the walkthrough skill itself
Trigger the skill with prompts like:
walkthrough how does authentication work
explain this flow
walk me through the checkout process
how does X work
database schema
explain the tables
The agent will:
- Explore the relevant parts of your codebase using parallel subagents
- Synthesize findings into 5-12 key concepts and their connections
- Generate a single
walkthrough-{topic}.htmlfile in the project root - Open it in your browser
Feature flow:
Use the walkthrough skill and explain the process of what happens when a user submits a form.
Architecture overview:
Walk me through how the plugin system is organized.
Database schema (ER diagram):
Use the walkthrough skill and explain how the invites entity is stored in the database. Use an ER diagram.
Data flow:
How does state flow from the composable to the component?
npx skills add https://github.com/alexanderop/walkthrough --skill walkthroughCopy the skills/walkthrough/ directory into your project's .claude/skills/ folder:
your-project/
.claude/
skills/
walkthrough/
skill.md
references/
html-patterns.md
skills/walkthrough/
skill.md # Main skill definition
references/
html-patterns.md # HTML template, CSS, and JS patterns reference
- skill.md — The skill prompt that the agent follows. Defines the workflow: scope understanding, parallel codebase exploration, diagram type selection, and HTML generation.
- references/html-patterns.md — Complete reference for the generated HTML files: React component architecture, Mermaid config, Shiki setup, color palette, pan/zoom implementation, and all the patterns needed to produce a working walkthrough.
The output HTML files are fully self-contained with CDN dependencies:
- React 18 (UMD) — component rendering via
React.createElement() - Tailwind CSS (CDN) — utility-first styling
- Mermaid 11 — diagram rendering (flowcharts and ER diagrams)
- Shiki (ESM) — syntax highlighting with
vitesse-darktheme
No build step. Just open the HTML file in a browser.
The evals/ directory contains an eval harness that runs the skill against a set of test prompts and grades the output.
claudeCLI installed and authenticated- Node.js >= 18
# Run all 16 test prompts
bash evals/run.sh
# Run only the 4 critical prompts (faster feedback loop)
bash evals/run.sh --subset
# Run a single prompt by ID
bash evals/run.sh --id explicit-01
# Skip the LLM rubric grader (deterministic checks only)
bash evals/run.sh --skip-llm
# Use a specific model (default: sonnet)
bash evals/run.sh --model opusYou can also set defaults via environment variables:
EVAL_MODEL=opus EVAL_MAX_BUDGET=3.00 bash evals/run.shEach eval run:
- Copies the project into a temp directory with the skill installed
- Runs
claude -pwith each prompt fromevals/prompts.csv - Collects any generated
walkthrough-*.htmlfiles - Runs two graders:
- Deterministic (
graders/deterministic.mjs) — checks file existence, HTML structure, CDN deps, node count, diagram type - LLM rubric (
graders/llm-rubric.mjs) — uses Claude to score readability, descriptions, code snippets, and diagram accuracy againstgraders/rubric.md
- Deterministic (
- Generates a summary report in
evals/results/<timestamp>/summary.json
Results are saved to evals/results/ (gitignored). A latest symlink always points to the most recent run.
The prompts in evals/prompts.csv cover:
- Explicit triggers —
$walkthrough how does X work - Implicit triggers —
walk me through X,explain the flow - Diagram types — flowchart and ER diagram cases
- Negative cases — prompts that should not trigger the skill
- Edge cases — vague prompts, broad scope
