preview-scad
Render OpenSCAD (.scad) files to PNG images for visual verification. Use this after creating or modifying .scad files to see the 3D result and self-correct if needed.
- License 许可
- GPL-3.0
- 最近更新
- 2026-04-05
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- preview-scad
- description
- Render OpenSCAD (.scad) files to PNG images for visual verification. Use this after creating or modifying .scad files to see the 3D result and self-correct if needed.
- allowed-tools
- [ "Bash(*/render-scad.sh*)", "Read" ]
02 资源文件 1
- 脚本scripts/render-scad.sh3.4 KB
03 SKILL.md 正文
OpenSCAD Preview Skill
Render OpenSCAD files to PNG images so you can visually verify your work.
Usage
/preview-scad <file.scad> [options]
Workflow
- After creating or editing a
.scadfile, run this skill to render a preview - Read the generated PNG image to visually inspect the result
- If the result doesn't look right, fix the code and re-render
- Repeat until the design matches the requirements
Running the Render Script
.claude/skills/preview-scad/scripts/render-scad.sh <input.scad> [options]
Options
--output <path>- Custom output path (default:<input>_preview.png)--size <WxH>- Image dimensions (default:800x600)--camera <x,y,z,tx,ty,tz,d>- Camera position (default: auto-center)--colorscheme <name>- Color scheme (default:Cornfield)--render- Full render mode (slower, more accurate)--preview- Preview mode (faster, default)
Example
After creating phone_stand.scad:
.claude/skills/preview-scad/scripts/render-scad.sh phone_stand.scad
Then read the generated phone_stand_preview.png to see the result.
Visual Feedback Loop
When working on OpenSCAD designs:
- Write/edit the .scad file
- Render preview with this skill
- Read the PNG image to see what was created
- Evaluate: Does it match what the user asked for?
- If yes: You're done
- If no: Identify what's wrong, fix the code, and repeat from step 2
This iterative process helps ensure the final design meets requirements.
Next Steps
Once the preview looks correct:
- Export to STL: Use
/export-stlto convert to printable format with geometry validation
Full Pipeline
/openscad → /preview-scad → /export-stl (with validation)
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