/brepjs:cad a natural-language part request, e.g. "a wall bracket for a 40mm pipe with two M4 holes"from brepjs
Orchestrates a full parametric CAD workflow using brepjs: brainstorm spec, design build sequence, implement, verify, and polish/export with user confirmation gates between phases.
Ships in brepjs. Installing the plugin adds it to Claude Code.
Drive a brepjs part from a request ($ARGUMENTS) through the full pipeline. You run in the main
session and own every user interaction — the worker subagents cannot ask the user anything, so
all confirmation gates live here, in this command.
Run the phases in order. Stop at each GATE and wait for the user before continuing.
Load the brepjs-brainstorm skill. Turn $ARGUMENTS into an explicit spec (envelope, datums,
features, material, tolerances, assumptions). Ask open scoping questions in prose; use
AskUserQuestion only for concrete mutually-exclusive choices (fastener size, material, edge finish).
GATE: show the spec table and confirm it with the user (AskUserQuestion or prose) before continuing. Incorporate corrections.
Load the brepjs-design skill. Decompose the confirmed spec into a numbered build sequence (base
primitive → booleans → sketched features → modifiers → multiplicity), preferring reliable ops and
flagging advanced/risky steps and any mechanism motion-validation step.
GATE: show the build sequence and get approval before authoring.
Compile the spec + approved sequence into a single prose brief (a markdown spec table + the
numbered sequence). Spawn the brepjs-implementer agent with that brief as its prompt. It reads
only the implement skill, authors <name>.brep.ts, and verifies to ok:true. Pass nothing else —
keep the handoff to the brief (clean-room).
Spawn the brepjs-verifier agent on the authored part. Collect its report + renders.
GATE: show the user the ok verdict, measured dimensions, and snapshot paths. They either
approve (→ polish/export) or request a repair — feed their note + the report hints back into
a fresh implementer brief and loop 3→4. Exit the loop on approval.
If the part should look designed (products, toys, mechanisms — not purely functional/internal), spawn the brepjs-polisher agent; it polishes additively (re-verifying each edit) and exports. Otherwise have it export directly.
Report the final STEP path, measured dimensions, and the pre/post renders.
brep (in the brepjs-cad package). If brep isn't on PATH, run
npx -y -p brepjs-cad brep ….brepjs-brainstorm … brepjs-polish) also auto-trigger on their own
for single-phase use; this command is the orchestrated full-pipeline path.What the command file sets; muted values are Claude Code's defaults
cad, parametric-modeling, brepjs, 3d-modeling, design-automation
7-day visitors to each command page
npx claudepluginhub andymai/brepjs --plugin brepjsOther plugins' commands for the same job