openscad

Create parametric OpenSCAD models, export STL meshes, and inspect mesh integrity.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Designing 3D-printable parts requires iterating on parametric CAD code and verifying that exported meshes are actually watertight and printable, which is tedious to do manually and easy to get wrong by trusting a successful exit code alone. ## Core Features & Use Cases - Parametric Modeling Guidance: Write OpenSCAD models with named millimetre dimensions, assertions for invalid parameter combinations, and small reusable modules. - Verified STL Export: Run a real OpenSCAD export into a staging directory and only replace part.stl on success, with compiler output logged to .harness/build.log. - Mesh Inspection: Analyze the exported STL for triangle count, volume, surface area, bounds, degenerate faces, and open or non-manifold edges, reported in .harness/mesh.json. - Use Case: Ask the agent to design a parametric enclosure with specific height, wall thickness, and rib constraints; it renders the model, verifies the mesh is closed, and lets you orbit, section, and measure the actual STL in the CAD Viewer. ## Quick Start Ask the agent to create a parametric OpenSCAD model of your part with your target dimensions and material constraints, then render and inspect the mesh in the CAD Viewer.

Frequently Asked Questions about openscad

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

FAQPage Schema
How do I create a parametric 3D model with OpenSCAD?

Define named millimetre dimensions at the top of model.scad, add assertions for invalid parameter combinations, and build the geometry from small reusable modules. You can render variants from the command line with openscad -o tall.stl -D height=100 model.scad.

How do I check if an STL file is watertight for 3D printing?

The inspection script welds vertex coordinates to five decimal places and verifies every edge is shared by exactly two triangles with opposite directions. It reports non-manifold edges, degenerate triangles, volume, area, and bounds in .harness/mesh.json.

Can OpenSCAD export STEP files for machining?

No, OpenSCAD does not natively export STEP. It exports STL meshes and 2D DXF contours; for B-rep editing or machining workflows you should use a true CAD tool rather than relabeling a mesh as STEP.

Why does my OpenSCAD build fail even though the script runs?

The build fails if the OpenSCAD binary is not found, the compiler exits nonzero, or the exported mesh has open edges or degenerate triangles. Check .harness/build.log for compiler output and set OPENSCAD_BIN if the executable is not on PATH.

Does a closed STL mesh guarantee my part is printable?

No. The watertightness check does not detect all self-intersections or certify wall thickness, strength, overhangs, or fit. You should still review orientation, supports, clearances, and process-specific wall requirements for your printer and material.