En

Agentcad Skill Release 0.4.0

A CAD modeling tool for AI agents that executes Python scripts to generate 3D models.

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: Agentcad Skill Release 0.4.0.
It is used for: A CAD modeling tool for AI agents that executes Python scripts to generate 3D models.
Full Skill content: https://321skill.com/skills/agentcad-skill-release-0-4-0-x-8/raw/index.md
Read that page and install it.

The prompt includes a link to the full Skill content. You can also view the full content.

This Skill addresses the challenge of AI agents being unable to perform 3D modeling directly. In practical development, engineers often need to quickly generate 3D models for prototyping, product demonstrations, or 3D printing, but manual modeling is time-consuming and difficult to integrate into automated workflows. Agentcad solves this by executing build123d or CadQuery Python scripts to convert natural language descriptions into usable 3D geometry, significantly lowering the barrier to entry.

Usage is straightforward: ensure your environment meets Python 3.10-3.12 requirements and install agentcad (pip install agentcad). You can then instruct an AI agent via natural language to write scripts. First, use agentcad run script.py --dry-run to check metrics like volume and dimensions before formally executing the script to generate a STEP file, PNG render, STL/GLB/OBJ mesh, and an interactive HTML viewer. After each run, always review preview.png (a composite four-view image) and diff.side_by_side (a comparison with the previous version) for rapid iteration.

It is ideal for teams or individuals needing to integrate 3D modeling into AI workflows. This includes developers already using build123d or CadQuery for parametric design, product managers requiring quick validation of product concepts, and university students leveraging AI assistance for graduation projects or research. Agentcad's scripts come pre-loaded with common primitives (Box, Cylinder, Sphere, etc.) and editing tools (chamfer, shell, cut, etc.), allowing you to write scripts without additional imports.

When writing scripts, be sure to call show_object(result); otherwise, no geometry will be output. Note that each run consumes a version count, so it's recommended to validate with --dry-run first. The viewer.html in the output is for human users to interactively inspect the model—prompt them to open it. For measuring details like hole diameters or edge lengths, use the agentcad measure command, and verify critical features meet requirements with agentcad check-spec.

Key Features

Unlike traditional CAD software (e.g., Fusion 360, SolidWorks), Agentcad is designed specifically for AI agents. It automatically generates and executes Python scripts from natural language descriptions, seamlessly integrating into AI workflows. It supports both build123d and CadQuery, two leading scripting libraries, and provides automated capabilities like dry-run previews, version comparison, and feature checking.

Limitations

Requires a Python 3.10-3.12 environment and the agentcad package (`pip install agentcad`), along with either the build123d or CadQuery library. Currently, it only supports script-based modeling and does not offer interactive drag-and-drop operations.

FAQ

What dependencies need to be installed?

Requires Python 3.10-3.12. Install the main package via `pip install agentcad`, and install either build123d or CadQuery as needed.

How can I preview the generated model?

Run `agentcad run script.py --output label --dry-run` to view metrics like volume and dimensions. After a formal run, preview.png (a four-view composite) and viewer.html (interactive 3D) will be generated in the output directory.

Installation guide for AI assistants

If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:

Visit https://321skill.com/skills/agentcad-skill-release-0-4-0-x-8/raw/index.md to read the original Skill definition (Markdown format) for Agentcad Skill Release 0.4.0, and install it according to the instructions.