一键导入
openscad
Create versioned OpenSCAD (.scad) files for 3D printing, render previews, and compare iterations. Use this when designing or iterating on 3D models.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create versioned OpenSCAD (.scad) files for 3D printing, render previews, and compare iterations. Use this when designing or iterating on 3D models.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Export OpenSCAD (.scad) files to STL format with geometry validation. Checks for non-manifold geometry, self-intersections, and other printability issues.
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.
基于 SOC 职业分类
| 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"] |
Create versioned OpenSCAD files, render previews, and compare iterations for 3D printing designs.
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.
Write the OpenSCAD code to the versioned filename (e.g., piano_002.scad).
.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).
Read both the current and previous PNG images to visually compare:
piano_002.pngpiano_001.png (if exists)Evaluate what changed and whether the new version better matches requirements.
If the design needs improvement:
piano_003.scad)<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.pngUse underscores in model names, and always use 3-digit zero-padded version numbers.
User asks for a piano model:
Check for existing versions:
.claude/skills/openscad/scripts/version-scad.sh piano
Output: piano_001 (no existing files)
Write piano_001.scad with initial design
Render preview:
.claude/skills/preview-scad/scripts/render-scad.sh piano_001.scad --output piano_001.png
Read piano_001.png to inspect the result
If improvements needed, create piano_002.scad, render to piano_002.png
Read both piano_001.png and piano_002.png to compare iterations
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)Once the design looks correct in PNG previews:
/export-stl to convert the final version to STL format/openscad → /preview-scad → /export-stl (with validation)