cad_coder

Translate JSON design contracts into executable Build123d 0.10 code.

Updated Jun 3, 2026
One-click install
npx skills add https://github.com/Xia12121/hybrid-design-agent --skill cad-coder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cad_coder
Source: https://github.com/Xia12121/hybrid-design-agent/tree/main/skills/cad_coder
Command: npx skills add https://github.com/Xia12121/hybrid-design-agent --skill cad-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires build123d, numpy, skills.core.*, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill transforms detailed design contracts into executable Build123d code, enabling automated 3D design and manufacturing processes.

Core Features & Use Cases

  • CAD Contract Parsing: Converts JSON design contracts into Build123d code.
  • Feature Implementation: Automates the creation of 3D features like fillets, holes, and shapes.
  • Build Code Generation: Outputs a single Python file with a fixed structure for Build123d execution.
  • Use Case: Given a contract for a cylinder with specific dimensions and features, the skill generates the corresponding Build123d code.

Quick Start

Generate parametric Build123d code for a cylinder with a diameter of 80mm and a height of 170mm, featuring a 4mm grid of side holes, using the cad_coder skill.

Frequently Asked Questions about cad_coder

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

FAQPage Schema
How do I generate Build123d parametric code from a CAD design contract?

You can automate 3D design by translating JSON design contracts into Build123d executable code. This process handles CAD features like fillets, holes, and shapes to output a ready-to-run Python script.

Can I automate CAD features like fillets and holes using Build123d?

Yes, CAD feature implementation for fillets, holes, and shapes is automated by converting JSON design contracts into Build123d code. This enables automated 3D design and manufacturing processes without manual coding.

Do I need a specific Python environment to execute generated Build123d code?

Yes, executing the generated Build123d code requires the Build123d 0.10 environment and Python libraries like numpy. The output is a single Python file structured specifically for this Build123d version.

What is the best way to create a 3D cylinder model with side holes in Build123d?

Specify the cylinder dimensions and the side hole grid pattern in a JSON design contract. The skill then generates the corresponding Build123d code, automating the parametric modeling of the 3D shape.

What format should CAD design contracts use for Build123d code generation?

Design contracts must be structured in JSON format. This allows the skill to parse the CAD parameters and translate them into a single Python file containing the executable Build123d code.

Are there limitations when translating design contracts into Build123d code?

The main limitation is the strict dependency on the Build123d 0.10 environment and numpy. Additionally, the output is a single Python file with a fixed structure, which may require manual adjustments for unsupported CAD features.