原始内容
Walkthrough Skill
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.
What it does
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

Usage
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
Examples
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?
Installation
Quick install
npx skills add https://github.com/alexanderop/walkthrough --skill walkthrough
Manual install
Copy the skills/walkthrough/ directory into your project's .claude/skills/ folder:
your-project/
.claude/
skills/
walkthrough/
skill.md
references/
html-patterns.md
Structure
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.
Tech stack (generated files)
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.
Testing
The evals/ directory contains an eval harness that runs the skill against a set of test prompts and grades the output.
Prerequisites
claudeCLI installed and authenticated- Node.js >= 18
Running evals
# 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 opus
You can also set defaults via environment variables:
EVAL_MODEL=opus EVAL_MAX_BUDGET=3.00 bash evals/run.sh
How it works
Each 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.
Test prompts
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