text-to-cad: Skill for Codex

.agents/skills/cad/SKILL.md

cad is a skill for Codex from cedrickchee/text-to-cad. It costs 80 tokens per session (1,884 once invoked), scanned A, original, MIT.

A workflow for creating and checking parametric 3D mechanical parts and assemblies with Python and build123d, using STEP files as the main output.

In plain words
What is it for?
Use it for parts, assemblies, enclosures, brackets, fixtures, holes, slots, pockets, fillets, joints, measurements, and related STEP, DXF, STL, or 3MF files.
Why use it?
It helps turn written mechanical requirements into inspectable CAD models while checking geometry, measurements, references, and assembly relationships.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is cedrickchee/text-to-cad's own configuration. It tells Codex how to work on text-to-cad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything text-to-cad configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cedrickchee/text-to-cad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cedrickchee/text-to-cad/main/.agents/skills/cad/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cedrickchee/text-to-cad

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cad

README.md
[![agentmods](https://agentmods.dev/badge/skills/cedrickchee/text-to-cad/cad/github.svg)](https://agentmods.dev/skills/cedrickchee/text-to-cad/cad)
Your own site
<a href="https://agentmods.dev/skills/cedrickchee/text-to-cad/cad"><img src="https://agentmods.dev/badge/skills/cedrickchee/text-to-cad/cad/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cad

Your own site · 80×15
<a href="https://agentmods.dev/skills/cedrickchee/text-to-cad/cad"><img src="https://agentmods.dev/badge/skills/cedrickchee/text-to-cad/cad.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,884 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.01884
Opus 5.5 $0.00032 $0.00754
Sonnet 5.5 $0.00016 $0.00377
Haiku 4.5 $0.00008 $0.00188

Measured 2mo ago against content hash da533e7b5ac1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cad scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 31 executable files (explorer/components/CadExplorer.js, explorer/components/CadWorkspace.js, explorer/components/DxfExplorer.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/cad/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CAD generation, inspection, and validation

Purpose

Create or modify parametric CAD models from natural-language requirements, generate validated STEP/STP artifacts, inspect geometry references, and return checked outputs plus CAD Explorer links. Treat STEP as the primary CAD artifact. Treat DXF, STL, and 3MF as secondary workflows that branch from, or accompany, a STEP-first process. For assemblies, prefer source-level build123d joints and named mating datums when the parts have functional assembly relationships.

Use this skill when

Use this skill when the user asks for CAD files, STEP/STP files, build123d source, @cad[...] references, mechanical parts, assemblies, enclosures, brackets, fixtures, holes, counterbores, countersinks, slots, pockets, bosses, standoffs, ribs, fillets, chamfers, shells, source-level joints, mating, measurements, or CAD Explorer review links.

Also use it when the user asks for DXF, STL, or 3MF output from CAD geometry. Keep those workflows secondary and load dxf.md or supported-exports.md for details.

Do not use this skill for render-only concept art, CAM toolpaths, engineering certification, FEA conclusions, architectural BIM, or freehand illustration unless the user also needs CAD geometry.

Default assumptions

Use these defaults unless the user specifies otherwise:

  • Units: millimeters.
  • Origin: center of the main part or assembly unless a mating interface or fixed root component suggests a better origin.
  • Base plane: XY.
  • Up/extrusion axis: positive Z.
  • Output geometry: closed, positive-volume solids unless the user requests surfaces or construction geometry.
  • STEP structure: one valid solid, a compound of solids, or a labeled assembly compound.
  • Assembly structure: fixed root part, part-local frames, named mating datums, build123d joints where applicable, and explicit generated placements.
  • Small plastic enclosure wall: 2.0-3.0 mm when unspecified.
  • Cosmetic fillet: 1.0-3.0 mm when safe for local geometry.
  • M3/M4/M5 normal clearance holes: 3.4/4.5/5.5 mm unless another standard is requested.

Read the full file on GitHub · 109 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 109 lines · 80 tokens per session scan A da533e7b5ac1

Subscribe to this mod's changes

cad is a skill published in the GitHub repository cedrickchee/text-to-cad (45 stars, last pushed 6mo ago), licensed MIT. It adds 80 tokens to every session and 1,884 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cad compared with skills from other repositories

cad next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cadcedrickchee/text-to-cadSkill456mo agoMITA80Codex
step-partsearthtojake/text-to-cadSkill26kyesterdayMITA126Claude Code, Codex
gcodeearthtojake/text-to-cadSkill26kyesterdayMITA115Claude Code, Codex
sendcutsendearthtojake/text-to-cadSkill26kyesterdayMITA75Claude Code, Codex
srdfearthtojake/text-to-cadSkill26kyesterdayMITC107Claude Code, Codex
urdfearthtojake/text-to-cadSkill26kyesterdayMITC110Claude Code, Codex
dfam-checkearthtojake/text-to-cadSkill26kyesterdayMITA117Claude Code, Codex