Install any skill in seconds. Free to start, no credit card required.
Get Started Free →fradser/use-openscad
Writes OpenSCAD code and drives the `openscad` command-line compiler to produce STL/3MF/AMF/DXF/SVG/PNG outputs from parametric `.scad` models. This skill should be used when the user asks to design a 3D-printable part, generate a laser-cut 2D plate, render a preview image of a CAD model, export STL for 3D printing, batch-render parametric variants, or convert between mesh formats. Invoked via "/hardware:use-openscad".
Passed 16 of 19 test cases with the skill, and 12 of 19 without it.
and 1 more in the full report
4 fixed14 passed either way4 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
Since CLI exit codes and flags vary between releases, what CLI flag should be invoked to inspect the locally available CLI flags directly from the executable?
| Checked | Without skill | With skill |
|---|---|---|
| The CLI command runs openscad --help. | Missed | Passed |
The instructions your model reads when the skill loads.
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.
openscad_run --version first to confirm it works..scad model using references/language.md for syntax. Make dimensions -D variables when the user wants parametric control from the command line.references/cli.md. Use references/workflows.md for end-to-end recipes and references/design.md for printability rules.--render is NOT needed for them. --render only affects PNG image export (without it, PNG uses OpenCSG preview). A plain openscad -o out.stl model.scad produces a complete mesh. For STL, explicitly pass --export-format binstl (ASCII is the current default; binary is the planned future default). After export, scan stderr for manifold warnings — see below./Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD. On Linux try openscad or openscad-nightly; on Windows invoke openscad.com (the wrapper, not openscad.exe). On remote servers, use the Docker image (see hardware/scripts/docker/openscad/). MUST confirm with openscad_run --version before building a pipeline.--hardwarnings makes the first warning fatal. Do NOT assume — for CI gating, run with --hardwarnings and treat any non-zero exit as failure. When unsure of a flag, run openscad --help and read the actual list.is_undef(x), not x == undef. -D var=val constants from the CLI override top-level program values.use libraries, do not include them. include <lib.scad> is literal copy-paste that runs top-level geometry and confuses error line numbers; use <lib.scad> suppresses top-level geometry and exposes only functions/modules. Use use for any library file.-D values need shell quoting. -D 'mode="parts"' (bash) — the inner quotes are part of the OpenSCAD expression. Numeric -D w=60 needs no quotes.2>&1 and grep for manifold, self-intersect, degenerate, warning — OpenSCAD prints mesh problems to stderr even when the exit code is zero. See references/workflows.md.| User wants | Flags | Reference |
|---|---|---|
| STL for 3D printing | --export-format binstl -o out.stl | references/cli.md |
| 3MF / AMF | -o out.3mf | references/cli.md |
| 2D DXF / SVG (laser cut) | -o out.dxf | references/cli.md |
| Preview PNG | --preview --imgsize W,H --viewall --autocenter (--render for accurate non-preview) | references/cli.md |
| Parametric variants | -D var=val (repeatable) | references/cli.md |
| Batch render | shell loop over -D values | references/workflows.md |
| Mesh conversion (STL→3MF) | import() in a re-export .scad | references/workflows.md |
| Language syntax | modules, functions, CSG, extrusion | references/language.md |
| Printability rules | walls, overhangs, clearance | references/design.md |
# Resolve the OpenSCAD binary — local binary or Docker container
test cases passed, vs 12 / 19 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.