
andreahaku/openscad_claude_skill
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
OpenSCADを用いたプログラマティック3D CADのクロードコードスキル 設計、プレビュー、反復、STLから再構築、およびAI主導のビジュアルフィードバックと自動メッシュで3Dプリント可能なモデルをエクスポート...
概要
OpenSCADを用いたプログラマティック3D CADのクロードコードスキル 設計、プレビュー、反復、STLから再構築、およびAI主導のビジュアルフィードバックと自動メッシュ比較で3Dプリントモデルをエクスポートします。 - — 「私はスペーサーが必要」からレンダーされた部分への1往復:仮定は推測され、前方に尋ねられたのではなく、明示的にリストされた - - - - ブール人と既存のSTLを編集(import() +カット/追加/トリム)、それを再構築することなく、 - クリアランスは1つの測定プロファイルから下落し、その部分は3分の1つの最初のプリントに収まる - - - Generate .
概要(AI 翻訳)
OpenSCADを用いたプログラマティック3D CADのクロードコードスキル 設計、プレビュー、反復、STLから再構築、およびAI主導のビジュアルフィードバックと自動メッシュ比較で3Dプリントモデルをエクスポートします。
##特徴
- クイックモード — "私はスペーサーが必要"からレンダリングされた部分への1往復:仮定は推測され、前面を尋ねた代わりに明示的にリストされている
- モードを変更 — 既存のSTLを booleans ([
import()) + カット/追加/トリムを数分で編集します。 -Printerの口径測定 — クリアランスは1つの測定されたプロファイルから降下されるので、パートは3分の1の代わりに最初のプリントに収まります -プログラム3Dモデリング — 自然言語の説明から[.scadファイルを生成します - AI の視野のフィードバック ループ — レンダリングの多角形の PNG の下検分および反復的な精製の設計にそれらを分析して下さい
- STL-to-SCADの再構築 — SVGのプロファイリングとSDFの最適化を使用して、リバースエンジニアリングSTLメッシュ
- Image-to-CADレプリケーション — 参照写真から物理的オブジェクトを再生成
- Parametric design — 変数のすべての寸法、CLI [[[
-D] フラグを介してオーバーライド可能
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
OpenSCAD Claude Code Skill
A Claude Code skill for programmatic 3D CAD using OpenSCAD. Design, preview, iterate, reconstruct from STL, and export 3D-printable models — with AI-driven visual feedback and automated mesh comparison.
Features
- Quick mode — One round trip from “I need a spacer” to a rendered part: assumptions are guessed, then listed back explicitly instead of asked for up front
- Modify mode — Edit an existing STL with booleans (
import()+ cut/add/trim) in minutes, without reconstructing it - Printer calibration — Clearances descend from one measured profile, so a part fits on the first print instead of the third
- Programmatic 3D modeling — Generate
.scadfiles from natural language descriptions - AI vision feedback loop — Render multi-angle PNG previews and analyze them to iteratively refine designs
- STL-to-SCAD reconstruction — Reverse-engineer STL meshes into parametric OpenSCAD code using SVG profiling and SDF optimization
- Image-to-CAD replication — Reproduce physical objects from reference photos
- Parametric design — All dimensions as variables, overridable via CLI
-Dflags - Mesh comparison — Boolean diff rendering and IoU scoring to verify reconstruction accuracy
- Printability analysis — Wall thickness, overhang, and manifold validation
- Reusable module library — Common 3D printing patterns (counterbores, heat-set bosses, ribs, snap-fits)
- Eval framework — Automated testing with 20 binary assertions across 4 scenarios (100% pass rate)
Prerequisites
OpenSCAD, reachable from the CLI. Every script resolves it as $OPENSCAD_BIN, else
command -v openscad — no path is hardcoded.
sudo pacman -S openscad # Arch / Omarchy
brew install openscad # macOS
sudo apt install openscad # Debian / Ubuntu
Python packages, needed only by Reconstruct and Replicate. Quick, Modify, Design and Export work without them.
# Arch: install from the repos, the interpreter is externally managed and pip will refuse
sudo pacman -S python-trimesh python-numpy python-scipy python-shapely python-rtree
# macOS / other
pip3 install trimesh numpy scipy rtree shapely
Claude Code CLI installed.
Calibrate the printer, once
Clearances are the difference between a part that fits and a reprint. Print
templates/calibration-comb.scad one time, measure it, and write the numbers into
templates/printer-profile.scad. Until profile_measured is set to true the skill uses
declared defaults and says so whenever it emits a part whose function depends on a fit.
Installation
Option 1: Clone and symlink (recommended)
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add andreahaku/openscad_claude_skill