use-openscad
Installation
SKILL.md
Use OpenSCAD
Design parametric 3D and 2D parts in OpenSCAD and compile them to fabrication outputs with the openscad CLI. OpenSCAD is a functional code-based CAD language — modules and functions, CSG booleans, extrusion — ideal for an agent to write and iterate.
Process
- Understand what the user wants (a printable part, a laser-cut plate, a preview image, a mesh conversion) and pick the target format (STL/3MF/AMF for 3D printing, DXF/SVG for 2D cutting, PNG for preview).
- Locate and verify the binary (see "Locating the binary"). Run
openscad_run --versionfirst to confirm it works. - Author the
.scadmodel usingreferences/language.mdfor syntax. Make dimensions-Dvariables when the user wants parametric control from the command line. - Compile with the right flags from
references/cli.md. Usereferences/workflows.mdfor end-to-end recipes andreferences/design.mdfor printability rules. - After STL/3MF export, scan stderr for manifold warnings (see CRITICAL rules) before declaring success.