Art and animation, written as code. Illustrations, loops, interactive web art, launch-videos and scored films in dozens of styles, identical on every render.
TypeScript agent-skillsanimationcanvasclaude-codeclaude-pluginclaude-skillscodex-plugincreative-codecreative-codingcreative-toolsdeterministicgenerative-arthand-drawnillustrationlaunch-videomotion-designmotion-graphicspluginprocedural-generationskill
fresh installs resolve: react-dom pinned beside react; three.js from the project's npm install too
Alex Greenshpun126b317a8ff3
diff --git a/skills/anidoodle/SKILL.md b/skills/anidoodle/SKILL.mdindex a0037a5..1442e9a 100644--- a/skills/anidoodle/SKILL.md+++ b/skills/anidoodle/SKILL.md@@ -103,7 +103,7 @@ draws itself declares `kind: "drawing"` and is judged on a finer floor; a freeze`engine/` is the portable art core plus the tooling. `engine/src/canvas-core` knows nothingabout the DOM or any backend. `W`, `H`, `fps` and `durationFrames` come from the film's `meta`. Four backends, one art core → `references/backends-and-adapters.md`.-3D: `engine/src/three-core` renders three.js onto the same frame, so every tool below works on 3D films (vendored and hash-pinned, `engine/vendor/three/PROVENANCE.md`; type face `engine/assets/fonts/PROVENANCE.md`).+3D: `engine/src/three-core` renders three.js onto the same frame, so every tool below works on 3D films (three.js 0.170.0, hash-pinned, `engine/vendor/three/PROVENANCE.md`; type face `engine/assets/fonts/PROVENANCE.md`).Camera moves (pans, dollies, lens and dolly zooms, parallax, shake) and slow motion or freeze frames: `engine/src/canvas-core/camera.ts`, `engine/src/canvas-core/timeRemap.ts`, `references/camera.md`.Seams between scenes: `references/motion-grammar.md` (cuts that carry motion: `seams.ts`; `tools/deck.mjs deal` deals each film different moves; `deck.mjs find "<name>"` turns a move's everyday name into its card). `render.mjs --blur auto` renders with motion blur (subframes per framefrom its measured on-screen speed, averaged in linear light, `--shutter 180`); the default path is untouched.diff --git a/skills/anidoodle/engine/package-lock.json b/skills/anidoodle/engine/package-lock.jsonindex c8692a8..8cdff5f 100644--- a/skills/anidoodle/engine/package-lock.json+++ b/skills/anidoodle/engine/package-lock.json@@ -19,6 +19,7 @@"@remotion/bundler": "4.0.522","@remotion/renderer": "4.0.522","react": "19.3.0",+ "react-dom": "19.3.0","remotion": "4.0.522"}},@@ -3019,7 +3020,6 @@"integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==","license": "MIT","optional": true,- "peer": true,"dependencies": {"scheduler": "^0.28.0"},@@ -3090,8 +3090,7 @@"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz","integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==","license": "MIT",- "optional": true,- "peer": true+ "optional": true},"node_modules/schema-utils": {"version": "4.5.0",diff --git a/skills/anidoodle/engine/package.json b/skills/anidoodle/engine/package.jsonindex f27888a..b28d952 100644--- a/skills/anidoodle/engine/package.json+++ b/skills/anidoodle/engine/package.json@@ -23,6 +23,7 @@"@remotion/bundler": "4.0.522","@remotion/renderer": "4.0.522","react": "19.3.0",+ "react-dom": "19.3.0","remotion": "4.0.522"}}diff --git a/skills/anidoodle/engine/tools/overlay.mjs b/skills/anidoodle/engine/tools/overlay.mjsindex b884e9c..e75967c 100644--- a/skills/anidoodle/engine/tools/overlay.mjs+++ b/skills/anidoodle/engine/tools/overlay.mjs@@ -41,9 +41,9 @@ export const resolveOverlay = (spec, dir) => {// installed plugin leaves it out (plugin directories refuse a file this size) and gets the same npm// release from `npm install` (package.json pins three 0.170.0). Either way the hash must match.export const THREE_SHA256 = "ce1fa418de16a19495a9f72495580e3015d7745c296d3ce0485897f902ddedfb";-export const threeCandidates = (engine = ENGINE) => [join(engine, "vendor/three/three.module.js"), join(engine, "node_modules/three/build/three.module.js")];+export const threeCandidates = (engine = ENGINE, cwd = process.cwd()) => [...new Set([join(engine, "vendor/three/three.module.js"), join(engine, "node_modules/three/build/three.module.js"), join(cwd, "node_modules/three/build/three.module.js")])];export const resolveThree = (engine = ENGINE, read = (f) => (existsSync(f) ? readFileSync(f) : null)) => {- for (const f of threeCandidates(engine)) {+ for (const f of threeCandidates(engine, engine === ENGINE ? process.cwd() : engine)) {const bytes = read(f); if (!bytes) continue;const got = createHash("sha256").update(bytes).digest("hex");if (got !== THREE_SHA256) throw new Error(`three.js at ${f} is not the pinned 0.170.0 build (sha256 ${got.slice(0, 12)}...): run npm install in the engine folder so package.json's exact version is used`);diff --git a/skills/anidoodle/engine/tools/scaffold.mjs b/skills/anidoodle/engine/tools/scaffold.mjsindex 9595bb7..d647f19 100644--- a/skills/anidoodle/engine/tools/scaffold.mjs+++ b/skills/anidoodle/engine/tools/scaffold.mjs@@ -107,7 +107,7 @@ export const ${film}: Film = {// the marker that makes this folder a linked project: overlay.mjs puts its src/ in front of the engine's// only when this file is here, so another repo that happens to have a src/ never replaces engine filesif (!existsSync(join(target, PROJECT_MARKER))) writeFileSync(join(target, PROJECT_MARKER), JSON.stringify({ linked: true, film, engine: ENGINE }, null, 2) + "\n");- if (!existsSync(join(target, "package.json"))) writeFileSync(join(target, "package.json"), JSON.stringify({ name: film.toLowerCase(), private: true, type: "module", scripts: { still: `${tool("still.mjs")} ${film}`, render: `${tool("render.mjs")} ${film}`, framecheck: `${tool("framecheck.mjs")} ${film}`, ship: `${tool("ship.mjs")} ${film}` } }, null, 2) + "\n");+ if (!existsSync(join(target, "package.json"))) writeFileSync(join(target, "package.json"), JSON.stringify({ name: film.toLowerCase(), private: true, type: "module", dependencies: { three: "0.170.0" }, scripts: { still: `${tool("still.mjs")} ${film}`, render: `${tool("render.mjs")} ${film}`, framecheck: `${tool("framecheck.mjs")} ${film}`, ship: `${tool("ship.mjs")} ${film}` } }, null, 2) + "\n");console.log(`linked project ${target}\n src/canvas-core/${film}.ts, src/hosts/page-${film}.ts, tsconfig.json, package.json, ${PROJECT_MARKER}\n engine: ${ENGINE}\nnext (from ${target}):\n ${tool("still.mjs")} ${film} --out out/look.png\n ${tool("render.mjs")} ${film}\n ${tool("ship.mjs")} ${film}`);process.exit(0);}@@ -117,7 +117,8 @@ mkdirSync(target, { recursive: true });cpSync(join(ENGINE, "src"), join(target, "src"), { recursive: true, filter: (f) => !skip.has(f) });cpSync(join(ENGINE, "tools"), join(target, "tools"), { recursive: true });for (const f of ["package.json", "package-lock.json", "tsconfig.json"]) if (existsSync(join(ENGINE, f))) cpSync(join(ENGINE, f), join(target, f));-// three.js for 3D shots: the vendored, hash-pinned build and its types (vendor/three/PROVENANCE.md)+// three.js for 3D shots: the vendored, hash-pinned build and its types where the install has them; the+// plugin install has neither, and npm install brings the same pinned release (package.json, overlay.mjs)if (existsSync(join(ENGINE, "vendor"))) cpSync(join(ENGINE, "vendor"), join(target, "vendor"), { recursive: true });if (opt.example) {