An AI agent skill that turns any subject into a 3D film or app
Add the space-time cube look: movers as tubes over a map with time going up, drag a tube to fix a spacing breach, with an airport radar example; release 0.8.0
Nguyen Xuan An1bc6f6b906fb
diff --git a/README.md b/README.mdindex 1834e2b..7e134c6 100644--- a/README.md+++ b/README.md@@ -101,7 +101,7 @@ Playback runs from 0.25x to 10x.## Looks-The twelve looks fall into four families. Put the look word in your command, or leave it out and the agent uses the+The thirteen looks fall into four families. Put the look word in your command, or leave it out and the agent uses thedefault look for the mode.| Family | Look | Word | Fits |@@ -115,6 +115,7 @@ default look for the mode.| | Layer build film | `layer build` | One locked aerial camera while a place is built up layer by layer || Technical | Point-cloud survey | `point cloud` | A scanned, technical view of land, sea or a site || | Illustrated cutaway plate | `plate` | One big object or building cut open, for the book mode |+| | Space-time cube | `space-time` | Movers under spacing rules, such as air traffic: the map is the floor, time goes up, and you drag a tube to fix a breach || Stylized art | Pixel diorama | `pixel` | Pixel-art sprites on a 3D stage, for battles, games and small worlds || | Dither + ASCII showcase | `ASCII` | A film that shows off a model, a tool or a product: the model stays clean, the world around it turns to ASCII || | Gradient glow ASCII | `glow` | A creature or object that is itself the art, drawn in glowing ASCII |@@ -122,6 +123,8 @@ default look for the mode.| Layer build | ASCII ||---|---||  |  |+| **Space-time cube** | |+|  | |Default looks: apps, prototypes, embeds and lessons use clean ops world. Films use dark documentary, showcases useDither + ASCII and books use the cutaway plate. You can show the agent a reference video of a new look. It studies thediff --git a/docs/images/space-time.jpg b/docs/images/space-time.jpgnew file mode 100644index 0000000..ac573b5Binary files /dev/null and b/docs/images/space-time.jpg differdiff --git a/plugins/visualize-in-3d/.claude-plugin/plugin.json b/plugins/visualize-in-3d/.claude-plugin/plugin.jsonindex 93a52f6..94de776 100644--- a/plugins/visualize-in-3d/.claude-plugin/plugin.json+++ b/plugins/visualize-in-3d/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "visualize-in-3d",- "version": "0.7.1",+ "version": "0.8.0","description": "Visualize anything in 3D: places, systems, objects, products, creatures, stories and events, as a documentary or action film, a showcase, a live three.js app with a dashboard, a lesson, an illustrated cutaway book or a playable game, in twelve looks across four families, built from real layouts and models made from real references.","author": {"name": "CodePawl",diff --git a/plugins/visualize-in-3d/skills/visualize-in-3d/SKILL.md b/plugins/visualize-in-3d/skills/visualize-in-3d/SKILL.mdindex 8a7c724..47ed17a 100644--- a/plugins/visualize-in-3d/skills/visualize-in-3d/SKILL.md+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/SKILL.md@@ -1,6 +1,6 @@---name: visualize-in-3d-description: Visualize anything in 3D - a place, an operation or system (airport, data center, port, factory, hospital), an object or product, a creature or character, a story or event in time, something spreading over real land, or how a thing works. Builds a live three.js app with a dashboard and a 30 s film, a lesson app, a quick no-Blender prototype, a live embed on real data, a documentary film, an action short, a showcase film or stills of one object, an interactive cutaway plate or book, or a playable web game. Looks come in four families (clean product, real and cinematic, technical, stylized art), from clean ops world and isometric dioramas to photoreal terrain, white model, point cloud, cutaway plate, pixel, ASCII, glow and layer build. Models come from ready sources or Blender builds made from real references, and the skill checks its own frames before showing anyone. Use for "visualize X in 3D", "make a 3D film of X", "show this event on a 3D map", "a live 3D dashboard of X", "a 3D lesson on how X works", "show off this model", "a quick 3D prototype", "two creatures fight in 3D", "dựng 3D cái này", "app nhìn như game", "làm phim 3D về", "cho 2 con đánh nhau", "pixel battle", "theme point cloud", "kiểu wildfire tool".+description: Visualize anything in 3D - a place, an operation or system (airport, data center, port, factory, hospital), an object or product, a creature or character, a story or event in time, something spreading over real land, or how a thing works. Builds a live three.js app with a dashboard and a 30 s film, a lesson app, a quick no-Blender prototype, a live embed on real data, a documentary film, an action short, a showcase film or stills of one object, an interactive cutaway plate or book, or a playable web game. Looks come in four families (clean product, real and cinematic, technical, stylized art), from clean ops world and isometric dioramas to photoreal terrain, white model, point cloud, cutaway plate, space-time cube, pixel, ASCII, glow and layer build. Models come from ready sources or Blender builds made from real references, and the skill checks its own frames before showing anyone. Use for "visualize X in 3D", "make a 3D film of X", "show this event on a 3D map", "a live 3D dashboard of X", "a 3D lesson on how X works", "show off this model", "a quick 3D prototype", "two creatures fight in 3D", "dựng 3D cái này", "app nhìn như game", "làm phim 3D về", "cho 2 con đánh nhau", "pixel battle", "theme point cloud", "kiểu wildfire tool".license: MIT---diff --git a/plugins/visualize-in-3d/skills/visualize-in-3d/examples/airport-radar.md b/plugins/visualize-in-3d/skills/visualize-in-3d/examples/airport-radar.mdnew file mode 100644index 0000000..a6de8e6--- /dev/null+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/examples/airport-radar.md@@ -0,0 +1,2 @@+Your folder: {{WORK_DIR}}/viz-radar (create it). Port 5561. Look: space-time cube, phosphor scope skin.+Subject: an airport approach radar as a space-time cube. The floor is the radar scope with range rings at 5 NM steps and the runway, time runs up the vertical axis, and each flight is a tube of rings with a radius of 1.5 NM (half the 3 NM radar minimum). Data: arrivals and departures for one runway, each with its route, speed, altitude, wake category and runway events (threshold, touchdown, roll start, lift off). Use made-up airline codes. Rules, each written into a notes file with its paragraph: 3 NM or 1,000 ft between aircraft on radar, wake spacing on approach by category measured when the leader crosses the threshold, the runway rules for arrivals and departures, and the speed limits for an arrival. Mark the routes and fixes you invent as invented. Put at least one real breach in the data (a light aircraft too close behind a heavy one on final), and prove with a scripted mouse run that dragging its tube removes it. The four views: cube, radar scope, time-distance stringline, conflict graph. Readouts: film time, closest pair, time to the next conflict, runway spacing, runway occupancy, conflict count. The film: 25 s live, no cut, a real cursor fixing every conflict, moving from the first frame.diff --git a/plugins/visualize-in-3d/skills/visualize-in-3d/references/looks.md b/plugins/visualize-in-3d/skills/visualize-in-3d/references/looks.mdindex 2db2088..e6ced38 100644--- a/plugins/visualize-in-3d/skills/visualize-in-3d/references/looks.md+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/references/looks.md@@ -4,7 +4,7 @@ Each topic file names one look. The look sets the world's rendering, the UI skinmodel, the dashboard parts and the film's click-driven shape stay the same. Reading map: start with Choosing at the end (four families and the default look per shape), then Toy isometric,Point-cloud survey, Photoreal terrain analysis, Dark documentary, Pixel diorama, Illustrated cutaway plate,Lived-in isometric, Dither + ASCII showcase, Gradient glow ASCII, Clean ops world, White model documentary, Layer-build film.+build film, Space-time cube.Reference stills or clips for a look are optional. If you have some, save them under `{{WORK_DIR}}/references/<slug>/`and point the briefs at them; they are for study only and never ship in the app or the film. Without them, the@@ -316,6 +316,39 @@ one is a finished, cinematic frame. No labels and no narration: the picture alon- Sound: one recording per action, placed from the film's own event times; a real track whose surge lands on thefinal layer.+## Space-time cube++A technical figure for anything that moves under spacing rules: aircraft, ships, trains, robots on a floor. The floor+is the map and time is the vertical axis, so each mover is a tube and two tubes touching is a real breach. It looks+like a live research tool: thin lines, small solid nodes, live readouts and crop brackets. One gesture re-lays the+same data every few seconds with no cut. It uses plain three.js lines and no models.++- Each mover is a 1 px centre line plus a ring every 20 s of its time. The ring radius is half the lateral minimum, so+ two rings touch exactly at the minimum. Rings take the alert colour only inside a conflict window.+- One key cycles four views of the same vertices: cube, top-down scope (time collapsed), time-distance stringline, and a+ conflict graph (nodes on a ring in runway order, edges for closest approach). Morph positions with eased weights+ over about 1.4 s and never cut. A cut plane scrubs time, and its slice is a live 2D scope with dots and data blocks.+- Play: drag a tube along its own time axis to delay it. The model finds a control that gives the wanted delay. It+ tries the speed inside the legal band first, then a vector. A departure gets a ground hold. About 0.25 s of delay+ per pixel makes a fix take tens of pixels. Measure the drag axis at the tube with only time changing.+- Compute every number on screen from the model each frame. Show the closest approach, the time to the next conflict,+ the runway spacing and the conflict count. Each rule comes from the real rulebook with its paragraph in a notes file. Invented parts of the+ scenario, such as routes, are marked as invented.+- Captions are the real method names in mono ("SPACE–TIME / CUBE", "TIME–DISTANCE / STRINGLINE") with the axes and+ units on the line below.+- Labels are an HTML layer with a halo in the background colour. Declutter them every frame in priority order: the+ label in hand, conflicts, alerts, tags, edge labels, axis labels. Each label tries six offsets around its anchor.+ It avoids the HUD panels and the cursor. A label that must show and finds no free offset steps down a line at a time.+- Skins: a phosphor scope (near-black, one green, brightness for emphasis, amber only for a broken rule, a fade quad+ with `autoClear` off for persistence), white paper with one red, or a buff approach chart with chart blue and+ magenta. The scope gets an antenna sweep at the real rate (an ASR-9 turns at 12.5 rpm, one scan per 4.8 s): a 1 px+ leading line over an additive fan. Persistence stacks the fan about 5 times at a 0.2 fade, so keep its own glow low.+- Proof: drive a real mouse from a script on a virtual 30 fps clock. Assert that each drag removes the conflict it+ aims at. Assert that it adds only the conflicts you expect. Record the demo with the same script, already moving in the first frame.+- Traps: scanning every pair at every step is slow, so cache each track resampled per second. A pointer-up can drop the+ last move, so apply the pending control on release. A departure that circles its last waypoint makes fake conflicts:+ hold its heading past the last fix.+## ChoosingThe looks fall into four families. Pick the family from what the piece is for, then the look from the subject.@@ -324,7 +357,7 @@ The looks fall into four families. Pick the family from what the piece is for, t|---|---|---|| Clean product | Clean ops world, Toy isometric, Lived-in isometric | The piece should read like a real product or a friendly diorama: apps, lessons, prototypes, embeds || Real and cinematic | Photoreal terrain, Dark documentary, White model documentary, Layer build film | It should feel real and filmed: land, events, cases, a place being built |-| Technical | Point-cloud survey, Illustrated cutaway plate | It should read like a survey or an engineering plate: terrain from above, one object cut open |+| Technical | Point-cloud survey, Illustrated cutaway plate, Space-time cube | It should read like a survey, an engineering plate or a research figure: terrain from above, one object cut open, movers checked against spacing rules || Stylized art | Pixel diorama, Dither + ASCII showcase, Gradient glow ASCII | The look is part of the art: battles, games, showing off a model, a creature as art |Default look per shape, when the user names none:@@ -340,7 +373,9 @@ Default look per shape, when the user names none:| Book | Illustrated cutaway plate || Game | Pixel diorama or toy isometric |-A build-up or breakdown of a place, where the wow is watching it become real, goes layer build film. A case that needs its action and places clearly seen can go white model documentary; dark documentary suits a case that lives on+A build-up or breakdown of a place, where the wow is watching it become real, goes layer build film. Movers+that must keep apart under real rules (air traffic, ships, trains), where the wow is seeing a breach and fixing it,+go space-time cube. A case that needs its action and places clearly seen can go white model documentary; dark documentary suits a case that lives onwhat stays hidden. Clean ops world is the default for a system that runs (an operation with units, tasks and flows). Toy isometric (amore playful diorama on a slab, stronger colour) stays as an alternative when the user asks for it or the subject islight-hearted. A showcase film defaults to dither + ASCII with the modeldiff --git a/plugins/visualize-in-3d/skills/viz3d/SKILL.md b/plugins/visualize-in-3d/skills/viz3d/SKILL.mdindex 06f2629..7b009cb 100644--- a/plugins/visualize-in-3d/skills/viz3d/SKILL.md+++ b/plugins/visualize-in-3d/skills/viz3d/SKILL.md@@ -38,6 +38,7 @@ In tools that do not fill in the line above, the request is the rest of the user| `layer build` | Layer build film || `point cloud` | Point-cloud survey || `plate`, `cutaway` | Illustrated cutaway plate |+| `space-time` | Space-time cube || `pixel` | Pixel diorama || `ASCII` | Dither + ASCII showcase || `glow` | Gradient glow ASCII |@@ -57,7 +58,7 @@ In tools that do not fill in the line above, the request is the rest of the user| Clean product | Real and cinematic | Technical | Stylized art ||---|---|---|---|-| ops, toy, lived-in | terrain, documentary, white model, layer build | point cloud, plate | pixel, ASCII, glow |+| ops, toy, lived-in | terrain, documentary, white model, layer build | point cloud, plate, space-time | pixel, ASCII, glow |Examples: `/viz3d app a container port`, `/viz3d film white model the Chernobyl accident`,`/viz3d showcase glow a cockroach`, `/viz3d game pixel a worm that eats a city`.