interactive-figure
/interactive-figure
Build a single-file interactive HTML figure for a study concept: a diagram the student can click, break, and watch respond, with a live readout of the quantity that changes. Use when the user wants an interactive diagram, a clickable explainer, a simulation for a concept, or says "figur interaktif", "buatkan simulasi", "diagram bisa diklik", "visualisasi konsep". Do NOT use for videos (that is html-video) or static thumbnails.
Assessment and security
- Files in this package
- 5
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Build a single-file interactive HTML figure for a study concept: a diagram the student can click, break, and watch respond, with a live readout of the quantity that changes. Use when the user wants an interactive diagram, a clickable explainer, a simulation for a concept, or says "figur interaktif", "buatkan simulasi", "diagram bisa diklik", "visualisasi konsep". Do NOT use for videos (that is html-video) or static thumbnails.
Triggers from the description
Original author description
Build a single-file interactive HTML figure for a study concept: a diagram the student can click, break, and watch respond, with a live readout of the quantity that changes. Use when the user wants an interactive diagram, a clickable explainer, a simulation for a concept, or says "figur interaktif", "buatkan simulasi", "diagram bisa diklik", "visualisasi konsep". Do NOT use for videos (that is html-video) or static thumbnails.
How it works
- The pattern (every figure has all four)
- Build rules
- Template
- Verification (before delivery)
SKILL.md preview
---
name: interactive-figure
description: Build a single-file interactive HTML figure for a study concept: a diagram the student can click, break, and watch respond, with a live readout of the quantity that changes. Use when the user wants an interactive diagram, a clickable explainer, a simulation for a concept, or says "figur interaktif", "buatkan simulasi", "diagram bisa diklik", "visualisasi konsep". Do NOT use for videos (that is html-video) or static thumbnails.
license: MIT
---
# Interactive Figure
A diagram explains. A figure you can break teaches. The difference is
the interaction loop: change something, watch the system respond,
read the number. This skill builds those figures as one
self-contained HTML file, for networking and coursework concepts
first, but the pattern holds for anything with parts and a quantity.
Inspired by the anatomy skill's interactive isometric figures (MIT,
credited in this repo's adaptation notes); written from scratch in
this repo's own approach.
## The pattern (every figure has all four)
1. **A drawn system.** SVG or canvas, top-down or schematic, with the
parts a student must distinguish actually distinguishable: labeled,
spaced, and colored by role, not by decoration.
2. **One meaningful interaction.** Click a cable to break it, toggle
a device, move a slider, send a packet. The interaction must be
the concept's own variable, the thing the exam asks "what happens
when this changes".
3. **A live readout.** The quantity the concept is about, recomputed
and displayed on every change: total bandwidth, hop count, loss
percentage, queue length. If the readout does not change, the
figure is a poster.
4. **A reset.** One click back to the intact system, because students
break things in the wrong order and should never be stuck.
## Build rules
- **One file, no dependencies.** Inline CSS and JS in a single HTML
file. It must open from disk, from a phone, and from a school
network that blocks CDNs. If it needs a build step, it is the
wrong artifact.
- **Deterministic state.** The figure's state lives in one small data
structure; the drawing is a function of it. Randomness, if any, is
seeded or removed. Two students performing the same clicks see the
same result.
- **Touch-first sizing.** Targets at least 44px, layout that survives
a phone screen, text that stays readable at arm's length. The
reviewer is usually holding a phone.
- **Labels in the figure, explanation under it.** Names and values on
the drawing itself; a short caption below stating the concept and
the one thing to try first ("break one cable and watch the
total").
## Template
`assets/figure-template.html` in this folder is the starting point: a
two-device diagram, one clickable link, one readout, one reset,
wired end to end. Copy it, replace the drawing and the state logic,
keep the skeleton.
## Verification (before delivery)
- Open the file in a headless browser or by hand: the intact state
renders, the readout shows the correct starting value.
- Perform the interaction programmatically or manually: the readout
changes to the hand-computed value. State the expected number
before checking it.
- Reset returns the figure to the exact starting state.
- Deliver the file itself, plus one sentence on what to try first.
A screenshot of the intact state is a good companion, never a
substitute: the value of the artifact is that it moves.
Files in this package (5)
- SKILL.md 3 KB
- assets/figure-template.html 3 KB
- examples/README.md 1 KB
- examples/vlan-isolation.html 5 KB
- examples/vlan-ping-from-A.png 63 KB
Versions
The database has no other skills named interactive-figure.
Database snapshot: 13.11.2026 · package version 8e76d6cf079f (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100manim-explainer
Create short math and science explainer animations with Python Manim: from a concept to a scene plan, a minimal project, a render command, and a verified output file. Use when the user wants a Manim animation, a math explainer video, or says "animasi manim", "buatkan animasi… - 100mindmaphtml
Use when the user says „mindmaphtml“ or wants an interactive HTML learning mind map (2D map, concept panel with 3D figure or mini quiz) that links interactive exercise pages, built from the bundled template as offline-ready HTML files (example: EMF-1). - 84illustrate
Visual explainer for a concept or codebase topic, one idea per diagram, grounded in the real artifact and written as a markdown record plus an interactive page (markdown only on request). Presets: newcomer (default) and zero-knowledge (ELI5). Options: an STE register, and a… - 100explainer-infographic
Generate an animated, interactive HTML page that explains a complex concept through real-world analogies, visual diagrams, and progressive disclosure. Use this whenever the user says 'explainer infographic,' 'explain how X works,' 'make an explainer for,' 'visualize this… - 100visual-explainer
Build a clickable, visual explainer that teaches a hard topic from zero — a single self-contained HTML page with chapters, stepped narration and hand-drawn interactive SVG diagrams instead of walls of text. Use when someone asks to learn or teach a subject properly, wants an… - 90eli5
Picks the form that explains best and applies the house explanation style: plain prose, controlled English modelled on ASD-STE100, a diagram, an interactive HTML page, or a narrated explainer video. Use when asked for \"ELI5\", \"plain English\", \"re-pitch that\", \"stop using…