/openscad:parametric-designfrom openscad
Design parametric 3D models with OpenSCAD. Workflows for creating enclosures, mechanical parts, and assemblies. Use when the user asks to design, create, or model a physical object, enclosure, bracket, mount, or mechanical part.
Ships in openscad. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A structured approach to creating parametric 3D models with OpenSCAD and the model viewer.
Before writing any code, clarify:
// [Part Name] - [brief description]
// Units: mm
// === Parameters ===
width = 50;
depth = 30;
height = 20;
wall = 2;
corner_r = 2;
// === Derived ===
inner_w = width - 2 * wall;
inner_d = depth - 2 * wall;
inner_h = height - wall;
// === Quality ===
$fn = 32;
// === Assembly ===
main_body();
openscad-viewer:open { "file": "part.scad" }view from front and topAfter each significant change:
open result for dimension sanitymodule enclosure(size, wall, lip_h) {
difference() {
cube(size, center = true);
translate([0, 0, wall])
cube([size.x - 2*wall, size.y - 2*wall, size.z], center = true);
}
}
module lid(size, wall, lip_h) {
// Outer lid
cube([size.x, size.y, wall], center = true);
// Inner lip
translate([0, 0, -lip_h/2])
difference() {
cube([size.x - 2*wall + 0.2, size.y - 2*wall + 0.2, lip_h], center = true);
cube([size.x - 4*wall, size.y - 4*wall, lip_h + 0.1], center = true);
}
}
module l_bracket(w, h, d, t, hole_d) {
difference() {
union() {
cube([w, t, h]); // vertical
cube([w, d, t]); // horizontal
}
// mounting holes
for (x = [w*0.25, w*0.75]) {
translate([x, d/2, -1])
cylinder(h = t+2, d = hole_d);
translate([x, -1, h/2])
rotate([-90, 0, 0])
cylinder(h = t+2, d = hole_d);
}
}
}
module insert_boss(outer_d, inner_d, height) {
difference() {
cylinder(h = height, d = outer_d);
cylinder(h = height + 0.1, d = inner_d);
}
}
| Constraint | Guideline |
|---|---|
| Min wall thickness | 1.2mm (2-3 perimeters at 0.4mm nozzle) |
| Hole tolerances | Add 0.2-0.4mm to nominal diameter for FDM |
| Overhangs | Keep under 45 degrees or add supports |
| Bridge length | Under 10mm unsupported |
| Layer orientation | Strongest perpendicular to layer lines |
| Mating clearance | 0.3-0.5mm gap for FDM |
| Min feature size | 0.8mm for FDM |
When designing parts that fit together:
config.scad fileinclude <config.scad> in each part fileopenscad-viewer:open to switch between parts during design$fn = 16 for fast iteration, increase to 64+ for final# prefix to highlight a shape in debug: #cylinder(h=5, r=2);% prefix for transparent preview: %cube(20);! prefix to show only one shape: !cylinder(h=5, r=2);echo() to print computed dimensions to the console for debuggingdifference() cutters to avoid coincident facesWhat SKILL.md sets; muted values are Claude Code's defaults
openscad@fingerskier-plugins is listed by fingerskier/claude-plugins — review the source before installing
npx claudepluginhub fingerskier/claude-plugins --plugin openscad3 skills in this plugin
/model-viewerOpen, view, and inspect 3D models (.scad and .stl files) using the openscad-viewer MCP tools. Use when working with OpenSCAD files, STL files, 3D models, or when the user wants to see or inspect a model from different angles./openscad-languageWrite and edit OpenSCAD code for parametric 3D modeling. OpenSCAD language reference including primitives, transforms, boolean operations, modules, functions, and best practices. Use when creating .scad files, editing OpenSCAD code, or doing parametric/programmatic CAD.Other plugins' skills for the same job