CAD Code Generation Skill

Generate parametric 3D CAD models as CadQuery Python code from natural language prompts.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/shdaifat/cadquery-cad-vscode --skill cad-code-generation-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: CAD Code Generation Skill
Source: https://github.com/shdaifat/cadquery-cad-vscode/tree/main/.github/skills/cad-code-generation
Command: npx skills add https://github.com/shdaifat/cadquery-cad-vscode --skill cad-code-generation-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the creation of 3D CAD models using natural language descriptions, bridging the gap between design intent and executable code.

Core Features & Use Cases

  • Natural Language to Code: Translate plain English descriptions into parametric CadQuery Python code.
  • Bi-directional Editing: Modify existing models by selecting faces/edges in a 3D viewer and requesting changes via text.
  • Assembly Management: Scaffold and build complex multi-part assemblies.
  • Use Case: Describe a "mounting bracket with four M3 holes" and receive runnable CadQuery code, or select an existing part and ask to "add fillets to the edges."

Quick Start

Use the CAD Code Generation skill to create a 50x30x3mm mounting bracket with four M3 holes.

Frequently Asked Questions about CAD Code Generation Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate parametric 3D CAD models from text descriptions?

You can generate parametric 3D CAD models by providing natural language prompts, which are automatically translated into runnable CadQuery Python scripts to create parts like a mounting bracket.

Can I modify existing CAD geometry by selecting faces and edges?

Yes, bi-directional editing supports modifying existing CAD geometry by selecting specific faces or edges in a 3D viewer and requesting text-based changes like adding fillets.

What's the best way to scaffold complex multi-part assemblies in CadQuery?

To scaffold complex multi-part assemblies, you can use natural language prompts to generate structured CadQuery Python code that defines and organizes multiple individual parts.

Does this approach generate complete Python scripts for 3D modeling?

Yes, this approach generates complete and runnable Python scripts for 3D modeling by adhering to strict code generation rules, ensuring the CadQuery output executes without manual fixes.

Do I need prior CadQuery knowledge to create 3D parts from natural language?

No, you do not need prior CadQuery knowledge because the system translates plain English descriptions directly into executable Python code, bridging the gap between design intent and code.