/brepjs:brepjs-verifyfrom brepjs
Verifies brepjs CAD parts by running brep CLI, reading JSON reports (checks, assertions, hints), and reviewing snapshots. Guides iterative repair of the smallest failing section.
Ships in brepjs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the part on the kernel and judge it by the report, not by how the code reads. The CLI ships
in the brepjs-cad package as brep.
brep verify part.brep.ts --check --json report.json
--check type-checks before running (catches wrong-API calls early); the JSON report is the source
of truth. Iterate fast with brep watch part.brep.ts.
{
"ok": false, // true only if valid AND every assertion passes
"shapeType": "Solid",
"checks": [{ "name": "isValidSolid", "passed": false }],
"measurements": { "volume": …, "area": …, "bounds": {…} },
"assertions": [{ "name": "volume", "expected": 24000, "actual": 31200, "passed": false }],
"hints": [{ "code": "FILLET_NO_EDGES", "fix": "…", "nextStep": "…" }],
"errorInfos": [{ "code": "…", "message": "…" }]
}
ok is the verdict. false → not done. With an expected block, ok also requires every
assertion to pass.checks = kernel validity (manifold solid, positive volume). A failed check means the geometry
is broken, not just wrong-sized.shapeType: 'Compound' is normal for a single body. A cut, a fillet, or a chain of cuts
often reports the result as Compound even though it's one watertight solid — fine as long as
ok:true and the validity checks pass. Only a loose Compound from a failed fuse of
merely-touching solids is a problem (../brepjs-implement/references/booleans.md). Don't retry a valid
part just because it isn't labelled Solid.assertions = declared intent vs reality. A failed assertion means valid-but-wrong.hints = actionable fix + next step keyed on the error code. Read these before guessing.errorInfos = raw structured failures (code + message) the hints derive from. Cite the
code when repairing.Add --snapshot shots/ for iso/front/top/right PNGs; each has the bbox size (W × D × H) burned in,
so you can read scale from the image. Review against the brief. A visual concern is not a
conclusion: convert a dimensional one to a measurement ("hole looks off-center → check bounds");
a design-quality one ("looks lumpy / glued-from-primitives") goes to brepjs-polish. Don't declare
done without a snapshot.
code/hints localize the cause (INVALID_FILLET_RADIUS → reduce radius vs local edge
length; *_NOT_3D → you passed a 2D shape to a 3D op; BOOLEAN_HAS_ERRORS → inputs
overlap-degenerate).ok:false is wrong, not done. Treat it like a crash.brep verify part.brep.ts --expect-code <CODE> exits 0 only if the report emits <CODE>;
--expect-invalid exits 0 only if ok:false. Use these to assert that a known-bad part fails the
right way.
brep bin)verify <files...> (default): report; flags --check, --json [path|-], --step, --glb,
--snapshot <dir>, --serve, --no-open, --expect-code <CODE>, --expect-invalid. One file →
the full report (all flags). Multiple files or a quoted glob (brep verify "parts/*.brep.ts") →
a validity-only JSON array, exit 1 if any part is invalid (single-file artifact flags are ignored).snapshot <file> [--label <tag>]: render iso/front/top/right PNGs without re-verifying.init <name>: scaffold <name>.brep.ts + tsconfig.json.watch <file>: re-verify on every save.export <file>: batch STEP/GLB/STL behind a validity gate (--step/--glb/--stl/--all).measure <a> [b]: measurements for one part, or distance between two.diff <a> <b>: compare two parts' measurements.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
brepjs, cad-verification, geometry-checking, snapshot-review
5 skills in this plugin
/brepjs-brainstormUse at the START of any request to design, model, create, build, or 3D-print a physical part or assembly in brepjs — a bracket, enclosure, mount, gear, gridfinity bin, fixture, knob, adapter, and the like. This is the entry point to the brepjs CAD pipeline. It turns a vague or natural-language request ("a bracket for my router", "a gridfinity bin") into an explicit, buildable spec (dimensions in mm, datums, features, material/finish, tolerances) before any geometry is written, then hands off to brepjs-design → brepjs-implement → brepjs-verify → brepjs-polish. Runs in the main session so it can ask the user clarifying questions./brepjs-designUse when you have a brepjs part spec and need to decompose it into an ordered build sequence — choosing which kernel operations to use and in what order, preferring reliable ops and flagging advanced ones (sweeps, lofts, mechanisms) before any code is authored. Runs in the main session./brepjs-implementUse when authoring or editing a brepjs `.brep.ts` part — writing the geometry with the functional API (box, cylinder, fuse, cut, fillet, sketch→extrude…), declaring an `expected` block, and following the hard rules (import every function, unwrap Results, select edges, coordinate semantics). Also covers buildings/BIM/IFC via the declarative family layer (references/families-bim.md). This is the authoring step; pair it with brepjs-verify to check the result./brepjs-polishUse when a valid brepjs part should look designed rather than glued-from-primitives (products, toys, mechanisms, anything a human eyeballs), and when exporting/handing off the result — the polish pass plus STEP/GLB/STL export. Skip for purely functional or internal parts.npx claudepluginhub andymai/brepjs --plugin brepjsOther plugins' skills for the same job