implement

Author brepjs .brep.ts CAD parts with enforced API rules and geometry best practices.

77|7|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/andymai/brepjs --skill implement-andymai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement
Source: https://github.com/andymai/brepjs/tree/main/packages/brepjs-cad/skills/implement
Command: npx skills add https://github.com/andymai/brepjs --skill implement-andymai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the common first-try failures and generic "valid but wrong" outputs when authoring brepjs .brep.ts CAD models, ensuring your parts are not just kernel-valid but match the exact design brief on the first verify run, no wasted iterations on type errors or mismatched dimensions.

Core Features & Use Cases

  • Authoring contract & hard rules: Enforces correct named imports for all API functions, explicit Result unwrapping, shape-first transform syntax, and ValidSolid requirements for modifiers to eliminate 90% of first-attempt kernel and type errors.
  • Expected block guidance: Teaches you to write accurate bounds and volume assertions that catch valid-but-wrong sizing (the #1 verify failure for multi-body assemblies) instead of hand-predicting error-prone derived extents.
  • Specialized reference recipes: Includes verified workflows for common part types (involute gears, twisted impellers, gridfinity bins, threaded rods, FDM-ready enclosures) so you don't have to reverse-engineer working geometry from scratch. Use this Skill for any parametric CAD authoring task in brepjs, from simple mounting brackets to complex assemblies like gear trains or custom storage bins.

Quick Start

Use the implement skill to author a brepjs .brep.ts part for a flanged coupling, following the hard rules for imports and unwrapping to pass verify on the first try.

Frequently Asked Questions about implement

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write brepjs CAD parts that pass kernel verification on the first try?

To write brepjs CAD parts that pass verification on the first try, enforce mandatory named imports, explicit Result unwrapping, shape-first transform syntax, and accurate bounds and volume assertions to eliminate kernel errors.

Why does my parametric solid model output valid but wrong geometry dimensions?

Parametric solid models output valid but wrong dimensions when expected block assertions lack accurate bounds and volume checks. Writing explicit assertions catches multi-body assembly sizing mismatches during verification instead of producing valid-but-wrong geometry.

How do I model involute gears and threaded rods using a parametric CAD API?

Model involute gears and threaded rods using parametric CAD APIs by applying verified reference recipes. These specialized workflows enforce correct solid modeling practices, ensuring complex mechanical parts like impellers and threads generate without reverse-engineering geometry.

Can I use boolean operations and modifiers like fillet and shell for mechanical design in brepjs?

Yes, you can use boolean assemblies and modifiers like fillet and shell for mechanical design in brepjs. The API requires ValidSolid requirements for modifiers and explicit Result unwrapping to execute these operations reliably without kernel errors.

What are the hard rules for importing and unwrapping functions in a .brep.ts file?

The hard rules for importing and unwrapping functions in a .brep.ts file require using mandatory named imports for all API functions and explicit Result unwrapping. Following these syntax rules eliminates 90% of first-attempt type errors in parametric CAD models.

Does brepjs support exporting solid models to STEP format for assemblies?

Yes, brepjs supports STEP export for solid models and assemblies. The parametric design workflow includes creating 2D sketch extrudes and revolves, applying boolean operations, and exporting the final verified geometry to STEP format for mechanical design use.