Zero Labs
Industry News / AI

I Taught Claude to Design 3D-Printable Parts. Here’s How

Source · Towards AI By Nicolas CHOURROUT

From the publisher’s feed, collected in the ZeroLabs newsroom.

If you own a 3D printer, you know the loop: you need a custom bracket, enclosure, or mount. You open Fusion 360, spend an hour wrestling with geometry, export an STL, slice it, print it, realize it doesn’t fit, and start over.What if you could just describe what you need and get a printable STL back?That’s what I built. It’s a Claude Code skill that turns conversational descriptions into parametric CadQuery scripts, complete with multi-view previews and iterative feedback loops. Claude doesn’t just throw a model over the wall. It collaborates with you to get it right.This is actually my second take on the idea. Last year I built a Streamlit app that did the same thing. I called it “vibe modeling.” It worked for simple shapes like bowls and doorstops, but hit walls quickly: no self-review, no real CAD kernel, and a full web app to maintain. This version fixes all of that.What is a Claude Code skill?Claude Code is Anthropic’s CLI agent for software engineering. It reads your codebase, writes code, runs commands, and iterates. Skills are markdown files that teach Claude domain-specific workflows, like a playbook it follows when a particular type of request comes in.My skill triggers on anything related to 3D printing: mentions of STL, enclosures, brackets, mounts, CadQuery, or even just describing a physical object you want to make. When it activates, Claude follows a structured workflow to go from “I need a Raspberry Pi case” to a printed part.The workflow: collaborative, not batchThe key design decision was making the process interactive. Early versions had Claude disappear for a while and come back with a finished model. This was bad. If the basic shape was wrong, all the detail work was wasted.Now the skill enforces a feedback loop:Claude gathers requirements conversationally, then builds the model in three visual checkpoints: base shape, features, final cleanup. At each phase it renders a preview and asks for feedback before moving on. You can say “make it 5mm taller” or “move the cable slot to the left” at any point. Mistakes get caught early. After delivery, all key parameters are presented in a table for quick tweaks.In action: MagSafe charging standThe iterative workflow really shows its value on a non-trivial model. Here’s a condensed version of the actual conversation:Me: “design a MagSafe stand for iPhone 17, vertical mode, using the Apple MagSafe chargerClaude: researches MagSafe puck dimensions (56mm diameter, 5.65mm thick), iPhone 17 MagSafe coil position, USB-C cable diameter. Generates base shape with tilted arm, puck recess, and cable routing. Shows 4-view preview.Not so stable first iterationMe: it might fall backwards when putting the phone on itClaude: extends the base behind the arm by 20mm for counterweight, adds a rear gusset for reinforcement. Rebuilds and shows updated preview.Me: the front slope prevents docking the phone, and the cable hole at the bottom isn’t connected to anythingClaude: removes the front gusset that was blocking phone access, fixes cable routing so the groove runs continuously from the puck down the back of the arm.Me: can we have the vertical part more to the front for stability like this: \ __\_ Claude: repositions the arm to the front of the base so the phone’s weight tilts back over the base center. The base extends behind for stability. Final model: 76 x 70 x 125mm.Four exchanges, including real slicer feedback with screenshots, to go from “MagSafe stand” to a stable, printable model with researched dimensions and proper cable routing. The back-and-forth with a real slicer is what makes this work. You catch structural and clearance problems before they waste filament.In action: iPhone 13 Pro TPU caseThis one pushed the skill in a different direction. Instead of a freestanding object, it’s a case that wraps around an existing product, so every dimension has to match the real phone precisely.Me: I need a case for iPhone 13 Pro, tough and that can be printed in TPUClaude: asks about case style, button coverage, and printer. Then researches iPhone 13 Pro dimensions (146.7 x 71.5 x 7.65mm, 7.45mm corner radius) from Apple’s Accessory Design Guidelines, button positions, camera module layout, and lightning port spacing. Generates first version with 2mm walls, covered buttons, camera cutout, and bottom openings.Me: the tactile buttons seem embossed in the wrong direction, the cutout at the bottom is way too wideClaude: buttons were cut as recesses instead of bumps. Flips them to protrude outward, splits the single wide bottom opening into three separate cutouts for lightning port and speakers.Me: optimize the lip angle for easy 3D printing, no sharp overhangClaude: the ridge was a rectangular shelf with a 90 degree overhang. Replaces it with a tapered pocket where the walls angle inward at 40 degrees, so it prints cleanly without supports.Each fix was fast, and the final model has print-friendly geometry like the 40 degree tapered lip that a human designer might not think to optimize for FDM (Fused Deposition Manufacturing, the technique used by 3D printers).Under the hoodA few things that make this work reliably beyond the interactive loop.The preview pipeline. Claude writes a CadQuery script, runs it to produce an STL, then renders a 4-view preview image using trimesh and pyrender. It reads the resulting image, self-reviews against a checklist, and iterates before showing anything to you.Why CadQuery? It installs via pip, has a Pythonic API that Claude writes well, and sits on a real CAD kernel (OpenCASCADE) so fillets, chamfers, booleans, and shells actually work. Dimensions are just Python variables, making parametric adjustments trivial.A design review checklist. After every preview, Claude checks: does the shape match the request? Are all features visible and clean? Is the bottom flat for bed adhesion? Are overhangs under 45 degrees? Are walls thick enough for FDM (>1.2mm)? This turned out to be the most valuable piece. It catches geometry bugs I wouldn’t notice until slicing, like boolean operations that fail silently or shells that are too thin to print.Print-friendly defaults. The skill encodes FDM best practices: 2mm wall thickness (1.2mm minimum), 0.3mm hole clearance, chamfers on bottom edges instead of fillets (fillets need supports), bridge spans under 20mm, overhangs under 45 degrees. When you mention your printer model or material (PLA vs. PETG vs. TPU), Claude adjusts tolerances accordingly.Try it yourselfThe skill is open source. Clone it into Claude Code’s skill directory and start designing:GitHub - flowful-ai/cad-skill: Claude Code skill for parametric 3D-printable model generation with CadQueryThe bigger pictureThe “build an app” version of this took a week: Streamlit frontend, OpenAI API, OpenSCAD subprocess, 3D viewport, file management. It worked for simple shapes but couldn’t self-review or handle complex geometry. This version is two markdown files and a Python script. The pattern is shifting from “build an app” to “build a plugin.” You plug domain expertise into an existing agent instead of rebuilding the scaffolding from scratch.Claude isn’t replacing CAD software. It’s making parametric design accessible to people who have a 3D printer and an idea but don’t want to learn Fusion 360. AI that shows its work and asks for feedback is robust. AI that disappears and comes back with a finished result is fragile.If you build something cool with this, let me know!I Taught Claude to Design 3D-Printable Parts. Here’s How was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.