cad

Create, inspect, and validate parametric CAD parts and assemblies as build123d model scripts with STEP and mesh outputs.

465|41|Updated Aug 4, 2026
One-click install
npx skills add https://github.com/autonomous-ai/openharness --skill cad-autonomous-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cad
Source: https://github.com/autonomous-ai/openharness/tree/main/store/agents/text-to-cad/skills/cad
Command: npx skills add https://github.com/autonomous-ai/openharness --skill cad-autonomous-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cadgen, and includes references (resource) components.

What problem does it solve? Turning natural-language specs, reference images, or technical drawings into correct parametric CAD geometry is slow and error-prone, and generated STEP files often ship with silent geometry defects. This Skill provides a complete workflow for authoring build123d model scripts, building deterministic STEP/STL/3MF/GLB outputs, and validating them with geometric inspection and mandatory snapshot review. ## Core Features & Use Cases - Parametric model authoring: Write plain Python model scripts with decorated functions that build closed, labeled solids and assemblies, with parallel builds, freshness tracking, and a content-addressed store. - Geometry inspection and validation: Run refs, measure, align, frame, diff, validate, and interference checks against STEP documents, using selector refs like #o1.2.f1 or part labels. - Snapshot review and mesh export: Render PNG review packets of STEP or mesh files, declare STL/3MF/GLB outputs, and attach kinematics mates or animation clips for viewer posing. - Use Case: Ask for a two-piece 120 x 80 x 35 mm enclosure with aligned screw bosses; the Skill writes the model scripts, builds the STEP assembly, validates boss alignment and bounding box, snapshots the result, and hands the file to the CAD viewer. ## Quick Start Ask the agent to create a parametric CAD part from your dimensions, for example a mounting plate with four M4 clearance holes, and have it build, validate, and snapshot the STEP output.

Frequently Asked Questions about cad

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

FAQPage Schema
How do I generate a STEP file from a Python CAD script?

Write a Python script with one parameterless function decorated with @step that returns a build123d solid or labeled compound, then run it with python model.py. The build writes the .step file beside the script and skips rebuilding when nothing changed.

How do I validate a generated STEP file for geometry errors?

Run cadgen step inspect validate on the STEP file to check topology validity, closed shells, positive volume per solid, and self-intersection. Pair it with refs --facts for counts and bounds, since the refs ok flag only confirms selector resolution, not sound geometry.

Can I export STL or 3MF without generating a STEP file?

Yes, a model decorated only with @stl, @threemf, or @glb is a complete mesh-only model that writes no STEP file. You can also stack mesh decorators on a @step model or run cadgen stl build for one-off conversions.

How do I check if two parts in an assembly overlap?

Run cadgen step inspect interfere on the STEP file with a volume tolerance in cubic millimeters. It reports clashes between different parts separately from overlaps within one part, and returns INCONCLUSIVE when fewer than two bodies exist.

Why did my CAD model not rebuild after editing a child part?

Dependencies are pull-based: rebuilding a child does not update parents that link it, so rerun the parent script. Use cadgen store why model.py to see the freshness verdict clause by clause, including stale children and changed constants.

When should I not use this CAD generation workflow?

Avoid it for render-only concept art, CAM toolpaths, FEA conclusions, architectural BIM, or engineering certification. It produces geometrically plausible CAD models, not manufacturability, tolerance, or safety claims.