An AI agent skill that turns any subject into a 3D film or app
Parse /viz3d requests clearly: look words with aliases, longest match, quoted subjects, one question when a subject fits several shapes; release 0.7.1
Nguyen Xuan Anb2e77d05cd79
diff --git a/harness/gemini/viz3d.toml b/harness/gemini/viz3d.tomlindex abdd9c5..f5ce97c 100644--- a/harness/gemini/viz3d.toml+++ b/harness/gemini/viz3d.toml@@ -8,5 +8,5 @@ If the request is empty or is "help", list the modes and looks below and ask whaModes: film or doc (documentary film), action (action short), showcase (film or stills that show off one object or model), app (live 3D app with a dashboard and a short film), lesson (a real object built and explained step by step), book (illustrated cutaway plate, or a book with quizzes), game (playable browser game), prototype (quick prototype from primitives), embed (live 3D view inside a dashboard, on real data). With no mode, pick the shape from the subject with the skill's table.-Looks: clean product (ops, toy, lived-in), real and cinematic (terrain, documentary, white model, layer build), technical (point cloud, plate), stylized art (pixel, ASCII, glow).+Looks: clean product (ops, toy, lived-in), real and cinematic (terrain, documentary, white model, layer build), technical (point cloud, plate), stylized art (pixel, ASCII, glow). A look word may be two words, such as "white model", and may come first when there is no mode. A look the user names always wins over the default. Look words match whole words in any case, longest first. Text in quotes is always the subject. With no mode, a look that fits only one shape settles it; otherwise ask one question naming the shapes that fit."""diff --git a/harness/opencode/viz3d.md b/harness/opencode/viz3d.mdindex ab6112d..fbbfdbf 100644--- a/harness/opencode/viz3d.md+++ b/harness/opencode/viz3d.md@@ -10,4 +10,4 @@ If the request is empty or is "help", list the modes and looks below and ask whaModes: film or doc (documentary film), action (action short), showcase (film or stills that show off one object or model), app (live 3D app with a dashboard and a short film), lesson (a real object built and explained step by step), book (illustrated cutaway plate, or a book with quizzes), game (playable browser game), prototype (quick prototype from primitives), embed (live 3D view inside a dashboard, on real data). With no mode, pick the shape from the subject with the skill's table.-Looks: clean product (ops, toy, lived-in), real and cinematic (terrain, documentary, white model, layer build), technical (point cloud, plate), stylized art (pixel, ASCII, glow).+Looks: clean product (ops, toy, lived-in), real and cinematic (terrain, documentary, white model, layer build), technical (point cloud, plate), stylized art (pixel, ASCII, glow). A look word may be two words, such as "white model", and may come first when there is no mode. A look the user names always wins over the default. Look words match whole words in any case, longest first. Text in quotes is always the subject. With no mode, a look that fits only one shape settles it; otherwise ask one question naming the shapes that fit.diff --git a/plugins/visualize-in-3d/.claude-plugin/plugin.json b/plugins/visualize-in-3d/.claude-plugin/plugin.jsonindex 08cbd50..93a52f6 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.0",+ "version": "0.7.1","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 3229154..8a7c724 100644--- a/plugins/visualize-in-3d/skills/visualize-in-3d/SKILL.md+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/SKILL.md@@ -10,7 +10,7 @@ If `references/local.md` exists, read it first: it sets the folders and house ruTake any subject and make it 3D: models from real references, a seeded simulation or a scripted timelinedriving them, a look chosen for the subject, and a film checked frame by frame. The user can also start it with-`/viz3d <mode> <subject>` (modes: app, lesson, prototype, embed, film, action, showcase, book, game).+`/viz3d <mode> <subject>` (modes: app, lesson, prototype, embed, film or doc, action, showcase, book, game).Paths use `{{WORK_DIR}}` for the folder where projects live (the current directory unless the user names one) and`{{SKILL_DIR}}` for this skill's folder, with forward slashes on every platform.@@ -46,7 +46,7 @@ Read what the user wants people to see, then pick one shape (or combine two) and| 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: four families, a default per shape). Study a look the user shows from+Pick the look in `references/looks.md` (Choosing: four families, a default per shape; a named look wins). Study a look the user shows froma reference video with frame sheets (`scripts/contact-sheet.sh <video> <folder> <fps>`) and add it to `looks.md`.## 2. Write the plan filediff --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 97559f2..2db2088 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@@ -343,7 +343,7 @@ Default look per shape, when the user names none: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 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 is-light-hearted. A showcase film always uses dither + ASCII with the model+light-hearted. A showcase film defaults to dither + ASCII with the modelrendered clean. The point-cloud look can read as dull on a busy site, so use it whenit is asked for. Otherwise pick the look the place itself suggests: built places full of moving vehicles go toyisometric; land and water seen from above go point-cloud; an event spreading across real land over time goesdiff --git a/plugins/visualize-in-3d/skills/viz3d/SKILL.md b/plugins/visualize-in-3d/skills/viz3d/SKILL.mdindex 42c8441..06f2629 100644--- a/plugins/visualize-in-3d/skills/viz3d/SKILL.md+++ b/plugins/visualize-in-3d/skills/viz3d/SKILL.md@@ -1,7 +1,7 @@---name: viz3ddescription: Start the visualize-in-3d skill from a command, with an optional mode and look first and then the subject, for example "/viz3d film white model the 1906 San Francisco earthquake". With no request it shows the menu of modes and looks.-argument-hint: "[app|lesson|prototype|embed|film|action|showcase|book|game] [look] <subject>"+argument-hint: "[app|lesson|prototype|embed|film|doc|action|showcase|book|game] [look] <subject>"disable-model-invocation: true---@@ -17,10 +17,30 @@ In tools that do not fill in the line above, the request is the rest of the usermake 3D? Stop there.2. Otherwise load the `visualize-in-3d` skill and follow it from the start. It is installed next to this one(`../visualize-in-3d/SKILL.md`).-3. If the first word is a mode, use that shape and drop the word from the subject. Otherwise pick the shape from the- subject with the skill's table.-4. If the request names a look, use the matching section of `references/looks.md`. Otherwise use the default look for- the shape (looks.md, Choosing).+3. Read the request from the left: an optional mode word, then an optional look word (one or two words, from the+ table below), then the subject. A look word may also come first when there is no mode. Drop the mode and look+ words from the subject. Match whole words, in any case, and take the longest match (`dark documentary` is one+ look). Text in quotes is always subject, so `/viz3d "film noir city"` is a subject, not a mode.+4. With no mode word, pick the shape from the subject with the skill's table. A named look that fits only one shape+ settles it (`plate` is a book). When the subject still fits more than one shape, ask one question that names+ them, for example: watch it, play it, learn how it works, or open it up?+5. A look the user names always wins over the default. With no look word, use the default look for the shape+ (`references/looks.md`, Choosing).++| Look word | Section of `references/looks.md` |+|---|---|+| `ops` | Clean ops world |+| `toy` | Toy isometric |+| `lived-in` | Lived-in isometric |+| `terrain` | Photoreal terrain analysis |+| `documentary`, `dark` | Dark documentary |+| `white model` | White model documentary |+| `layer build` | Layer build film |+| `point cloud` | Point-cloud survey |+| `plate`, `cutaway` | Illustrated cutaway plate |+| `pixel` | Pixel diorama |+| `ASCII` | Dither + ASCII showcase |+| `glow` | Gradient glow ASCII |## Menu