3d-print-design
/3d-print-design
Projektuje części do druku 3D z opisu lub wymiarów i eksportuje pliki STL, 3MF lub STEP gotowe do cięcia.
- Autor
- aditya-cyberverse ↗
- Repozytorium
- fabricator ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 03.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 15
- Skrypty
- 10
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 03.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 10 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/build.py, scripts/check_print.py, scripts/printlib.py, scripts/render.py, scripts/scad_build.sh, scripts/setup.sh, templates/bracket.py, templates/enclosure.py, templates/gear.py, templates/part_template.py
Co robi i kiedy
Projektuje części do druku 3D z opisu lub wymiarów i eksportuje pliki STL, 3MF lub STEP gotowe do cięcia.
Oryginalny opis (EN)
Design 3D-printable parts from a plain-language description, sketch or dimensions and export ready-to-slice STL/3MF/STEP files. Use whenever the user wants to model, design, CAD, or 3D print something — enclosures, brackets, mounts, gears, adapters, robot parts, replacement parts, organizers — or wants an existing STL checked for printability. Uses parametric CadQuery (Python) with an OpenSCAD fallback, checks the mesh for print problems, and renders preview images so the design can be verified before printing.
Jak działa
- 0. Setup (once per environment)
- 1. Understand the part (before any code)
- 2. Model it as parametric code
- 3. Build
- 4. Check printability
- 5. Look at it
- 6. OpenSCAD fallback
- 7. Deliver
- Iterating
- Hard-won rules (short version — details in reference/printing-rules.md)
Podgląd SKILL.md
---
name: 3d-print-design
description: Design 3D-printable parts from a plain-language description, sketch or dimensions and export ready-to-slice STL/3MF/STEP files. Use whenever the user wants to model, design, CAD, or 3D print something — enclosures, brackets, mounts, gears, adapters, robot parts, replacement parts, organizers — or wants an existing STL checked for printability. Uses parametric CadQuery (Python) with an OpenSCAD fallback, checks the mesh for print problems, and renders preview images so the design can be verified before printing.
---
# 3D Print Design
Turn "I need a part that does X" into a file the user can drop into a slicer and print first time.
The whole job is a loop: **understand → model (parametric code) → build → check → look → fix → deliver.**
Never hand over a model you have not built, checked and looked at.
## 0. Setup (once per environment)
```bash
bash <skill_dir>/scripts/setup.sh # installs cadquery, trimesh, manifold3d, matplotlib
```
`<skill_dir>` is the folder this SKILL.md lives in. If `pip` is blocked, the
OpenSCAD path (section 6) still works where `openscad` is installed.
## 1. Understand the part (before any code)
Pin these down. Ask only for what you cannot sensibly assume — and say what you assumed.
| Need | Why it matters | Default if not given |
|---|---|---|
| What it does / what it mates with | Decides critical dimensions | — (must know) |
| Critical dimensions (mm) | Mating parts must fit | Ask, or measure from a datasheet |
| Printer type | FDM vs resin changes every rule | FDM, 0.4 mm nozzle |
| Material | Heat, strength, flex | PLA (PETG if outdoors/hot, TPU if flexy) |
| Bed size | Part must fit or be split | 220 × 220 × 250 mm |
| Load / stress direction | Decides print orientation | Light duty |
| Hardware | Screws, nuts, inserts, magnets, bearings | M3 |
For known components (Arduino, ESP32, Raspberry Pi, servos, motors, bearings,
batteries) look up the real datasheet dimensions — do not guess hole spacing.
Read `reference/printing-rules.md` before modelling anything that has to fit,
snap, thread, flex, or carry load.
## 2. Model it as parametric code
Start from a template in `templates/` when one fits (copy it, don't edit in place):
- `part_template.py` — blank skeleton with the required structure
- `enclosure.py` — electronics box + lid, PCB standoffs, cable/USB cutouts, screw or snap lid
- `bracket.py` — L-bracket / mount with slots, fillets and gussets
- `gear.py` — involute spur gear with shaft bore + set-screw / D-flat options
Rules for every model file:
1. **All dimensions are named parameters at the top** (mm). No magic numbers buried in the code.
2. **Derive, don't repeat**: `outer_w = inner_w + 2 * wall`, not two hand-typed numbers.
3. Put tolerances in as parameters (`clearance = 0.2`) so the user can tune for their printer.
4. Build from simple solids + booleans; fillet/chamfer **last** (fillets fail on complex edges — wrap risky ones in `try/except` and skip).
5. Model in the orientation it will print: **flat face on Z=0, part above it**.
6. Expose the result as `result` (one solid) or `parts = {"name": solid, ...}` (multi-part).
CadQuery quick reference: `reference/cadquery-cheatsheet.md`.
Common mechanical features (screw holes, nut traps, heat-set inserts, snap fits,
living hinges, threads, text): `reference/features.md`.
## 3. Build
```bash
python3 <skill_dir>/scripts/build.py model.py --out out/ --formats stl,step,3mf
# override any parameter without editing the file:
python3 <skill_dir>/scripts/build.py model.py --out out/ --set wall=2.4 --set inner_w=60
```
Writes one file per part per format, and `out/<name>.params.json` with the
exact values used. STEP is for editing in Fusion/FreeCAD/Onshape; STL/3MF are for slicing.
## 4. Check printability
```bash
python3 <skill_dir>/scripts/check_print.py out/part.stl --bed 220x220x250 --nozzle 0.4 --material pla
```
It reports: watertight / manifold, size vs bed, volume + estimated mass and
filament length, overhang area beyond 45° (with the heights where it happens),
thinnest walls, sealed internal cavities, flat base contact area, tip-over risk,
and a PASS / WARN / FAIL verdict (exit code 0 / 1 / 2).
- **FAIL** → fix before delivering (not watertight, too big for bed, walls thinner than the nozzle).
- **WARN** → fix if it's cheap, otherwise tell the user exactly what to expect (e.g. "needs supports under the USB cutout").
- Use `--orient` to try the 6 flat orientations and suggest the one with least overhang.
## 5. Look at it
```bash
python3 <skill_dir>/scripts/render.py out/part.stl --out out/part_preview.png
```
Makes a 4-view PNG (iso, front, side, top) with dimensions. **Open the PNG and
actually inspect it** — cutouts on the right face? Standoffs inside the box? Lid
the right way up? Most modelling bugs are obvious in the picture and invisible
in the code.
## 6. OpenSCAD fallback
If CadQuery can't be installed but `openscad` exists (or the user asks for `.scad`):
write a `.scad` with all parameters at the top (Customizer-friendly), then
```bash
bash <skill_dir>/scripts/scad_build.sh model.scad out/part.stl
```
and run the same `check_print.py` / `render.py` on the STL. Syntax: `reference/openscad-cheatsheet.md`.
## 7. Deliver
Give the user:
- the print files (`.stl` or `.3mf`) and the `.step`
- the parametric source (`.py` / `.scad`) so they can change it later
- the preview PNG
- a short **print sheet**: orientation, layer height, walls/perimeters, infill %, supports yes/no and where, material, estimated mass, and which parameters to tweak if the fit is off (e.g. "if the lid is too tight, raise `lid_clearance` from 0.2 to 0.3").
For fit-critical parts, suggest printing a **test coupon** first (just the
mating feature, a few mm tall) — `features.md` shows how to cut one out.
## Iterating
When the user says "make it taller / add a hole / it didn't fit": change the
parameter or feature, rebuild, re-check, re-render, and say what changed.
If a printed part didn't fit, ask by how much (calipers) and adjust the
clearance parameter — don't redesign.
## Hard-won rules (short version — details in reference/printing-rules.md)
- Clearance for a sliding/press fit on FDM: 0.15–0.3 mm per side. Holes print ~0.2 mm small.
- Walls ≥ 2 × nozzle (0.8 mm min, 1.6–2.4 mm normal). Floors/roofs ≥ 1.0 mm.
- Overhangs ≤ 45° print without support; bridges ≤ ~10 mm are fine.
- Horizontal holes: use a teardrop or flat-top shape to avoid supports.
- Layer lines are the weak direction — orient so the load runs along the layers, not across them.
- Chamfer the bottom edge (0.5 mm) instead of filleting it — fights elephant's foot and needs no support.
- Text: ≥ 0.6 mm stroke, ≥ 0.6 mm deep/raised, ≥ 6 mm tall for FDM.
Pliki w paczce (15)
- SKILL.md 7 KB
- reference/cadquery-cheatsheet.md 4 KB
- reference/features.md 4 KB
- reference/openscad-cheatsheet.md 2 KB
- reference/printing-rules.md 5 KB
- scripts/build.py 7 KB
- scripts/check_print.py 12 KB
- scripts/printlib.py 8 KB
- scripts/render.py 7 KB
- scripts/scad_build.sh 1 KB
- scripts/setup.sh 1 KB
- templates/bracket.py 3 KB
- templates/enclosure.py 5 KB
- templates/gear.py 4 KB
- templates/part_template.py 1 KB
Wersje
W bazie nie ma innych skilli o nazwie 3d-print-design.
Migawka bazy z 13.11.2026 · wersja paczki f74af85592d4 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 4 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90create-printable-models
Tworzy modele 3D gotowe do druku: obudowy, podstawki, osłony i pliki STL, STEP, OpenSCAD lub 3MF, z weryfikacją wymiarów. - 95cad
Modeluje w CadQuery bryły 3D i złożenia, sprawdza je i rysuje, na przykład obudowy, wsporniki czy przekładnie do druku lub obróbki. - 1003d-stl
Przygotowuje szczelny plik STL do druku z wymiarów lub obrazu i podaje ustawienia druku, np. uchwyty i łączniki. - 90Text to CAD
Zamienia opis obiektu 3D na kod CadQuery, uruchamia go i zapisuje modele STL oraz STEP do dalszej produkcji. - 100openscad-design
Projektuje, zmienia i sprawdza części 3D do druku w OpenSCAD przez narzędzia MCP: wsporniki, obudowy, adaptery i przyrządy. - 100create-cad-files
Tworzy z opisu w języku naturalnym wymiarowane części 3D i eksportuje zwalidowane pliki STEP, STP lub STL przez OpenCAD.