brepjs-cad skill eval (implement/verify)

VerifiedCaution

Runs a brepjs-cad skill eval in a Claude session: re-authors playground examples, blind-judges them, and proposes SKILL.md fixes.

Sby Skills Guide Bot
TestingAdvanced
9/14/2026
Claude Code
#skill-evaluation#cad#blind-judging#regression-testing#precision-recall

Recommended for

Automated summary

Runs a manual evaluation loop of the brepjs-cad skill inside the current Claude session, re-authoring playground examples and having a blind judge subagent grade them, then proposes SKILL.md fixes.

Strengths

  • Needs no API key or billing, unlike the SDK-based eval:live counterpart
  • Grading is done by a blind judge subagent, so the author never scores their own output
  • Output is concrete findings: every part the skill cannot reproduce as a designed object maps to a specific SKILL.md gap
  • Two complementary modes: implement (re-author, render, judge) and verify (precision/recall table for the harness)

Limitations

  • Heavy setup: build the library, viewer and CLI, and install Chrome through Puppeteer
  • Only covers the basics and mechanical playground categories; bim and sheet-metal are excluded
  • If the viewer or Chrome cannot be built, snapshots are skipped and parts stay unjudged, leaving coverage gaps
  • Assumes a Claude Code environment with subagents and slash commands
When to use it

Use it to measure how faithfully the brepjs-cad implement skill reproduces designed parts, or to diagnose false positives and missed codes in the verify harness.

When not to use it

Avoid it for evaluating other skills, for automated billed CI runs (use npm run eval:live instead), or in an environment without a browser or build capability.

Security analysis

Caution
Quality score90/100

The skill orchestrates a legitimate local evaluation harness using shell commands, npm builds, a browser install, and subagent dispatch. No destructive, exfiltrating, or obfuscated actions are present, but it does use powerful tooling (bash, network, subprocesses) for its intended purpose, warranting a caution rating.

Findings
  • •Instructs execution of npm build/test commands and node CLI scripts
  • •Installs Chrome via `npx puppeteer browsers install chrome` (network download)
  • •Runs snapshot rendering server and spawns blind judge subagents
  • •No declared allowed-tools, but the skill relies on shell/network capabilities
How this analysis is made

Examples

Evaluate implement mode on basics
/eval-skill implement basics
Run the precision/recall harness
/eval-skill verify
Evaluate all plain-brepjs examples
/eval-skill implement all

description: Run a brepjs-cad skill eval in this Claude session and propose fixes (no API key). /eval-skill [target]: implement (default — re-author the playground examples, verify/render/judge, two-signal scorecard) or verify (run the precision/recall harness). The measure-and-propose sibling of /heal-skill. argument-hint: '[target: implement | verify] [scope] (default: implement, all plain-brepjs examples)'

brepjs-cad skill eval (manual loop)

For verify: run npm run eval:verify -w brepjs-cad (bench/verifyEval.ts) and report the precision/recall table + any false-positive or missed-code finding; propose a skills/verify/SKILL.md (or HINT_TABLE) fix. For implement (default), continue below.

Measure the deployed implement skill by re-authoring the playground examples — the quality bar — from their descriptions through this Claude Code session: you author each part, and a blind judge subagent grades it (you never grade your own output — see bench/blind-judge.md). No API key, no billing. The point of this loop is not the score — it's the findings: each playground part the skill can't reproduce as a designed object (not just a valid blob) is a concrete SKILL.md gap to close. (npm run eval:live is the billed SDK counterpart; it defaults to the playground corpus, --corpus prompts for the legacy bench/prompts.ts.)

Inputs

  • Corpus = the playground examples (apps/playground/src/lib/examples/, aggregated by index.ts into EXAMPLES). These ARE the quality bar and grow over time — re-read the catalog each run so new examples are picked up automatically. Use the basics and mechanical categories (plain-brepjs designed parts); skip bim / sheet-metal (those need the brepjs-bim / brepjs-sheetmetal skills, not this one).
  • Per example: the prompt is its description (the NL intent — all a real author gets); label names it. $ARGUMENTS selects a category (basics | mechanical), one example id, or all / empty for both plain-brepjs categories.
  • Quality reference: the example's own code IS the bar. To render it for a side-by-side, adapt it to a .brep.ts — change from 'brepjs/quick' → from 'brepjs' and export default <shape> → export default () => <shape> — then verify --check --snapshot. The author's part should read as designed as the reference, not just valid.
  • Authoring contract: packages/brepjs-cad/skills/implement/SKILL.md — follow it exactly; that is the thing under test. Do not show the author the reference code, or lean on outside brepjs knowledge the skill doesn't give you, or you measure yourself.

Setup (once per session)

The visual judge needs rendered snapshots → the built CLI + viewer + Chrome. Build only what's missing:

  1. Root library — test -f dist/index.js || npm run build
  2. Snapshot viewer — packages/brepjs-cad/viewer/dist, built by the brepjs-cad viewer build (NOT brepjs-viewer — that's a different package whose build does NOT produce this dist). Rebuild if missing OR stale — a dist older than viewer/src throws globalThis.__setScene is not a function and then every --snapshot fails silently (this is easy to hit after pulling: a viewer/src change leaves the committed dist behind): [ -f packages/brepjs-cad/viewer/dist/index.html ] && [ -z "$(find packages/brepjs-cad/viewer/src -newer packages/brepjs-cad/viewer/dist/index.html)" ] || (cd packages/brepjs-cad && npx vite build --config viewer/vite.config.ts)
  3. CLI — test -f packages/brepjs-cad/dist/cli/main.js || npm run build --workspace=brepjs-cad
  4. Chrome — cd packages/brepjs-cad && npx puppeteer browsers install chrome

If the viewer/Chrome can't be built, run auto-only: skip --snapshot, mark every judge:—, and say so loudly in the scorecard (a built-but-unjudged part is a coverage gap, not a pass).

Author parts into a scratch ESM dir so import 'brepjs' resolves and the kernel loads: mkdir -p /tmp/brepjs-eval && printf '{"type":"module"}\n' > /tmp/brepjs-eval/package.json.

The loop — per selected example, ≤ 4 attempts (designed parts need the polish pass)

  1. Brief. Convert the example's description to explicit params (mm, datums, features) per SKILL.md step 1. Read the closest skills/implement/examples/*.brep.ts first. Do not read the playground example's code — that's the answer key.
  2. Author <id>.brep.ts following SKILL.md: short API, unwrap() the Result-ops, export default () => <shape>. Snapshot serially (the render server is a singleton on port 7373; concurrent --snapshot runs error out).
  3. Verify + render (one spawn): node packages/brepjs-cad/dist/cli/main.js verify <id>.brep.ts --check --json <id>.report.json --snapshot <id>-shots/
  4. Auto signal (objective): auto.pass is ok === true (a valid manifold solid / assembly). Playground descriptions rarely pin dims; if one does, check the bbox by span/extent, not absolute position (matches checkAuto).
  5. Judge signal (the quality bar): grade with a blind judge subagent, not yourself. Render the reference (adapt the example's code: brepjs/quick→brepjs, export default X→export default () => X) and the author part, copy both to neutral A/B filenames (coin-flipped so neither role is fixed), and dispatch a judge never told which is whose: it returns which render better realizes the description as a designed object (right features, present and legible) or whether both are blobs. One judge, escalate to 3 on tie-good/low-confidence; decode against your private map, then record the judge.pass verdict with its reason. Full protocol: bench/blind-judge.md.
  6. Repair + polish. If auto.pass is false, fix the smallest responsible section from the report hints. If valid but blobby, do the polish pass (SKILL.md step 8). ≤ 4 attempts; track the first attempt vs the eventual (the lift signal).

Scorecard

Emit in the canonical formatScorecard shape (bench/score.ts) so manual and eval:live runs are comparable:

  • Header: model=<this session's model> brepjs=<version> <date> units=mm.
  • Per prompt: valid | INVALID, judge:✓ | ✗ | —, with failure lines / judge reason.
  • Per category: valid% judge% both% (n=), then a TOTAL row.
  • first-try both% vs eventual both% + lift; then the failure-mode breakdown (which codes hit how often).
  • If any built part went unjudged: ⚠ judge coverage line (both% silently collapses to auto% for those).

Findings — the payoff

After the scorecard, summarize where SKILL.md succeeded and where it fell down: ambiguous guidance, a missing/contradictory API signature, an example that misleads, a hard-rule that over- or under-warns. Propose concrete SKILL.md edits (and core-library bugs if a verify report exposes one). Then ask whether to apply them.

Optional — log to Langfuse

If the LANGFUSE_* keys are set, record the run so it trends over skill versions. Keys live in the repo-root .env as LANGFUSE_HOST / LANGFUSE_PUBLIC_KEY / LANGFUSE_SECRET_KEY; the SDK reads LANGFUSE_BASE_URL, so bridge first or it silently hits EU cloud: set -a; . ./.env; set +a; export LANGFUSE_BASE_URL="${LANGFUSE_BASE_URL:-$LANGFUSE_HOST}".

Once per corpus change, sync the dataset: npm run eval:dataset:sync -w brepjs-cad (upserts the playground examples into the brepjs-playground dataset, keyed by example id).

Write the scorecard as JSON matching bench/score.ts Scorecard — { model, brepjsVersion, skillVersion, date, results: EvalResult[] }, where each result's id is the playground example id and carries auto, judgePass, and firstTry (so the lift is computed) — then push: npm run eval:push -w brepjs-cad -- <scorecard.json>. It records two things, both no-op without keys: (1) one eval-run trace with the aggregate scores (both, first_try_both, eventual_both, lift), and (2) a dataset run on brepjs-playground — one trace per part, scored and linked to its dataset item — so skill versions compare per part in the dataset Runs view. The run name is the skillVersion.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/brepjs-cad-skill-eval-implement-verify-mu0qzowj/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/brepjs-cad-skill-eval-implement-verify-mu0qzowj' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/brepjs-cad-skill-eval-implement-verify-mu0qzowj/download' --output '.skill-downloads/brepjs-cad-skill-eval-implement-verify-mu0qzowj/SKILL.md.part' && mv '.skill-downloads/brepjs-cad-skill-eval-implement-verify-mu0qzowj/SKILL.md.part' '.skill-downloads/brepjs-cad-skill-eval-implement-verify-mu0qzowj/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/brepjs-cad-skill-eval-implement-verify-mu0qzowj/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills