Text to CAD Model Generator
Paste the following prompt into your AI chat to install this skill:
Please install @user_c9c99682/text-to-cad according to https://skillhub.cn/install/skillhub.md.
About this skill
The Problem
Turning natural-language descriptions into usable CAD models usually stalls on engineering details: dimensions, features, constraints, and valid geometry. Hand-writing CadQuery scripts often fails on fillets, booleans, and face or edge selection. This skill turns text-to-model into an executable, debuggable, deliverable workflow.
How It Works
- Environment setup: Prefer an existing Python, conda, or virtual environment with
CadQuery; install only if none is found. - Requirement parsing: Extract geometry type, dimensions, holes, fillets, patterns, and assembly relationships; missing units default to
mm. - Script generation: Produce a self-contained Python script with parameters grouped at the top. Prefer
.faces()and.edges()for selective edits, and apply fillets or chamfers after boolean cuts. - Execution and delivery: Run the script to generate
STLandSTEPfiles, apply bounded auto-debugging on failure, and verify file existence, bounding-box dimensions, and requested features before delivery.
Boundaries
It is useful for generating mechanical parts, housings, flanges, bearing seats, and bolt-hole patterns, or for pre-print geometry checks. It is not a substitute for formal engineering design: stress, assembly tolerance, and material manufacturability still require human review. Complex thin walls or multi-body assemblies still need manual decomposition. If the description is purely aesthetic and lacks functional constraints, the result will favor common engineering interpretations.
Use Cases
- An engineer turns a bearing-housing description into a CadQuery script, generates STEP and STL files, and checks hole placement and bounding box.
- A maker describes a rounded print enclosure with bolt holes, runs the script, receives STL and STEP files, and reviews the bounding box.
- A structural designer creates a bolt-hole array on a flange, executes CadQuery code with auto-debugging, and exports import-ready STEP.
- A prototyper asks for dimension, fillet, and hole changes in an existing script, then reruns verification and sees a brief change summary.
Best For
- Mechanical engineers: want to turn bearing-housing, flange, and enclosure requirements into executable CadQuery scripts and STEP/STL files.
- 3D printing makers: need to convert model descriptions with holes, fillets, and arrays into deliverable STL files and check closed geometry.
- Structural prototypers: want to adjust dimensions, holes, and chamfers in existing CadQuery scripts instead of redrawing from scratch.
- Embedded hardware developers: need first-pass geometry for enclosures, brackets, and connectors before importing it into downstream design tools.
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.