Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Move the skill eval runner to scripts so the coverage gate skips it (issue #649)

Nguyen Xuan An24474f2fd42f
diff --git a/changes/649.md b/changes/649.md
index 0871f472..e27a4153 100644
--- a/changes/649.md
+++ b/changes/649.md
@@ -1 +1 @@
-- The `build-67js-scene` and `render-67js-media` skills are rewritten for agents that use 67js through MCP: short entry files, references for look, light, camera, film and animation, render jobs and error recovery, and a working tool call for lens and depth of field, light caps, animated lights, sun and sky, catalog HDRIs and looks, `bake.gridFog`, fog multiple scattering, depth fixes and render flags. Evals under `skills/*/evals` run through `claude -p` with `skills/evals/run.mjs` (issue #649)
+- The `build-67js-scene` and `render-67js-media` skills are rewritten for agents that use 67js through MCP: short entry files, references for look, light, camera, film and animation, render jobs and error recovery, and a working tool call for lens and depth of field, light caps, animated lights, sun and sky, catalog HDRIs and looks, `bake.gridFog`, fog multiple scattering, depth fixes and render flags. Evals under `skills/*/evals` run through `claude -p` with `scripts/run-skill-evals.mjs` (issue #649)
diff --git a/skills/evals/run.mjs b/scripts/run-skill-evals.mjs
similarity index 98%
rename from skills/evals/run.mjs
rename to scripts/run-skill-evals.mjs
index 7769f3a2..0a4618b2 100644
--- a/skills/evals/run.mjs
+++ b/scripts/run-skill-evals.mjs
@@ -1,5 +1,5 @@
// Runs the skill evals through headless `claude -p` with the 67js MCP server, one model at a time.
-// Usage: node skills/evals/run.mjs --model haiku|sonnet|opus [--only <eval name>] [--out <folder>]
+// Usage: node scripts/run-skill-evals.mjs --model haiku|sonnet|opus [--only <eval name>] [--out <folder>]
// It needs the built server (`npm run build:lib`), Chrome and the claude CLI. Each eval file holds a prompt and checks that
// read the tool calls and the last recipe the agent exported with scene_export_recipe. Skills are injected as system
// prompt text (with ${CLAUDE_SKILL_DIR} replaced), because the claude CLI would otherwise also load the user's own copies.
@@ -9,7 +9,7 @@ import { tmpdir } from 'node:os';
import { dirname, join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
-const skillsFolder = resolve(dirname(fileURLToPath(import.meta.url)), '..');
+const skillsFolder = resolve(dirname(fileURLToPath(import.meta.url)), '..', 'skills');
const repositoryRoot = resolve(skillsFolder, '..');
const options = Object.fromEntries(process.argv.slice(2).reduce((pairs, value, index, all) => (value.startsWith('--') ? [...pairs, [value.slice(2), all[index + 1]]] : pairs), []));
const model = options.model ?? 'haiku';