interactive-figure
/interactive-figure
Buduje jednoplikową interaktywną figurę HTML dla pojęcia z nauki: diagram, który student klika i obserwuje w działaniu.
Ocena i bezpieczeństwo
- Pliki w paczce
- 5
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 08.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Buduje jednoplikową interaktywną figurę HTML dla pojęcia z nauki: diagram, który student klika i obserwuje w działaniu.
Wyzwalacze z opisu
Oryginalny opis (EN)
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.
Jak działa
- The pattern (every figure has all four)
- Build rules
- Template
- Verification (before delivery)
Podgląd SKILL.md
---
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.
Pliki w paczce (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
Wersje
W bazie nie ma innych skilli o nazwie interactive-figure.
Migawka bazy z 13.11.2026 · wersja paczki 8e76d6cf079f (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100manim-explainer
Tworzy krótkie animacje wyjaśniające z matematyki i nauki w Python Manim: od koncepcji po scenę, polecenie renderu i sprawdzony plik. - 100mindmaphtml
Tworzy interaktywną mapę myśli w HTML z panelem pojęć, krótkim quizem i linkami do ćwiczeń, gotową do pracy offline. - 84illustrate
Tworzy wizualne wyjaśnienie pojęcia lub tematu z kodu, po jednej idei na diagram, jako zapis w markdownie i interaktywną stronę, w wariantach dla nowicjusza i ELI5. - 100explainer-infographic
Generuje animowaną, interaktywną stronę HTML, która wyjaśnia złożone pojęcie przez analogie z życia, diagramy wizualne i stopniowe odkrywanie treści. - 100visual-explainer
Tworzy klikalny materiał wizualny, który uczy trudnego tematu od zera: rozdziały, krokową narrację i interaktywne diagramy SVG. - 90eli5
Dobiera formę, która wyjaśnia najskuteczniej, i stosuje domowy styl objaśnień: prosta proza, kontrolowany angielski wzorowany na ASD-STE100, diagram, interaktywna strona HTML lub film z narracją.