An AI agent skill that turns any subject into a 3D film or app
Render films and stills in 67js when it is installed; release 0.6.0
Nguyen Xuan Anb846c05bac7a
diff --git a/README.md b/README.mdindex 5642ff7..872c760 100644--- a/README.md+++ b/README.md@@ -8,6 +8,25 @@ This skill has your agent turn questionslike these into a 3D world you can watch or click through. The world is built from researched facts and from modelsmade to real dimensions.+<table>+ <tr>+ <td width="200">+ <a href="https://67js.codepawl.com">+ <picture>+ <source media="(prefers-color-scheme: dark)" srcset="https://67js.codepawl.com/brand/wordmark-dark.svg?v=0.10.0" />+ <img src="https://67js.codepawl.com/brand/wordmark-light.svg?v=0.10.0" alt="67js" width="160" />+ </picture>+ </a>+ </td>+ <td>+ Films and stills render in <a href="https://github.com/codepawl/67.js"><b>67js</b></a>, our WebGL2 engine that+ agents drive through an MCP server: JSON scene recipes, PNG review grids, and GPU or CPU export to images and+ video with bounded memory. viz3d works without it, and looks better with it. See+ <a href="#films-and-stills-with-67js">Films and stills with 67js</a>.+ </td>+ </tr>+</table>+It has eight modes:- **Live app**: a three.js app with a dashboard around a 3D world of the place. A seeded simulation moves the units and@@ -71,6 +90,7 @@ Name a look in your request, or let the agent pick one from the subject.## What is new+- Films and stills render in [67js](https://github.com/codepawl/67.js) when it is installed.- The `game` mode: a playable browser game, balanced by bot playtests.- Six more looks: clean ops world, lived-in isometric, white model documentary, Dither + ASCII showcase, gradient glowASCII and layer build film.@@ -176,6 +196,37 @@ your feed:that only takes a URL, use `embed.html?source=...` in an iframe. To test without your real system, the skill's`scripts/mock-feed.mjs` replays a JSONL file as a live feed.+## Films and stills with 67js++Apps, lessons, embeds and games stay in three.js, because people click and steer them. Documentaries, action shorts,+cutaway films, showcase films and stills render in [67js](https://github.com/codepawl/67.js) when it is installed:++- Terrain, scanned trees and grass, baked liquid, vehicles on paths, skinned characters, HDRI light and baked room+ light come as addons.+- The agent builds the scene as a JSON recipe through MCP and checks it on labelled review grids. It tries two or+ three looks as branches and shows you the grid to pick from.+- A timeline of shots with fades and depth of field drives the clock, so any frame renders the same in any order.+- Render jobs export PNG and MP4 with the soundtrack and an audio sync check. Memory is planned before it is used.++Set it up in your project:++```bash+npm install 67js@npm:@codepawlhq/67js+```++```bash+claude mcp add 67js-scene -- npx --package @codepawlhq/67js 67js-mcp --backend gpu --memory 256+```++```bash+npx skills add codepawl/67.js+```++The last command adds the 67js skills (`build-67js-scene` and `render-67js-media`). The skill's+`references/67js.md` has the full workflow, Windows notes and the faults we have seen. Showcase and docs are at+[67js.codepawl.com](https://67js.codepawl.com). If viz3d is useful to you, a star on+[codepawl/67.js](https://github.com/codepawl/67.js) helps the engine behind it.+## What you need- Node 20 or later, with Playwright and Chromium for recording.@@ -184,6 +235,7 @@ that only takes a URL, use `embed.html?source=...` in an iframe. To test without- [Blender](https://www.blender.org/download/) 5.x is optional. It gives much better models for the full live app andthe documentary. Without it the skill builds the models in three.js and tells you the quality is lower. Quickprototypes and embeds never need it.+- [67js](https://github.com/codepawl/67.js) is optional. It renders the films and stills, as described above.The skill asks before it downloads anything, such as elevation data, map data or reference images.diff --git a/plugins/visualize-in-3d/.claude-plugin/plugin.json b/plugins/visualize-in-3d/.claude-plugin/plugin.jsonindex c47d8db..60a3099 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.5.0",+ "version": "0.6.0","description": "Turn hard-to-picture places, systems, objects and events into a 3D world you can watch, learn from or click through: a live three.js app with a dashboard, a lesson app, a documentary film, or an illustrated cutaway book, built from real layouts and models made from real references.","author": {"name": "CodePawl",@@ -17,6 +17,7 @@"documentary","simulation","education",- "openstreetmap"+ "openstreetmap",+ "67js"]}diff --git a/plugins/visualize-in-3d/skills/visualize-in-3d/SKILL.md b/plugins/visualize-in-3d/skills/visualize-in-3d/SKILL.mdindex 79414a7..b2ca736 100644--- a/plugins/visualize-in-3d/skills/visualize-in-3d/SKILL.md+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/SKILL.md@@ -20,7 +20,8 @@ Paths use `{{WORK_DIR}}` for the folder where projects live (the current directothe usual install folder. If it is missing, say it gives much better models, is free at blender.org, and askwhether to wait or go on without it. Without it, follow `references/no-blender.md` and say in the report thatmodel quality is lower.-2. **Node 20+ and Playwright with Chromium** for recording; **ffmpeg** for encoding and checks.+2. **Node 20+ and Playwright with Chromium** for recording; **ffmpeg** for encoding and checks. **67js** renders+ films and stills: when one is the deliverable, read `references/67js.md` for setup and when to use it.3. **Subagents:** where the harness has them, give each pass to a fresh subagent with its brief and keep it insideabout 80 tool calls. Where it does not, run the passes one after another in this session, finish and check onebefore starting the next, and re-read the plan file at the start of each.@@ -36,16 +37,16 @@ Read what the user wants people to see, then pick one shape (or combine two) and| A place or system that runs (units, tasks, flows) | Live app with dashboard and a 30 s film | `references/brief.md`, `examples/` || How a thing works (aircraft, circuit board, engine) | Lesson app: 3 to 5 lessons, one control each, a "Build your own" sandbox | `references/brief.md` (parts, flow overlays, sandboxes) || Something spreading over real land | Terrain app with a time scrubber | `references/looks.md` (photoreal terrain), `examples/wildfire-valley.md` |-| A story, case or piece of history | Documentary film | `references/documentary.md`, `references/film.md` |-| Characters, creatures or machines doing something | Action short | `references/action.md` |-| One object cut open or exploded | Cutaway film, or an app with a section view | `references/film.md`, `references/looks.md` |+| A story, case or piece of history | Documentary film | `references/documentary.md`, `references/film.md`, `references/67js.md` |+| Characters, creatures or machines doing something | Action short | `references/action.md`, `references/67js.md` |+| One object cut open or exploded | Cutaway film, or an app with a section view | `references/film.md`, `references/looks.md`, `references/67js.md` || One big object or building with many rooms, as a page or a book | Book: interactive illustrated cutaway plate, with quizzes | `references/book.md`, `references/looks.md` || A game people play in the browser (steer a creature, survive, grow) | Playable web game, bot-balanced | `references/game.md` || A demo for leaders in about an hour | Quick prototype from three.js primitives | `references/live-embed.md` || A live view inside an existing dashboard or product | Embed (web component or iframe) on real data | `references/live-embed.md`, `scripts/mock-feed.mjs` |-Pick the look in `references/looks.md` (Choosing): clean ops world (default for a system that runs), toy isometric, point cloud, photoreal terrain, dark documentary-pixel diorama or illustrated cutaway plate. Study a look the user shows from a reference video with timestamped frame sheets+Pick the look in `references/looks.md` (Choosing); clean ops world is the default for a system that runs. Study a+look the user shows from a reference video with timestamped frame sheets(`scripts/contact-sheet.sh <video> <folder> <fps>`), then write it up as a new section in `looks.md`.## 2. Write the plan filediff --git a/plugins/visualize-in-3d/skills/visualize-in-3d/references/67js.md b/plugins/visualize-in-3d/skills/visualize-in-3d/references/67js.mdnew file mode 100644index 0000000..9687752--- /dev/null+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/references/67js.md@@ -0,0 +1,67 @@+# 67js for films and stills++[67js](https://github.com/codepawl/67.js) is a WebGL2 engine that an agent drives through an MCP server. It takes a+scene as a JSON recipe, returns PNG previews and review grids, and renders stills and MP4 video on the GPU or the CPU+with bounded memory. It has addons for terrain, scanned vegetation and grass, baked liquid, vehicles on paths,+skinned characters, HDRI light and baked room light. Reading map: When to use it, Setup, From the plan file to a+film, Faults seen. Its own docs are at https://67js.codepawl.com/docs.html and in plain text at+https://67js.codepawl.com/llms.txt.++## When to use it++| Output | Engine |+|---|---|+| Live app, lesson app, quick prototype, embed, game | three.js. People click, steer and read a dashboard. The app's 30 s film is recorded from the app itself. |+| Documentary film, action short, cutaway film, showcase film, layer build film | 67js when it is installed, else three.js with `references/film.md`. |+| Stills, posters, thumbnails, a model turntable | 67js. |+| Real land, forests, grass, water or liquid, vehicles on roads | 67js addons, also as the stage that a three.js app copies its look from. |++Ask once at the start whether 67js may be installed when a film or a still is the deliverable. It is MIT and on npm.++## Setup++1. In the project: `npm install 67js@npm:@codepawlhq/67js`. It needs Node 20.19 or later and an installed Chrome or+ Chromium. It downloads no browser.+2. Add the MCP server. In Claude Code:+ `claude mcp add 67js-scene -- npx --package @codepawlhq/67js 67js-mcp --backend gpu --memory 256`.+ On Windows, MCP clients start npm launchers badly: point `command` at `node` and `args` at+ `<project>/node_modules/67js/bin/67js-mcp.mjs` with absolute paths. Other clients take the same `command` and+ `args`. Raise `--memory` (32 to 384 MiB) for textured scenes: a 1080p frame needs about 175 MiB on its own.+3. Pass `--assets <absolute folder>` for GLB models (up to 64 files, 16 MiB each) and `--audio <absolute folder>`+ for the soundtrack. Restart the server after a GLB changes, because asset IDs bind the file contents.+4. Install its two skills, which hold the recipe contract and the render presets:+ `npx skills add codepawl/67.js` (`build-67js-scene` and `render-67js-media`). Read them before the first recipe.++## From the plan file to a film++1. **Stage.** Turn each real part in the plan file into a recipe node at its real size. Blender builds and ready+ models from Pass 1 go in the `--assets` folder as GLB and load with `scene_create_asset`. Primitive stand-ins+ are for blocking only, as everywhere in this skill.+2. **Look.** Set lights, fog and the environment map for the look in `looks.md`. A closed room needs `bake`, or it+ renders flat and grey: `scene_inspect` reports `closed-room-without-bake`.+3. **Motion.** Write the beats as clips and the cut list as the recipe `timeline` (shots with a camera, depth of+ field and `dip` fades). The timeline owns the clock, so every frame is a function of its time, as this skill+ requires.+4. **Review.** Use `scene_look` while building and `scene_review` (up to four labelled shots in one grid) for each+ self-review round. For a look choice, apply two or three variants as `branch`es, review them side by side, show+ the user the grid, and keep the winner with `scene_restore`. Check every `scene_apply` result for+ `renderSucceeded`.+5. **Preview, then final.** Submit a fast render job of the whole cut at low size first, with the soundtrack+ (`settings.audio`), and show it to the user. Render full quality only after they sign off. A video job takes up to+ 60 s and 900 frames at 1 to 30 fps. Render a longer film as jobs that start where the last one ended+ (`settings.timeline.start`) and join them with the ffmpeg concat demuxer: frames keep no state, so the joins are+ seamless. Each job checks audio sync and fails on a drift over 50 ms.+6. **Keep the recipe.** `scene_export_recipe` into the project, so a fix starts from the same scene. Release+ finished jobs with `scene_render_release` and the scene with `scene_dispose`.++Captions, title cards and the sound mix follow `film.md` and `documentary.md` as for any film. Run the generic+checks in `self-review.md` on the rendered MP4, because a grid of stills cannot show motion faults.++## Faults seen++- A grey, flat interior: the room has no `bake`.+- A job that runs out of memory on a textured 1080p scene: `--memory` left at the default.+- A model that keeps its old look after a Blender fix: the server still holds the old asset ID. Restart it.+- A long film rendered as one job: the job is refused past 60 s or 900 frames. Split it on the timeline.++File an engine bug at https://github.com/codepawl/67.js/issues with the recipe, the steps and one still.diff --git a/plugins/visualize-in-3d/skills/visualize-in-3d/references/self-review.md b/plugins/visualize-in-3d/skills/visualize-in-3d/references/self-review.mdindex 49b1b08..65290d3 100644--- a/plugins/visualize-in-3d/skills/visualize-in-3d/references/self-review.md+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/references/self-review.md@@ -89,6 +89,7 @@ Interactive apps, dashboards and their films.- The film spends its time dragging the time scrubber. Allow one short drag at most; the cursor works inside the world: hover, click a machine, follow a unit.- A moving unit gives no sign of where it is going, or a machine's state cannot be read at a glance. Draw each unit's path along its real route, and give running, idle and fault marks of different shapes, all from sim state.- Trails drawn as every unit's whole route at once, all one colour: a tangle no one can follow (ATC round 5, about 180 km of line per frame). Draw a time window around each unit that grows in when the unit appears: the next minute or so ahead as a bold solid line, the part just travelled as a thin dim dashed line, one distinct colour per unit, and the unit's name written along its own line (kept upright, never over another label or a panel). Many small units such as apron vehicles get only a short line ahead.+- Trail labels and colours that pass on paper and fail on screen (ATC round 6): a label drawn on a 2D canvas showed through the tower glass, a label on a climb-out floated in the sky, and nine colours for 13 aircraft on the field gave the two subjects sharing the runway the same green. Count the units present at once and give the palette at least that many colours, give units that appear one after another far hues, put labels on ground lines first, and skip a label whose anchor a solid hides from the camera.- Hand-drawn icons for known things (departure, arrival, alert) that read as blobs at panel size ("nhìn như slime"). Use a real glyph from an open icon set (Material Symbols, Lucide) and check it at its real pixel size.- A stretch of more than about 2 s where the cursor and camera hold still while the script waits for the sim. Speed it up in the edit or wait before recording starts.- A sound cue for an event that is off screen. A sim's event log covers the whole site, so check each cue against the frame at its time.