Natural Language CAD Generation And Validation
Paste the following prompt into your AI chat to install this skill:
Please install @user_64e186fe/txt-to-cad according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem Context
When an engineer requests a “M4 mounting hole, 3 mm wall thickness, rounded bracket” part, hand-writing build123d or CadQuery code can miss units, coordinate datums, boolean order, and feature parameters. txt-to-cad is not for concept renders; it turns natural-language requirements into inspectable parametric CAD models, with STEP as the primary editable artifact.
How It Works
The skill follows a fixed workflow:
- Task classification: new parts, assemblies, source modifications, geometry inspection, or secondary STL, 3MF, and GLB exports.
- Parametric modeling: dimensions become named variables; build the main solid first, then add or remove material, and apply fillet and chamfer late.
- Generation and validation: produce STEP, GLB, and topology data, then check faces, edges, vertices, bounding box, main planes, and positioning.
- Snapshot review: visually verify hole locations, ribs, bosses, shells, and fillets against intent.
Boundaries
It fits mechanical parts, brackets, enclosures, fixtures, and geometry validation; it does not cover CAM toolpaths, FEA conclusions, engineering certification, architectural BIM, or freehand illustration. For 2D technical drawings, use a separate DXF workflow instead of expecting standard drafting output here.
Use Cases
- A mechanical engineer converts an “M4 counterbore, 2 mm wall enclosure” request into an editable STEP and checks bounding box and hole positions.
- A prototype developer reproduces a bracket from a reference image, authors build123d source to generate STEP, and exports GLB for quick preview.
- A hardware designer modifies slot, boss, and fillet parameters in an existing CAD source and runs face, edge, and vertex checks.
- A 3D printing lead exports STL or 3MF from validated CAD geometry to confirm closed solids and avoid self-intersections before slicing.
Best For
- Mechanical or hardware engineers who need to turn written requirements into editable STEP quickly.
- Prototype developers who reproduce parts from reference images or legacy CAD sources and verify geometric consistency.
- 3D printing engineers who need to confirm STL or 3MF files come from closed solids and correct dimension parameters before slicing.
- CAD automation maintainers who script bracket, enclosure, and fixture features with build123d source.
Related Skills
Creates themed learning sites by generating flashcards, lessons, quizzes, index, and progress pages into a deployable website.
End-to-end mathematical optimization modeling with Gurobi and Python, covering data validation, code generation, solving, result analysis, and iterative revision.
Executes an Eversheet Web CDP login using externally supplied baseUrl, username, and password, then verifies the page reaches a logged-in home state.
Clarify product goals, user flows, pages, data, and permissions, then output an implementation-ready development prompt and lightweight spec.