/3d-print-designer:3d-print-designerfrom 3d-print-designer
Designs parametric, FDM-print-optimized OpenSCAD (.scad) models with material selection (PLA/PETG/ABS) and print orientation optimization.
Ships in 3d-print-designer. 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.
Design and generate parametric, FDM-print-optimized OpenSCAD (.scad) models.
The expensive failure is reasoning too long before acting. One run thought until it hit the output cap and never wrote a file. So:
echo() and assert(), or into a one-line python -c. Don't hand-derive coordinates in thinking..py tools; don't read their source (--help lists the options). For a long .scad, grep it or read line ranges rather than re-reading the whole file.If the user hasn't named a printer (or given its build volume and nozzle), your first reply is only that question: no files, no design yet. Once you know it, read printer-configuration.md. It has the known-printer specs table, the manual fallback, and how the specs drive the design. When modifying an existing model, its headers already name the printer and material: see Modifying an existing model.
Pick the material within the printer's capabilities. Warn if the printer can't handle the requested one and suggest an alternative. If the user hasn't specified one, recommend:
| Use Case | Recommended | Why |
|---|---|---|
| Prototypes, visual models, fine detail | PLA | Best overhangs, dimensional accuracy, easy to print |
| Functional/mechanical parts, snap-fits | PETG | Ductile, impact-resistant, good layer adhesion |
| Outdoor use, heat exposure | PETG | Higher Tg (75-85C vs 55-65C), moderate UV resistance |
| Living hinges, flexible features | PETG | 200-300% elongation vs PLA's 2.5-6% |
| Watertight containers, cold food contact | PETG | Low water absorption, food-safe resin (coated) |
| High heat resistance (up to 80C) | ABS | Tg 100-110C, best heat resistance of common filaments |
| Impact-resistant parts | ABS | 3-5x impact strength of PLA |
| Smooth surface finish (vapor smoothing) | ABS | Acetone vapor smoothing eliminates layer lines |
| Multi-part solvent-welded assemblies | ABS | Acetone welding creates near-bulk-strength bonds |
Then read only the chosen material's file: material-pla.md, material-petg.md or material-abs.md.
Default: support-free. Supports waste material, mark surfaces, risk failures and add post-processing, and most models avoid them through orientation, geometry changes and self-supporting features. The techniques: overhangs ≤45° from vertical; 45° chamfers under ledges; teardrop horizontal holes; features tapered from below; pointed (gothic) arches; short bridges instead of overhangs; splitting at overhang boundaries; built-in ribs and pillars. Details are in fdm-design-principles.md, which you need only for the harder cases.
If the model is feasible both ways, ask: "This can print without supports (with some compromises like chamfered undersides or a split), or with supports for a cleaner shape. Which do you prefer?" If supports are unavoidable (internal cavities, deep recesses), say why, minimise them, and check for soluble-support capability. With no answer, go support-free.
The same steps for a single part or an assembly.
assert().--export . writes one STL per printable part. On a Bambu Lab printer, also make the project 3MF now (bambu-3mf-export.md), without waiting to be asked: it opens in Bambu Studio with the print settings applied. Build it from the .scad, or with --mesh from the STL. Doing this before the review means a slow or stalled review can't cost the user their files. Re-export after any fix.Assemblies: make each part its own module, with a material-appropriate tolerance (PLA 0.2, PETG 0.3, ABS 0.4mm for sliding fits) and an assembly() view. Document each part's print orientation separately in PRINT SETTINGS. Add a clash_* part for every mating or moving pair (below) so the gate proves they don't collide.
Read the file's DESCRIPTION and PRINT SETTINGS headers first (grep or a line range). They give the printer, material, terminology map and common modifications, so don't re-ask Steps 0-2 or reload their references unless the change affects them (a material change does). Make the change through the parameters the header names, keep the asserts, and update the headers (dimensions, what changed). Then run the gate on every part and save the deliverables. Use the review tier that fits the change (Review tiers).
Every generated .scad file follows this structure:
// === DESCRIPTION ===
// [Name]: [What it is in plain English and what problem it solves]
// [Physical context: where it lives, what it mounts to/interfaces with,
// environment, forces and loads it experiences]
//
// Design decisions:
// - [Why this shape/structure was chosen]
// - [Why this print orientation — e.g. "loads align with XY layer plane"]
// - [Any non-obvious trade-offs — e.g. "thicker back wall trades material
// for rigidity under pumping loads"]
//
// Terminology → code:
// "the shelf" → shelf_thick, shelf_module()
// "pump hole" → tap_hole_dia, tap_hole()
// "side walls" → wall_thick, side_wall()
// "mounting bolts" → wall_bolt_dia, bolt_hole(), upper_bolt_z, lower_bolt_z
//
// Common modifications:
// Make shelf thicker → shelf_thick (min 2*wall_thick for strength)
// Bigger pump hole → tap_hole_dia (add 0.3mm for PETG tolerance)
// Move bolt positions → upper_bolt_z, lower_bolt_z (keep ≥30mm from edges)
// Fit different printer → check bracket_height/width/depth vs build volume
//
// Overall dimensions: [W] × [D] × [H] mm (fits [printer] [build volume])
// Coordinate system: X = [axis], Y = [axis], Z = height from build plate
// NOTE: Model is in print orientation — OpenSCAD preview matches the print.
// [If use orientation differs: "In use, Z becomes the wall-facing axis"]
// Final review: [YYYY-MM-DD, reviewer model ID, once a final review has run]
// === PRINT SETTINGS ===
// Material: PLA (or PETG, etc.)
// Layer Height: 0.2mm
// Walls/Perimeters: 4 (1.6mm wall thickness)
// Infill: 20% gyroid
// Supports: None required (designed support-free — all overhangs ≤45°, horizontal holes use teardrop profile)
// Orientation: As modeled (Z=0 = build plate). [Use-vs-print note if applicable]
// Notes: [Any special instructions]
// === PARAMETERS ===
// Printer settings
nozzle_diameter = 0.4;
layer_height = 0.2;
// Part dimensions (user-configurable)
// ...
// === DERIVED CONSTANTS ===
extrusion_width = nozzle_diameter * 1.125;
wall_thickness = extrusion_width * 4; // 4 perimeters
fudge = 0.01; // Boolean operation overlap
tolerance = 0.2; // Mating part clearance (PLA: 0.2, PETG: 0.3, ABS: 0.4)
ef_chamfer = 0.4; // Elephant foot compensation
$fn = $preview ? 32 : 64; // Low for preview, high for render
// === MODULES ===
// One module per logical part/feature
// === ASSEMBLY / RENDER ===
// A single-part file may skip the selector; otherwise list every value (see Part names)
part = "all"; // "all", "base", "lid", "clash_lid"
if (part == "all") assembly();
if (part == "base") base();
if (part == "lid") lid_print(); // flipped into print orientation, on Z=0
if (part == "clash_lid") intersection() { base(); lid_assembled(); } // must render empty
The DESCRIPTION block lets a later session modify the model without the original conversation. Aim for 15-30 practical lines covering:
"user term" → param_name, module_name() for every user-facing feature, so a later session can turn "make the shelf thicker" into the right edit.Every claim in the header must be true of the geometry: the gate checks the dimensions and the bed fit, and asserts check the rest.
The PRINT SETTINGS block specifies, in order: material (and why), layer height (0.2 standard, 0.12 fine, 0.28 draft), walls/perimeters (count and thickness), infill (% and pattern, gyroid by default), supports (goal "None required"; if needed, where and why), orientation (exact placement and why), and notes (drying, temperature, cooling).
List every value in the comment on the part = line. A plain name is a printed part, modelled in its print orientation on Z=0 as one connected body. The other values are named by what they are:
all, assembly*, explode*, section*, view*: views, which must compile but are never printed.plate_*, *_parts: print layouts with several bodies.clash_*: interference checks. Each is an intersection() of a mating or moving pair in its assembled pose (for a mechanism, at rest, mid-travel and end of travel), and must render empty. Pose parts that rest on each other fudge apart: faces that touch still render a sheet.check_*: your own diagnostics.The load-bearing FDM invariants, referenced throughout.
difference() and intersection() cutter overshoots the faces it cuts by fudge = 0.01. Coincident faces produce broken geometry.ef_chamfer (0.3-0.5mm at 45°) to every bottom edge.nominal + hole compensation + fit allowance, two separate numbers. Use the user's measured compensation if memory or the model header has one. Otherwise use this default, measured on one Bambu X1C (0.4mm nozzle, PETG): compensation +0.30mm; allowance -0.08 press (interference: 0.00 slides), +0.15 bearing, +0.30 free-running. Where a fit matters, offer the ladder coupon in printing-guidelines.md.assert() behind it, or is labelled unverified.For gears, snap-fits, living hinges and joints, see mechanical.md. Material-critical notes:
Read one only when its trigger matches.
A hard, deterministic gate that every part must pass before the review and before hand-off:
python "<skill-dir>/verify-model.py" model.scad --build-volume 256x256x256 --export .
It compiles every part value and checks each for clean stderr, one body, manifold, on the plate, and fits the build volume. clash_* parts must render empty. It prints GATE: PASS or the failing parts. If OpenSCAD isn't installed where you're running, install it in your sandbox if you can (verification.md says how). Without it there's no gate and no STL, and a .scad alone is not something a slicer can open. Read verification.md before your first gate run. It covers what each failure means, contracts, reporting, and the fallback without Python. Run the gate on initial generation and after any structural change. After a minor tweak, re-run it on just the changed parts (--parts).
A fresh-eyes peer review by a sub-agent. It covers what the gate can't: whether the geometry looks right in renders, whether the mechanism makes sense, the qualitative criteria, and FDM-rule compliance.
Which model reviews. It's fixed, so reviews are consistent from run to run:
model: "sonnet", including the only review a simple part gets.model: "fable", once the design is complete and about to be printed for the first time: every part built, the Sonnet findings fixed, gate green.
// Final review: 2026-09-29, claude-fable-5-1). Later sessions see it: they use Sonnet and don't offer Fable again, unless the user asks.fable, or the call fails because the model isn't available, run that review on "sonnet" instead and tell the user. Never offer a Fable review you can't run.Spawn it with the Agent tool on that model, in the foreground, since the next step needs its findings. Give it:
.scad path and the OpenSCAD path;<skill-dir>/design-review.md, your complete brief; the gate has passed."Don't read design-review.md yourself: it's the reviewer's brief, not yours.
Triage the findings (severity, what, where, suggested fix). Fix the real issues, re-run the gate and re-export after any structural fix, and push back on findings that are wrong or out of scope. Surface genuine trade-offs to the user. If the review fails or returns nothing, say so and hand off the verified files with that caveat. Don't loop.
Hand off the .scad, the STLs (and 3MF) saved in Workflow step 7, and any renders. Never hand off only the .scad: slicers can't open it. Name the file to open first (the .3mf on a Bambu printer, otherwise the STL). Then give a short summary: what the gate verified (its PASS line), what the review changed, and the residuals only a print can confirm.
user memory that they've been introduced.| File | Load when |
|---|---|
| printer-configuration.md | Step 0, always |
| material-pla.md / material-petg.md / material-abs.md | Step 1, the chosen material only |
| openscad-reference.md | Before writing code: language gotchas, FDM module patterns (teardrop, chamfered shelf, EF base) |
| verification.md | Before running the gate |
| design-review.md | Never yourself: it's the review sub-agent's brief |
| bambu-3mf-export.md | When making a Bambu 3MF |
| fdm-design-principles.md | Only for hard support-free or structural cases |
| printing-guidelines.md | Only for tolerance or overhang data the material file lacks |
| mechanical.md | Only for gears, snap-fits, hinges, joints (threads: pattern-fasteners.md) |
| printing-workflow.md | Only for a new user's export-to-print walkthrough |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub wilsonwaters/3d-printing --plugin 3d-print-designerOther plugins' skills for the same job