building-walkthroughs
Skill82 starsChanged 5 months agoApache-2.0View on GitHub
Use when the user wants an algorithm, protocol, or procedure explained step by step — a render_gui WALKTHROUGH-mode page with Prev/Next navigation, per-step notes, and highlighted cell grids
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- building-compute-guisSkill
- making-diagramsSkill
- making-visualsSkill
The file
Files
Building Walkthroughs
Typical flow, two tool calls total: load the render_gui schema via
ToolSearch → write the spec → call the tool once. The tool description IS
the full grammar — trust it; this skill only adds walkthrough craft. A
success reply means done: do not read the output back or re-render.
Precompute every state once; the user steps through them locally. You are replacing a hand-written visualizer that would cost thousands of tokens with ~20 tokens per step.
Shape of a walkthrough page
- One intro
textsaying what the walkthrough shows. - One
stepsnode:bindholds the cursor,statesis the full precomputed trace, one object per discrete step. - One or more views reading the broadcast fields:
cellsfor arrays/grids, computedtextfor counters,plotwhen bars fit better.
[
{ "type": "text", "value": "Bubble sort — the highlighted pair is being compared." },
{ "bind": "k", "states": [
{ "arr": [5,3,8], "j": 0, "note": "Pass 1 — compare 5 & 3: out of order, swap." },
{ "arr": [3,5,8], "j": 1, "note": "Compare 5 & 8: already in order, keep." },
{ "arr": [3,5,8], "j": -2, "note": "Sorted — nothing left to swap." }
] },
{ "cells": "arr", "highlights": { "accent": "j", "purple": "j+1" } }
]Craft the schema doesn't spell out
- Compute the trace honestly — run the algorithm in your head (or on paper) step by step; a wrong intermediate state teaches the wrong thing.
- Narrate the decision in each
note("out of order, swap"), not the array contents. - Park highlights out of range on the final state (e.g.
"j": -2): out-of-range indices highlight nothing. - Highlight semantics:
accentfor the primary focus,purplefor its partner,greenfor settled/done,orangefor warnings/pivots. - 5–30 steps is the sweet spot. Below that, a static diagram may serve better; far above it, summarize phases instead of every micro-step.
- Without MCP registered, render from the CLI:
node ${CLAUDE_PLUGIN_ROOT}/scripts/render-spec.js gui spec.json out.html
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

