dxf
An agent skill by earthtojake, from earthtojake/text-to-cad. Tags: automation, cli, design, developer-tools, local-workflow.
What it does
Generate, regenerate, and validate 2D DXF drawings from Python build123d sources. Use for DXF files, `.py` drawing scripts, @dxf models, 2D profiles, outlines, templates, gaskets, panels, flat patterns, laser/plasma/waterjet cut layouts, and 2D drawing exports of CAD geometry.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add earthtojake/text-to-cad --skill dxf
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/earthtojake/text-to-cad
cp -r text-to-cad/skills/dxf ~/.claude/skills/dxf
Safety box score
Grade B, low risk: 25 of 100 risk points, rated 2026-10-20. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This skill generates and validates 2D DXF drawings by running local Python drawing scripts and `cadgen` tooling, then can launch a detached local CAD Viewer. The main risks are code execution in the workspace, first-run network downloads for the pinned toolchain, and overwriting output files during snapshot/render workflows.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 2 (moderate) | The workflow runs drawing scripts directly (`python <drawing>.py`) and invokes `cadgen` through `uvx`, so it executes code in the user's workspace. |
| Network access | 2 (moderate) | It explicitly says the first run downloads `cadgen==0.7.26` and the first snapshot's headless browser, so outbound network access is required. |
| Filesystem reach | 1 (low) | It writes DXF and PNG artifacts beside the source and `cadgen dxf snapshot` deletes the chosen OUT path before rendering, but it does not target system paths. |
| Secrets & credentials | 0 (none) | No commands or prose mention tokens, keys, `.env` files, keychains, or browser sessions. |
| Privilege & persistence | 0 (none) | There is no sudo, global install, service registration, or shell/OS configuration change in the skill. |
| Instruction hijack surface | 0 (none) | The files do not contain prompt-injection text such as instructions to ignore rules, hide behavior, or follow fetched remote content. |
| Irreversible actions | 1 (low) | It can overwrite build artifacts and start a detached viewer, but it does not publish, send, pay, or delete external resources. |
| Transparency | 1 (low) | The skill depends on externally fetched `cadgen==0.7.26` and its bundled browser runtime, which are not included in the reviewed files. |
Before installing
- Read any `<name>.py` drawing script before letting the agent run it; the skill executes it directly.
- Confirm you accept first-run network access to fetch `cadgen==0.7.26` and the headless browser runtime.
- Try it in a scratch workspace first if you care about preserving an existing snapshot/output file, because snapshot rendering clears OUT before writing.
Rated 2026-10-20 by an automated review of 3 files from the skill's repository.
Source
- Repository
- earthtojake/text-to-cad (all skills from this repository)
- Path
- skills/dxf/SKILL.md
- Branch
- main
- Updated
- 2026-09-19
Related skills
- cad — Create/edit parametric CAD models, organize CAD projects, export STEP/STL/3MF/GLB files, resolve prompt references, and measure geometry with cadgen.
- cli-developer — Use when building CLI tools, implementing argument parsing, or adding interactive prompts.
- filesystem-context — This skill should be used when agent work needs file-backed context: durable scratchpads, tool-output offloading, just-in-time discovery.
- agents-get-started — Use when a developer wants to create a new agent project or get started with AgentCore.
- cli-for-agents — Designs or reviews CLIs so coding agents can run them reliably: non-interactive flags, layered --help with examples, stdin/pipelines, fast actionable errors.
- devcontainer-setup — Creates devcontainers with Claude Code, language-specific tooling (Python/Node/Rust/Go), and persistent volumes.