dxf

dxf is a skill for Claude Code, Codex from earthtojake/text-to-cad. It costs 87 tokens per session (4,498 once invoked), scanned A, original, MIT.

Instructions for generating and checking 2D DXF drawings, a common exchange format for CAD and manufacturing drawings, from Python source files. It supports profiles, outlines, templates, gaskets, panels, flat patterns, and cut layouts.

In plain words
What is it for?
Creating or modifying laser-, plasma-, or waterjet-cut patterns, panels, gaskets, 2D profiles, and other CAD drawing exports.
Why use it?
It keeps the editable Python generator and the resulting drawing outputs connected and validated. The process also produces a preview that a CAD viewer can render.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the text-to-cad plugin — 13 skills shipped together

Good fit Creating or modifying laser-, plasma-, or waterjet-cut patterns, panels, gaskets, 2D profiles, and other CAD drawing exports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/earthtojake/text-to-cad/dxf
About the project

text-to-cad is a collection of agent workflows for creating, examining, finding, preparing, and transferring CAD, engineering, manufacturing, and robot-description files. It is for agents working with mechanical design, fabrication, simulation, and robotics projects. Catalogue skills, instructions, and a plugin implement these workflows.

earthtojake/text-to-cad · 23,132 stars · on GitHub · texttocad.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add earthtojake/text-to-cad --skill dxf
Clone the repo
git clone --depth 1 https://github.com/earthtojake/text-to-cad

Made for: Claude Code, Codex.

Or install text-to-cad, the plugin that ships this one along with the rest of its 13 skills.

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 dxf

README.md
[![agentmods](https://agentmods.dev/badge/skills/earthtojake/text-to-cad/dxf/github.svg)](https://agentmods.dev/skills/earthtojake/text-to-cad/dxf)
Your own site
<a href="https://agentmods.dev/skills/earthtojake/text-to-cad/dxf"><img src="https://agentmods.dev/badge/skills/earthtojake/text-to-cad/dxf/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 dxf

Your own site · 80×15
<a href="https://agentmods.dev/skills/earthtojake/text-to-cad/dxf"><img src="https://agentmods.dev/badge/skills/earthtojake/text-to-cad/dxf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,498 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. Third-party audits
  • Socket pass 20 Oct 2026
  • Snyk pass 20 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00087 $0.04498
Opus 5.5 $0.00035 $0.01799
Sonnet 5.5 $0.00017 $0.00900
Haiku 4.5 $0.00009 $0.00450

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

Security

Grade A, and why

dxf 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 5d ago.

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.

skills/dxf/SKILL.md · 381 lines

How it starts

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

DXF generation and validation

Provenance: maintained in earthtojake/text-to-cad. Use the installed local skill files as the runtime source of truth; the repository link is only for provenance and release review.

Setup

Run cadgen through uv, so this skill's commands share one installation, and its warm build daemon, with the CAD app's server:

  • cadgen below means uvx --no-config --managed-python --python 3.13 --from cadgen==0.7.26 cadgen
  • python below means uvx --no-config --managed-python --python 3.13 --from cadgen==0.7.26 python

The first run downloads that installation and the first snapshot its headless browser; later runs reuse both.

cadgen doctor <skill-dir> reports the installation in use and checks that it is the one this skill pins, and that the CAD kernel loads; use it for installation or kernel load errors.

Drawings are build123d geometry, so a drawing build loads the CAD kernel like a STEP build does (~2.5s cold; the warm daemon absorbs it on re-runs). cadgen dxf snapshot needs no Node at all: it flattens the drawing with ezdxf (which arrives with cadgen) and paints it in the bundled headless browser.

Purpose

Create or modify 2D DXF drawings from natural-language requirements or from CAD geometry, generate validated drawing artifacts, and return checked outputs. A DXF drawing's source of truth is a Python file named <name>.py defining one parameterless @dxf model function.

A drawing is a model. It has the same wrapper, record, freshness gate and build job a @step part has; its one output is the .dxf file; it has no geometry tree (nothing links to a drawing). Every run writes the sibling <name>.dxf (or the out= the decorator names); an unchanged source is a no-op; a drawing that calls a part model — bracket() inside its body — is stale whenever that part's GEOMETRY changes and current when it does not; cadgen store why <drawing>.py explains the verdict; --force rebuilds it anyway. The CAD Viewer and dxf snapshot read the .dxf file itself, so the file you hand a cutting service, the file the viewer draws and the file a snapshot renders are one and the same.

Read the full file on GitHub · 381 lines

Files

What ships with it

3 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. 5d ago Changed c2ead9e738b2
  2. 7d ago Changed · +12 lines af3e5c26295a
  3. 14d ago Changed f5782b09e37a
  4. 15d ago Changed c4503550fecc
  5. 16d ago Changed 1d1b57f31b60
  6. 17d ago Changed 077947e5cc53
  7. 19d ago Changed 872e93ad0567
  8. 20d ago Changed · +5 lines f66a7949a8c1
  9. 22d ago Changed · +1 lines 1ffaa791b2f4
  10. 24d ago First seen · 363 lines · 87 tokens per session scan A bbbf7dd765b2

Subscribe to this mod's changes

dxf is a skill published in the GitHub repository earthtojake/text-to-cad (23,132 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 4,498 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

Other skills, from other repositories

fluidcad-assembly

Building multi-part models in FluidCAD: assemblies, part files, inserting and mating parts, connectors, exposed geometry, part parameters, sub-assemblies, replicated instances, STEP parts, project units, and assembly export. Use this skill whenever the user wants an assembly, a mechanism, a hinge, a slider, several…

Fluid-CAD/FluidCAD · 154 tokens

fluidcad

Workflow and best practices for designing parts in FluidCAD through its MCP server. Use this skill whenever the user wants to model, design, build, edit, fix, or modify any part in FluidCAD, whenever they mention FluidCAD, a .fluid.js or .part.js file, or ask for CAD, parametric modeling, or 3D printing work that…

Fluid-CAD/FluidCAD · 178 tokens

step-parts

Find, evaluate, and download low-level common standard CAD parts from step.parts, such as screws, bolts, nuts, washers, bearings, standoffs, electronics parts, motors, connectors, and other off-the-shelf components. Use when Codex needs to search the hosted step.parts catalog, resolve fuzzy part names, standards…

earthtojake/step.parts · 107 tokens

solidworks-api

SolidWorks 2023 API/SDK coding assistant. Covers part modeling, sketches, features (extrude/revolve/cut), patterns, mates, materials, STEP export, and shield machine cutterhead design. Triggers: SolidWorks, SOLIDWORKS, SLDWORKS, ISldWorks, IModelDoc2, IFeatureManager, sketch, extrude, revolve, cut, pattern, mate…

guoleizhen717/solidworks-api-skill · 118 tokens

surfsense-html

Make or change a web page from the user's sources - a report, a briefing, a dashboard, a comparison, a timeline, an explainer, an interactive calculator or a figure that shows how something works - by writing an HTML file and keeping it with surfsensesavepage. Load it whenever the user asks for a web page, an HTML…

MODSetter/SurfSense · 89 tokens

show-me

Help the user understand the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts.

humanlayer/humanlayer · 25 tokens