visual-and-demo
Skill0 starsChanged 8 days agoMITView on GitHub
Render verified inline HTML labs, declarative explore Tangle and Limiting-Case labs, live Whiteboard frames, SVGs, SymPy 2D/3D plots, and annotated PDF figures across all harnesses and offline archives.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- chapter-autopilotSkill
- exam-simulatorSkill
- grade-handwritingSkill
- harness-self-improveSkill
- ingest-chapterSkill
- knowledge-graphSkill
- manim-animatorSkill
- organic-chemistry-tutorSkill
- physical-chemistrySkill
- physics-circuits-and-unitsSkill
- practice-drillSkill
- revision-sheetsSkill
- subagent-orchestratorSkill
- teach-chapterSkill
- topic-onboardingSkill
- universal-pdf-studySkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Write a self-contained HTML widget to <artifactDir>/<slug>.html using native write_file WITH ArtifactMetadata: {UserFacing: true, …
- Very specific: line 28
Use pure inline CSS (zero external requests) or Antigravity's one CSP-allowlisted Tailwind script (<script …
- Very specific: line 30
Use semantic tokens (--foreground, --muted-foreground, --card, --card-border, --border, --primary, --chart-1..6).
- Very specific: line 60
Every expression compiles strictly via Python's AST whitelist into RPN opcodes (push_num, push_var, add, sub, mul, div, pow, neg, sin, cos, …
- Very specific: line 63
Always inspect returned pendingPins and answer learner-pinned step questions before pushing new derivation leaps!
- Very specific: line 69
Exact Numerics: use RK4 or Velocity-Verlet (dt <= 0.02) with live invariant readouts ($K, U, E$) for physical dynamics — never naive Euler.
- Very specific: line 71
Mandatory Visual Audit: verify JS syntax (node --check on extracted script), confirm 0 console/network errors, and visually inspect a …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Visual & Interactive Demo Builder — Anti-Split-Attention, Verified Every Time
A visual earns its place only when geometry, state transitions, data-structure mutation, or dynamic parameter sweeps make an invariant obvious in 3 seconds better than prose. Correctness is non-negotiable: one flipped vector, wrong pointer edge, overlapping label, or broken slider poisons intuition.
(Portable CLI: prefer syntopik run <engine> ... in attached repos, or .venv/bin/python -B scripts/<engine>.py ... in direct clones.)
Multi-Harness Rendering Tiers (Inline-First, Offline-Safe Forever)
Pick the highest visual tier supported by your active harness (BOOTSTRAP.md), and always anchor the visual directly above the prompt that references its controls/labels by name:
- Surface A — Google Antigravity 2.0 (
generative_uiInline Embed, Default<= 450px):- Write a self-contained HTML widget to
<artifactDir>/<slug>.htmlusing nativewrite_fileWITHArtifactMetadata: {UserFacing: true, RequestFeedback: false}(never write the artifact file via shell/Python alone, which skipsArtifactMetadata). - Embed directly inside your reply (do NOT set a
heightattribute):<agent-embed src="file:///<artifactDir>/<slug>.html"></agent-embed> - Exact Flush Theme-Sync Contract:
- Use pure inline CSS (zero external requests) or Antigravity's one CSP-allowlisted Tailwind script (
<script src="https://www.gstatic.com/antigravity/web/dev/tailwindcss.min.js"></script>). <body class="bg-transparent text-[var(--foreground)] antialiased p-0 m-0">(no outer card wrapper; divide withborder-[var(--card-border)]).- Use semantic tokens (
--foreground,--muted-foreground,--card,--card-border,--border,--primary,--chart-1..6); never hardcode dark/light utility classes, never override:root, never useh-screen/100vh/height: 100%(collapses auto-height!), and attachwindow.addEventListener('themechange', draw)on<canvas>.
- Use pure inline CSS (zero external requests) or Antigravity's one CSP-allowlisted Tailwind script (
- For wide/tall explorers (
> 450px), omit<agent-embed>, usebg-[var(--background)], and link the standalone side-pane artifact.
- Write a self-contained HTML widget to
- Surface B — T3 Code (
html_preview→html_render) & Claude Desktop Artifacts:- Preview via
html_preview(verifying PNG + zero console errors) and publish viahtml_renderwith the exactcontentHeight(or emit a self-contained zero-CDN HTML Artifact in Claude Desktop).
- Preview via
- Surface C — Claude Code CLI, OpenAI Codex CLI & Any Terminal/IDE Harness:
- Save a 100% offline zero-CDN interactive HTML lab to
demos/<slug>.html(using Syntopik's calm Warm Obsidian#111315/ Archival Vellum#F7F5F0Dark/Light toggle) + render crisp static.png/.svgfigures (math_plot,physics_draw,circuit_draw,chem_3d,pdf_studio annotate [--occlude]) + inline Mermaid (graph TD,sequenceDiagram,stateDiagram-v2), providing a clickablefile://link todemos/<slug>.html.
- Save a 100% offline zero-CDN interactive HTML lab to
- Permanent Offline Hub Archive (
demos/<slug>.html):- Regardless of harness, save reusable interactive labs (zero external CDN tags!) to
demos/<slug>.htmlsodashboard.htmlandsyntopik serve(Interactive Labs) preserve them 100% offline.
- Regardless of harness, save reusable interactive labs (zero external CDN tags!) to
Deterministic Plot & Diagram Generators (Prefer Over Hand-Coded Coordinates!)
- Coordinate Geometry, Argand, Integrals, 3D Skew Lines & Functions (
scripts/math_plot.py):syntopik run math_plot conic --type ellipse --a 4 --b 2.5 --tangent-t 45 --show-director --show-normal --out demos/ellipse.html --json syntopik run math_plot argand --loci "circle:1+2j,3;perp-bisector:0,4" --points "0;1+2j;4" --out demos/argand.png --json syntopik run math_plot integral --expr "sin(x)" --a 0 --b "2*pi" --out demos/integral.html --json syntopik run math_plot vector3d --lines "0,0,0|1,1,0;0,0,2|1,-1,0" --out demos/skew-3d.html --json syntopik run math_plot func --exprs "x**3 - 3*x" --xmin -3 --xmax 3 --mark-roots --mark-extrema --mark-inflection --out demos/cubic.png --json - CS / Algorithms / ML Visualizers: step-by-step interactive Canvas/SVG visualizers (Raft log replication, B-tree splits, DP table fill, attention weights, gradient descent trajectories) — pre-verify reference traces via
code_verify.py! - Physics, Circuits, Chemistry & PDF Crops:
physics_draw.py,circuit_draw.py,chem_3d.py,organic_reagents.py,pdf_studio.py annotate [--occlude].
Declarative :::explore Tangle + Limiting-Case Labs & Live Whiteboard Frames (v3.0)
- Zero-
evalDeclarative:::exploreLabs (syntopik/explorable.py):- Embed Bret Victor Tangle + Mahajan Limiting-Case interactive widgets directly inside
chapters/<slug>.mdusing:::explore ... :::fenced blocks (JSON spec with parametersliders,outputs, exact vs approximationcurveexpressions, and optional pre-scrublimitCheckprediction gate). - Every expression compiles strictly via Python's AST whitelist into RPN opcodes (
push_num,push_var,add,sub,mul,div,pow,neg,sin,cos,tan,sqrt,abs,exp,log) evaluated in the browser Chapter Reader & Live Whiteboard with ZEROeval()ornew Function().
- Embed Bret Victor Tangle + Mahajan Limiting-Case interactive widgets directly inside
- Live AI-to-Whiteboard SSE Frames (
synt_whiteboard_step/syntopik board push):- Stream progressive teaching frames (
derivation_step, lockedprediction_gateblurred until learner submits prediction + confidence,explore_widget,diagram_callout,summary) toknowledge-graph/whiteboard-session.jsonfor live rendering insyntopik serve(Mastery Gym → Live AI Chalkboard). - Always inspect returned
pendingPinsand answer learner-pinned step questions before pushing new derivation leaps!
- Stream progressive teaching frames (
Craft & Mandatory Verification Gate
- Exact Numerics: use RK4 or Velocity-Verlet (
dt <= 0.02) with live invariant readouts ($K, U, E$) for physical dynamics — never naive Euler; scale<canvas>bydevicePixelRatio. - Calm Restraint (
1Widget / Turn): 3–7 visual elements max, Reset + Limiting-Case Presets (e.g., Underdamped / Critical / Overdamped, Split Brain / Quorum),150mssubtle motion (prefers-reduced-motionrespected), and zero duplicated chat prose inside the widget. - Mandatory Visual Audit: verify JS syntax (
node --checkon extracted script), confirm0console/network errors, and visually inspect a rendered PNG viaread_file/ReadBEFORE presenting. - Teach WITH Named Controls: "An artifact you never point at is decoration." Explicitly direct the learner to named sliders/buttons ("Step
electionTimeouttoequaland watch split votes repeat").
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.

