Skip to content

Examples

The skill ships a gallery of complete, verified parts under skill/examples/<name>.brep.ts, each paired with a <name>.expected.json baseline. They are the few-shot reference the agent reads before authoring — and the corpus the deterministic eval replays. Read the one closest to your task before writing a new part.

Each example is a real .brep.ts you can run directly:

bash
npx -y brepjs-verify verify mounting-bracket.brep.ts --check --snapshot shots/

Primitives + booleans

The reliable core — start here.

  • mounting-bracket — base plate + upright web + bolt holes (box, fuse, cut).
  • flanged-coupler — flange + cylinder + bore, chamfered.
  • transform-bracket — translate / rotate / mirror composition.

2D sketch → solid

A 2D profile driven up into 3D.

  • extruded-bracket — rounded plate + bolt holes (extrude).
  • revolved-pulley — V-groove profile revolved around an axis.
  • swept-gasket — a frame profile swept along a spine.

Modifiers

Validity-sensitive operations — verify carefully.

  • rounded-blockfillet on selected edges.
  • chamfered-blockchamfer.
  • hollow-enclosure — a filleted box, shelled to a wall thickness.

Gridfinity

Parametric primitives for the Gridfinity ecosystem.

  • gridfinity-baseplate
  • gridfinity-bin
  • gridfinity-divider

Anatomy of an example

Every example follows the .brep.ts contract: a default-exported zero-arg function plus an expected block that pins its measured dimensions. The sibling <name>.expected.json records the baseline volume / area / validity / shape-type that the eval replays within tolerance — so an intentional geometry change means re-recording that baseline, and an unintentional one shows up as a failed eval.

Next steps

Released under the Apache 2.0 License.