بنقرة واحدة
enclosure-render
Render OpenSCAD enclosure views to PNG via Docker
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Render OpenSCAD enclosure views to PNG via Docker
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Full PCB verification loop using local kicad-cli (DRC + 3D render + gerbers)
Create a new Claude Code skill for this project. Use when you need to add a new skill, improve an existing skill, or convert a workflow into a reusable skill.
Verifies that every PCB pad-to-net assignment matches the manufacturer datasheet pin specifications. Use when changing board.py/routing.py/footprints.py, after GPIO remapping, before releases, or when adding new components. Automated guard against wiring errors like unconnected VBUS, wrong pin assignments, or missing GND connections.
Design intent adversary — cross-checks GPIO, nets, power chains, signal paths across firmware/schematic/PCB/datasheet sources to find lost connections and inconsistencies
Analyze a DFM report and fix all issues in the PCB generation scripts
Run DFM guard tests and add new regression tests after fixing PCB issues
| name | enclosure-render |
| model | claude-haiku-4-5-20251001 |
| description | Render OpenSCAD enclosure views to PNG via Docker |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Glob |
| argument-hint | ["all|front|back|top|exploded|cross-section|fit-check|pcb"] |
Render the OpenSCAD enclosure model to high-resolution PNG images via Docker.
Argument (optional): View to render. all (default), or a specific view name.
Docker must be running. Build the OpenSCAD image if not already built:
cd /Users/pierrejonnycau/Documents/WORKS/esp32-emu-turbo
docker compose build openscad
./scripts/render-enclosure.sh
# or via Makefile:
make render-enclosure
This renders 7 views at 1920x1080 resolution to website/static/img/renders/.
| View | Part | Camera | Description |
|---|---|---|---|
front | assembly | 25,0,340 | Front 3/4 view, assembled |
back | assembly | 205,0,20 | Back 3/4 view, assembled |
top | assembly | 90,0,0 | Top-down view |
exploded | exploded | 55,0,330 | Exploded with all components |
cross-section | cross_section | 55,0,0 | XZ plane cut showing Z-stack |
fit-check | fit_check | 30,0,340 | Bottom shell open-top view |
pcb | pcb | 25,0,340 | PCB model only |
cd /Users/pierrejonnycau/Documents/WORKS/esp32-emu-turbo
docker compose run --rm openscad \
-o "/output/enclosure/enclosure-front.png" \
--imgsize "1920,1080" \
--camera "0,0,12.5,25,0,340,500" \
-D 'part="assembly"' \
/project/enclosure.scad
Camera format: center_x,center_y,center_z,rot_x,rot_y,rot_z,distance
# Top shell
docker compose run --rm openscad -o "/output/case_top.png" \
--imgsize "1920,1080" --camera "0,0,12.5,25,0,340,500" \
-D 'part="case_top"' /project/enclosure.scad
# Bottom shell
docker compose run --rm openscad -o "/output/case_bottom.png" \
--imgsize "1920,1080" --camera "0,0,12.5,25,0,340,500" \
-D 'part="case_bottom"' /project/enclosure.scad
Available individual parts: case_top, case_bottom, part_display, part_dpad, part_btn_a, part_btn_b, part_btn_x, part_btn_y, part_start, part_menu, part_select, part_shoulder_l, part_shoulder_r, part_pcb.
ls -la website/static/img/renders/enclosure/enclosure-*.png
Expected 7 files: enclosure-front.png, enclosure-back.png, enclosure-top.png, enclosure-exploded.png, enclosure-cross-section.png, enclosure-fit-check.png, enclosure-pcb.png.
scripts/render-enclosure.sh — Render orchestration scripthardware/enclosure/enclosure.scad — Main enclosure sourcehardware/enclosure/modules/*.scad — Component modulesdocker-compose.yml — OpenSCAD Docker service definitiondocker/openscad/ — OpenSCAD Docker image build contextwebsite/static/img/renders/ — Output directory