Dev & Engineering

DXF Generation & Validation Skill

Generate, regenerate, and validate 2D DXF drawings from Python build123d sources or CAD geometry, ready for laser, plasma, and waterjet cutting.

57/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
ChatGPT · Codex · Claude Code
Stars
★ 19k
Last updated
1d ago
License
MIT
dxfcadbuild123dlaser-cutting
+4flat-patternstepsheet-metalcam

What does this skill do, and when should you use it?

This is the DXF skill from the earthtojake/text-to-cad repository, which turns 2D profiles, gaskets, panels, templates, and cut layouts into DXF files. The source of truth for a drawing is a Python file defining one parameterless @dxf model function; the engine writes the .dxf and validates it before anything lands on disk. It supports three workflows: drafting from scratch, flat patterns of generated STEP parts, and flat patterns of imported vendor STEPs. Outputs can be reviewed visually via a snapshot command or a local CAD Viewer.

  • Reads a <name>.py defining an @dxf model function and writes the sibling .dxf when the script runs
  • Produces exact flat patterns from 3D part topology via cadgen.flatten, with kerf compensation
  • Tracks part dependencies: a geometry-changing part edit makes the drawing stale; unchanged parts leave it a no-op
  • Validates at generation time: closed cut profiles, rejection of degenerate/duplicate geometry and unitless documents
  • Renders a .dxf to PNG via cadgen dxf snapshot, or opens it read-only in the CAD Viewer
  • Reads any existing .dxf with ezdxf for entity/layer checks via validate_dxf_file
Good fit
  • A mechanical engineer who needs gasket or panel flat-pattern DXFs for a laser cutting service (pairing with the $sendcutsend preflight skill)
  • A team with in-project generated STEP parts wanting flat patterns that auto-rebuild when the part's geometry changes
  • A user holding only a vendor .step file who needs it flattened into waterjet or plasma cutting contours
  • CAM preparation that needs CUT / ENGRAVE / SCORE layers with bend lines named so downstream tools classify them as bends
  • Anyone wanting deterministic pre-handoff validation (closed contours, duplicate geometry) plus a visual review before sending files to a cutting service
Not a fit
  • 3D solid modeling — this is a purely 2D drawing skill; 3D parts belong to the companion $cad skill
  • Users who only need 3D printing or multi-axis CNC outputs (STL/G-code) — it produces 2D DXF only
  • Environments that cannot install uv or where Windows 11 Smart App Control blocks the OCP native module (a documented hard blocker)

How do you install this skill?

Before you use it
  • cadgen is downloaded via PyPI/uv and sends telemetry by default (random ID, never file contents); run `uvx cadgen telemetry off` or set CADGEN_TELEMETRY=0 if unwanted.
  • The CAD Viewer binds to loopback but serves unauthenticated; any local process can read files under the opened directory. Do not expose a non-loopback --host.
  • First run requires network access to PyPI for the runtime and a headless browser; mainland-China reachability is uncertain and no mirror guidance is provided.
  • Windows 11 Smart App Control blocks the unsigned OCP native module, breaking every cadgen command; disable it (irreversible) or use WSL.
  • This is a static review — nothing was executed; DXF generation, validation and snapshot behavior were not independently reproduced. Verify on a small case before relying on it.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
  • Local filesystem
Install first
  • uv
  • cadgen 0.7.20
  • Python 3.13 (managed via uv)

This skill is one of 13 skills in the MIT-licensed text-to-cad collection and is installed with the whole collection.

Claude Code

claude plugin marketplace add earthtojake/text-to-cad#latest
claude plugin install text-to-cad@earthtojake

Cursor / Grok Build (reuse the Claude Code plugin, or install standalone)

git clone --depth 1 --branch latest https://github.com/earthtojake/text-to-cad ~/.cursor/plugins/local/text-to-cad

Gemini

gemini extensions install https://github.com/earthtojake/text-to-cad --ref latest --consent --auto-update

Other agents (Skills CLI)

npx skills add earthtojake/text-to-cad#latest

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • Draw a 60x40mm gasket with 4.5mm holes as a DXF for laser cutting
  • Flatten the STEP part from bracket.py into a cut layout with 0.15mm kerf and export a DXF
  • Generate a 2D waterjet contour DXF from imported/vendor_panel.step and render a preview PNG
  • Check whether the cut profiles in plate.dxf are closed and count the circles on the CUT layer

The skill triggers on DXF / 2D drawing requests. Flow: distill the request into a brief → pick one of the three workflows (drafted from scratch / flat pattern of a generated model / flat pattern of an imported STEP) → write or edit <name>.py with dimensions as named constants → run the script directly (the only entry point; there is no cadgen dxf build command):

python path/to/source.py
python path/to/source.py --force
cadgen dxf snapshot path/to/drawing.dxf review.png
cadgen store why path/to/source.py

Validation runs during generation; validate_dxf_file post-checks any existing .dxf, and ezdxf verifies user-specified dimensions. Start the viewer with cadgen viewer --host 127.0.0.1 -- --detach. Diagnose installs with cadgen doctor <skill-dir>.

What are this skill's strengths and limitations?

Pros
  • A drawing is a model: freshness gating makes unchanged rebuilds no-ops, geometry-changing part edits mark it stale, and store why explains the verdict
  • Output bytes are a deterministic function of geometry — identical files cold or warm, on any machine
  • Validation is built into generation: closed contours, degenerate entities, duplicate geometry, and empty modelspace are checked before writing
  • Curves stay curves: fillets export as ARCs and holes as CIRCLEs, never collapsing into hundreds of short LINEs
Limitations
  • Heavy prerequisites: uv plus a pinned cadgen 0.7.20 download and managed Python 3.13; first run needs network
  • Windows 11 Smart App Control (on by default on fresh installs) blocks the OCP native module, breaking every cadgen command
  • Telemetry and crash reports are on by default (opt out with uvx cadgen telemetry off)
  • Reading a STEP this same project generated is forbidden — it would make the freshness gate never-current and force full rebuilds
  • Text is exported only as engraved outlines (bd.Text), never DXF TEXT entities

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
DXF Generation & Validation Skill this page 57 · Use with care ★ 19k 1d ago MIT
SendCutSend Upload Preflight 57 · Use with care ★ 19k 1d ago MIT
Engineering Drawing (Text-to-CAD) 59 · Recommended ★ 19k 1d ago MIT
DFM Review Skill 61 · Recommended ★ 19k 1d ago MIT
G-code Slicing Skill (text-to-cad) 60 · Recommended ★ 19k 1d ago MIT

Within the text-to-cad collection, 3D parts come from the CAD ($cad) skill and SendCutSend upload preflight from $sendcutsend, while this skill focuses on 2D flat patterns and cut drawings; visualization duties of the retired cad-viewer skill are now split across the CAD, DXF and related skills.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
57/ 100 5-point scale 2.9 / 5
1Trust16 / 25 · 3.2/5

Evidence shows local execution, loopback-bound viewer, pinned uvx versions, explicit data-flow and telemetry disclosure (with opt-out), and SECURITY.md stating the viewer is unauthenticated with loopback as the trust boundary. Deductions: cadgen is an unauditable external binary from PyPI, first run downloads it and telemetry is on by default (opt-out only), and the unauthenticated viewer is a known residual risk — not red-line, but trust is incomplete.

2Reliability10 / 20 · 2.5/5

Documentation is highly self-consistent: contract, templates, freshness gate, validation checks, and failure feedback (doctor, store why, off-plane refusal, snapshot OUT delete-then-atomic-write) are all specified. Deductions: static review cannot execute; no committed tests for the skill's key paths (@dxf build, snapshot, viewer) appear in the provided files; failure modes are described rather than evidenced.

3Adaptability9 / 15 · 3.0/5

Trigger conditions are clear (DXF, 2D profiles, gaskets, cut layouts), boundaries and non-fit are explicit (no 3D, parameterless contract, XY-plane restriction), and scope vs $cad/$sendcutsend is well divided. Deductions: depends on uv/PyPI downloads and a headless browser, no Chinese-language support noted, mainland-China reachability is uncertain and no mirror/offline guidance is given.

4Convention12 / 15 · 4.0/5

Layered docs (SKILL.md + references templates + agents metadata), MIT license, pinned cadgen==0.7.20, clear provenance link, and disclosed known limitations (Smart App Control, units, layer semantics). Deductions: maintenance/update path leans on the README with an unverified publisher; the skill itself has no changelog or version; some behavior depends on unshown upstream cadgen implementation.

5Effectiveness6 / 15 · 2.0/5

Claims directly deliverable DXF for cutting services with in-generation validation and clear marginal value over manual modeling. Deductions: static review cannot verify representative output correctness or direct usability; no committed DXF example artifacts or third-party usage evidence; the value claim partially rests on trusting cadgen internals.

6Verifiability4 / 10 · 2.0/5

Auditable primary material exists (SKILL.md, templates, SECURITY.md, CI badge, some test sources under models/tests), and fact/inference separation is decent. Deductions: provided test sources are not DXF key paths; workflows shown cover API/docs deployment only; no tests or independent reproduction covering the skill's key paths — coverage is thin.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Oct 10, 2026 Reviewed revision b48ff49e0096 Review evidence[1][2][3][4][5][6][7][8][9][10][11][12]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does it cost money or need an account?
The source mentions no payment or account; cadgen is MIT-licensed open source, though anonymous telemetry is on by default and can be disabled with uvx cadgen telemetry off.
How do I diagnose failures?
Use cadgen doctor <skill-dir> for install/kernel issues and cadgen store why <drawing>.py for staleness; build failures are reported explicitly and should be relayed as-is.
Can it work with DXFs I already have?
Yes. An imported .dxf needs nothing at all — hand it straight to snapshot or the Viewer — and the same checks run post-hoc on any .dxf via validate_dxf_file.
Can I use units other than millimeters?
Millimeters are the default and set by the engine; drawing code never declares units. The source documents no mechanism for switching units.

More skills from this repository

All from earthtojake/text-to-cad

Dev & Engineering

SendCutSend Upload Preflight

Reviews DXF and STEP files against SendCutSend's official ordering guide and catalog before upload, so an agent can catch manufacturability problems before you pay for a prototype.

★ 19k FS 57 Use with care 1d ago
Dev & Engineering

Engineering Drawing (Text-to-CAD)

Turn a 3D part into a dimensioned engineering-drawing PDF — orthographic views, hidden lines, hole callouts and a title block, all projected from the geometry so the drawing follows the model.

★ 19k FS 59 Recommended 1d ago
Design & Frontend

CAD (text-to-cad's CAD skill)

Give your AI agent the ability to create and edit parametric CAD models from plain language or images, exporting STEP/STL/3MF/GLB files.

★ 19k FS 55 Use with care 1d ago
Dev & Engineering

DFM Review Skill

Gives your AI agent a process-specific design-for-manufacturing review for sheet metal, CNC machining or injection molding, with measured evidence and cited rules behind every finding.

★ 19k FS 61 Recommended 1d ago
Dev & Engineering

G-code Slicing Skill (text-to-cad)

Give your agent the power to slice STL, 3MF and OBJ models into printer-ready G-code with OrcaSlicer, using your own printer presets.

★ 19k FS 60 Recommended 1d ago
Dev & Engineering

step.parts Catalog Skill

Give your agent the ability to search the step.parts hosted catalog and download real off-the-shelf STEP parts — screws, bearings, motors, servos — instead of sketching crude placeholder geometry.

★ 19k FS 55 Use with care 1d ago
Dev & Engineering

URDF Robot Description Skill

Give your agent disciplined authoring and validation for URDF robot description files — frames, joints and inertials computed, never guessed.

★ 19k FS 57 Use with care 1d ago
Design & Frontend

DfAM Check — 3D Printability Analysis

Measure mesh files against Design for Additive Manufacturing rules per process (FDM, SLS, SLA/DLP, metal PBF, MJF) and report evidence-backed printability findings before slicing or printing.

★ 19k FS 67 Recommended 1d ago
Dev & Engineering

SRDF Skill: MoveIt Planning Semantics

Author and validate MoveIt SRDF planning semantics on top of an existing URDF, so agents stop handing MoveIt wrong planning groups and unsafe collision rules.

★ 19k FS 62 Recommended 1d ago
Dev & Engineering

Bambu Labs Print Handoff Skill

Hand sliced G-code or unsliced models to Bambu Lab printers safely via the official Bambu Connect app or Bambu Studio — the agent never controls the printer.

★ 19k FS 60 Recommended 1d ago
Dev & Engineering

text-to-cad SDF Skill

Lets your agent author, validate, and visually review SDFormat robot models and worlds, handing them off cleanly to simulators like Gazebo.

★ 19k FS 55 Use with care 1d ago

Related skills