/code-slowmo:code-slowmofrom code-slowmo
Generates an interactive HTML page that explains code visually with a system map, step-by-step timeline, and live line-by-line execution. Use when someone asks "how does X work", "walk me through this flow", or "I'm new to this repo".
Ships in code-slowmo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Code is easier to understand when you can watch it run slowly. This skill turns a question about code into one interactive HTML page. The page works at up to three zoom levels, written for someone who has never opened the code:
You write the content as a JSON data file. scripts/build.py checks the data and the writing, then turns it into the page. You never hand-write the page's HTML or JavaScript.
Readers come to this skill because a long technical explanation lost them. If the page reads like jargon, it has failed, however good the pictures are. Read references/writing.md before you write any text for a page, every time. The short version:
LinePlaceholder. Show the code name once, as a secondary label.<code> term in the text needs a plain explanation in terms, which readers see when they hover the term.The build stops on writing errors, such as overlong steps, unexplained code names or filler words. Treat warnings as errors unless you have a real reason not to.
One page answers one question, for example "What happens between dropping a block and seeing it on the page?". If the request is broad ("explain this repo"), start with a map page and offer the deeper pages afterwards. Ask the user only when two very different questions are equally likely.
Everything on the page must be true of this codebase at this version.
file:line for each claim.subject).<span class="example">example</span>.For a large codebase, use search tools or sub-agents to map it. The page itself shows only the 5 to 12 parts the question needs.
| The reader asks… | Use |
|---|---|
| What are the parts, and how do they connect? | map (with a tour that follows one action) |
| What happens, in what order, when I do X? | flow |
| What exactly does this function do? | trace |
| What's the difference between two approaches? | compare |
| What do these words mean? | glossary (put it first if the page uses 3 or more new terms) |
| Something no section type covers, like a figure you can drag | custom |
A strong page usually goes glossary → map → flow → trace, zooming in on one action. Shorter is fine: a trace alone can answer "what does this function do?". See references/choosing-pictures.md for more on choosing and on planning a series of pages.
Write <slug>.json following references/page-format.md. assets/examples/puck-drop.json is a complete working example; copy its shape. Rules that matter most:
question, takeaway and one plain say per step are required.ask) at a key moment, such as just before the surprising line.screen (a small HTML mock of what the user would see) and state (the data that matters) whenever they help. The page carries both forward to later steps and turns changed values yellow on its own.vars to the values a reader needs. Show values the way a person would read them, like [Hero-1, Text-2].files straight from the source files so it stays exact. Keep the script outside the output folder.python3 <skill-dir>/scripts/build.py <slug>.json <slug>.html
Fix every ERROR. Read every WARN and fix it unless you have a clear reason not to. To check the writing alone, run scripts/check_text.py <slug>.json.
Open the page if you can, or reread the JSON. For each step, check:
Then check that the steps tell one continuous story, with no jumps.
explainers/ folder at the project root, unless the user names another place. Keep the JSON next to the HTML so the page can be edited and rebuilt. Open the page in the browser if you can (open on macOS, xdg-open on Linux, start on Windows).custom figure.custom section.scripts/build.py: validates the page data and builds the HTML.scripts/check_text.py: the plain-writing checker that the build runs.assets/template.html: the page engine. Don't edit it per page.assets/examples/puck-drop.json: a full example covering how a drag-and-drop editor commits a drop.assets/examples/puck-drop.json (opens in a new tab)assets/template.html (opens in a new tab)references/choosing-pictures.md (opens in a new tab)references/design-principles.md (opens in a new tab)references/page-format.md (opens in a new tab)references/writing.md (opens in a new tab)scripts/build.py (opens in a new tab)scripts/check_text.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub precious112/code-slowmo --plugin code-slowmoOther plugins' skills for the same job