Skip to content

armgit / kiln

Public Imported from GitHub
0

Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.

Clarify circular geometry and export handoff guidance (#163)

Matthew Kissingerc7d5168c3f2d
diff --git a/skills/kiln-author-asset/SKILL.md b/skills/kiln-author-asset/SKILL.md
index 5b3e46fe..f1f1c1c6 100644
--- a/skills/kiln-author-asset/SKILL.md
+++ b/skills/kiln-author-asset/SKILL.md
@@ -97,7 +97,7 @@ node kiln.mjs render RETURNED_REF --out asset-v1.glb --views asset-v1.png
Replace `RETURNED_REF` with the final reference returned by Kiln. Keep `.kiln/programs`, including its mappings, while using saved references. Pass `--out` whenever you want a GLB: `render` with neither `--out` nor `--views` writes `out.glb` in the current directory.
-Add `--json` to CLI `render` for a receipt with the source reference, requirements, output paths, image fidelity and the compact review (`--detail full` only when every instance of a finding matters); read the image file separately. On failure, check `ok` and `files`: a GLB may have been written before a failed image.
+Use `render --json` for the source reference, requirements, paths, fidelity and compact review (`--detail full` only for a closer look). Read images separately. Check `ok` and `files` on every export, even when redirected; a later command can hide failure. Deliver source, GLB and bundles from the same final reference or revision.
To save a chosen camera view, write the `capture` object to `cameras.json` and run `node kiln.mjs render RETURNED_REF --capture cameras.json --views hero.png`, the same camera schema and pipeline as MCP; the CLI is the route that writes review PNGs to disk. With `"output": "separate"` it writes `hero.shot-01.png`, `hero.shot-02.png` and so on and lists each in `files`; add `--backdrop light` or `dark` when the grey hides the silhouette. Do not copy image base64 into shell commands.
diff --git a/skills/kiln-author-asset/references/camera-cli.md b/skills/kiln-author-asset/references/camera-cli.md
index 40a2a4af..bc99d118 100644
--- a/skills/kiln-author-asset/references/camera-cli.md
+++ b/skills/kiln-author-asset/references/camera-cli.md
@@ -31,3 +31,16 @@ shots share the grid. With `"output": "separate"` the CLI writes one file per sh
beside the `--views` path (`hero.shot-01.png`, `hero.shot-02.png`, ...) and lists each
in `files` with its shot name. MCP delivers the same shots as separate image blocks. `--backdrop neutral|dark|light` sets the backdrop of
any `--views` sheet, with or without `--capture`, and wins over the recipe's own `backdrop`.
+
+## Verify exported files
+
+Read each command's JSON receipt, including output redirected to a file. Check
+`ok`, the returned reference and each entry in `files`; a GLB can exist even when
+an image failed. A subsequent successful shell command does not establish that
+an earlier export succeeded. Source export refuses to overwrite an existing file;
+choose a new path instead of assuming that the old file was refreshed.
+
+After an edit, export from the final reference or exact saved revision. Any source,
+GLB and ZIP you hand over must describe that same revision. Regenerate a bundle
+when its contents changed, or clearly identify it as an older revision rather than
+listing it as the latest delivery.
diff --git a/skills/kiln-author-asset/references/geometry-recipes.md b/skills/kiln-author-asset/references/geometry-recipes.md
index 32551883..e7125ad9 100644
--- a/skills/kiln-author-asset/references/geometry-recipes.md
+++ b/skills/kiln-author-asset/references/geometry-recipes.md
@@ -69,6 +69,16 @@ four transformed corners against the intended frame plane and opening, then
inspect an oblique view where an out-of-plane pane is visible. Matching centers
or bounding boxes alone cannot establish this fit.
+For blocks or panels around a cylinder, separate their radial positions from
+their orientation. A `boxGeo(length, height, thickness)` has its long axis along
+local X. At `[radius * Math.cos(theta), y, radius * Math.sin(theta)]`, Y rotation
+`-thetaDeg` points that axis radially outward; `90 - thetaDeg` makes it tangent
+to the ring (`theta` is radians, `thetaDeg` is degrees). Derive the orientation
+again when the geometry's long axis or parent frame differs. Check one part at
+each quarter turn before repeating it. For a continuous wall, inspect neighboring
+edges on both its inside and outside, including staggered courses: correct centers
+and tangency alone do not guarantee closure. Preserve intentional openings.
+
For attached veins, ribs or seams, discover `recipe:surface-detail-v1`. Its strip
shares the carrier mesh's sampled boundary vertices and rises along local normals.
A shared equation followed by a separately interpolated curve does not establish