# Visualize

> An Agent Skill that turns a one-line prompt into a voice-narrated, interactive 3D or 2D explainer checked against a running simulation model

- Category: AI Productivity & Writing / Learning & Tutoring
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/Aaryan1524/Visualize
- Website: https://aaryan1524.github.io/Visualize/
- Canonical page: https://ai-tldr.dev/tools/visualize-skill/

## In short

Visualize is an Agent Skill that turns a one-line request such as `/visualize explain how a V6 engine works` into a step-through visual lesson. It sits in the Learning & Tutoring category of the AI Productivity & Writing tools and is open-source, written in TypeScript and licensed MIT. To get started: clone the skill into your agent's skills folder and install once.

## Overview

Visualize is an Agent Skill that turns a one-line request such as `/visualize explain how a V6 engine works` into a step-through visual lesson. It follows the open Agent Skills format, so the repository itself is the skill folder: you clone it into Claude Code's, Codex's or Antigravity's skills directory, run `npm install` once, and invoke it from a new session. The result is one standalone, offline HTML file with light and dark themes, live telemetry, a voiceover, What-If variants, Tune sliders and a "Now You Try" challenge for the reader.

Every prompt is routed to one of two rendering engines. Engine A is a Three.js 3D CAD studio in an orthographic matte-clay style, used for physical machines, devices, fluids and organs, with procedural GLSL shaders for airflow, flames and exhaust. Engine C draws 2D tactile instruments in a Braun/Rams style for algorithms, data structures, protocols, distributed systems, transformers, math and circuits. Both are driven by a single `simModel()` function, so the animation, the on-screen numbers and the challenge answers come from the same tested model.

The project's answer to hallucinated diagrams is a fixed six-step pipeline: route and scaffold, write and test the model and scene, a headless-Chrome gate (`check-studio.mjs`) that fails on runtime errors, `NaN` telemetry or colliding callouts, two independent fresh-context reviewers (one reads only the code, one reads only screenshots), a SHA-256 review seal, and finally offline Kokoro TTS narration. The README is candid that this makes a run thorough rather than instant, and that the interactive pages are tuned for desktop screens first.

## What it does

- One prompt in, one standalone offline HTML lesson out, with orbit or tactile controls, light and dark themes and step-by-step progression
- Engine A: Three.js orthographic 3D cutaways of physical machines with volumetric GLSL airflow, flame and exhaust effects
- Engine C: 2D tactile instruments for algorithms, data structures, protocols, transformers, math and circuits
- A single tested `simModel()` drives the animation, live telemetry and the "Now You Try" challenge checks
- Verification gates: headless-Chrome checks, two fresh-context reviewers and a SHA-256 review seal before shipping
- Offline Kokoro voiceover narration after a one-time ~90 MB model download

## Getting started

Visualize needs Node.js 24 or later, Chrome or Chromium for the visual checks, and one Agent Skills–compatible agent: Claude Code, Codex or Antigravity.

1. Clone the skill into your agent's skills folder and install once

   Pick the line for your agent. For a single project, clone into `.claude/skills/visualize` or `.agents/skills/visualize` inside the repo instead.

```bash
# Claude Code
git clone https://github.com/Aaryan1524/Visualize.git ~/.claude/skills/visualize && cd ~/.claude/skills/visualize && npm install

# Codex
git clone https://github.com/Aaryan1524/Visualize.git ~/.agents/skills/visualize && cd ~/.agents/skills/visualize && npm install

# Antigravity (CLI)
git clone https://github.com/Aaryan1524/Visualize.git ~/.gemini/config/skills/visualize && cd ~/.gemini/config/skills/visualize && npm install
```

2. Ask for an explanation

   Open a new agent session and describe any machine, phenomenon, algorithm or system. In Codex, type `$visualize` instead of `/visualize`.

```text
/visualize explain how a V6 engine works
/visualize explain how an LRU cache achieves O(1) lookup and eviction
```

3. Open the generated lesson

   The skill writes one standalone HTML file that works offline. Step through it, change variants with the What-If and Tune controls, and try the challenge at the end.

4. If Codex blocks the Chrome check

   Codex's sandbox can block the headless Chrome checks; the HTML still builds. Approve running `check-studio.mjs` outside the sandbox when prompted, or run it yourself.

```bash
node ~/.agents/skills/visualize/scripts/check-studio.mjs dist/<slug>.html --shots <dir>
```

## When to use it

- Teach or learn how a physical machine works, from a jet engine to a lithium-ion battery, with an interactive cutaway
- Explain an algorithm or protocol, such as an LRU cache or a TCP handshake, as a step-through instrument with a practice challenge
- Produce a self-contained, narrated explainer page that can be shared and opened offline
- Give a coding agent a visual-explanation skill whose figures are checked against a running model instead of drawn freehand
