openscad
Create versioned OpenSCAD (.scad) files for 3D printing, render previews, and compare iterations. Use this when designing or iterating on 3D models.
- License 许可
- GPL-3.0
- 最近更新
- 2026-04-05
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- openscad
- description
- Create versioned OpenSCAD (.scad) files for 3D printing, render previews, and compare iterations. Use this when designing or iterating on 3D models.
- allowed-tools
- [ "Bash(*/render-scad.sh*)", "Bash(*/version-scad.sh*)", "Read", "Write", "Glob" ]
02 资源文件 1
- 脚本scripts/version-scad.sh1.3 KB
03 SKILL.md 正文
OpenSCAD Design Skill
Create versioned OpenSCAD files, render previews, and compare iterations for 3D printing designs.
Workflow
1. Determine the Next Version Number
Before creating a new .scad file, find existing versions:
.claude/skills/openscad/scripts/version-scad.sh <name>
This returns the next version number and filename. For example, if piano_001.scad exists, it returns piano_002.
2. Create the Versioned .scad File
Write the OpenSCAD code to the versioned filename (e.g., piano_002.scad).
3. Render the Preview
.claude/skills/preview-scad/scripts/render-scad.sh <name>_<version>.scad --output <name>_<version>.png
This creates a PNG with the matching version number (e.g., piano_002.png).
4. Compare with Previous Version
Read both the current and previous PNG images to visually compare:
- Current:
piano_002.png - Previous:
piano_001.png(if exists)
Evaluate what changed and whether the new version better matches requirements.
5. Iterate
If the design needs improvement:
- Analyze what's wrong
- Create the next version (e.g.,
piano_003.scad) - Render and compare again
File Naming Convention
<model-name>_<version>.scad -> <model-name>_<version>.png
Examples:
phone_stand_001.scad->phone_stand_001.pngphone_stand_002.scad->phone_stand_002.pnggear_001.scad->gear_001.png
Use underscores in model names, and always use 3-digit zero-padded version numbers.
Example Session
User asks for a piano model:
-
Check for existing versions:
.claude/skills/openscad/scripts/version-scad.sh pianoOutput:
piano_001(no existing files) -
Write
piano_001.scadwith initial design -
Render preview:
.claude/skills/preview-scad/scripts/render-scad.sh piano_001.scad --output piano_001.png -
Read
piano_001.pngto inspect the result -
If improvements needed, create
piano_002.scad, render topiano_002.png -
Read both
piano_001.pngandpiano_002.pngto compare iterations
Render Options
See /preview-scad for full rendering options:
--size <WxH>- Image dimensions (default:800x600)--camera <x,y,z,tx,ty,tz,d>- Camera position--colorscheme <name>- Color scheme (default:Cornfield)--render- Full render mode (slower, more accurate)--preview- Preview mode (faster, default)
Next Steps
Once the design looks correct in PNG previews:
- Export to STL: Use
/export-stlto convert the final version to STL format - The export includes geometry validation to catch printability issues
Full Pipeline
/openscad → /preview-scad → /export-stl (with validation)
Tips
- Start simple and add complexity in iterations
- Use meaningful model names that describe the object
- Keep each version's changes focused on specific improvements
- Document what changed between versions in your response to the user
- Only export to STL once the preview looks correct
- Always run slice-check before considering a model print-ready
04 同仓库更多 Skills
wds-8-product-evolution
Brownfield improvements — the full WDS pipeline in miniature for existing products
wds-7-design-system
Create, import, browse, and maintain design system components and tokens
wds-6-asset-generation
Generate visual and text assets from specifications through AI-powered creative production
wds-5-agentic-development
AI-assisted development, testing, and reverse engineering through structured agent collaboration
wds-4-ux-design
Transform ideas into detailed visual specifications through scenario-driven design
wds-3-scenarios
Create UX scenario outlines from Trigger Map through structured micro-steps