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.
npx skills add darellchua2/opencode-config-template --skill cad-dxf-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote 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.
[](https://agentmods.dev/skills/darellchua2/opencode-config-template/cad-dxf-skill)<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/cad-dxf-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/cad-dxf-skill.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.01310 |
| Opus 5 | $0.00022 | $0.00655 |
| Sonnet 5 | $0.00009 | $0.00262 |
| Haiku 4.5 | $0.00004 | $0.00131 |
Grade A, and why
cad-dxf-skill 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 100 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.
Purpose
Create or modify 2D DXF drawings from natural-language requirements or from CAD geometry, generate validated .dxf artifacts, and return checked outputs. DXF sources are Python files defining gen_dxf() returning an ezdxf document; the CLI owns output paths.
Two source shapes are supported:
- Standalone drafting: a Python source defining only
gen_dxf(). Use for pure 2D outputs — gaskets, panels, templates, cut layouts — with no 3D model behind them. - CAD projection: a
gen_dxf()added to a CAD generator source that also definesgen_step(). Use when the DXF is a drawing or profile of a 3D part; create and validate the STEP geometry withthe cad-generation-skill (load via skill tool)first, then add the projection in the same source file.
Use this skill when
Use this skill when the user asks for DXF files, 2D drawings, profiles, outlines, templates, gaskets, panels, flat patterns, or cut layouts for laser, plasma, waterjet, or CNC routing.
Use the cad-generation-skill (load via skill tool) for the 3D part or assembly a DXF derives from. Use the cad-sendcutsend-skill (load via skill tool) for SendCutSend-specific upload preflight.
Defaults
Use these defaults unless the user specifies otherwise:
- Units: millimeters; set them explicitly on the document (
doc.units = ezdxf.units.MM). - Geometry lives in modelspace at 1:1 scale.
- Cut profiles are closed polylines or closed line/arc loops; open contours only for engraving or reference geometry.
- For CAD-backed parts, prefer deriving DXF cut contours from the actual STEP/solid topology in the same generator script: build the 3D shape, select/project the real planar faces, unfold them into flat coordinates, and emit closed contours from those projected face wires. Use hand-drawn parametric outlines only when there is no reliable 3D topology to project.
- Layers carry intent: keep cut geometry and bend/fold lines on separate layers, and include "bend" in bend-layer names so downstream tools classify them as bends rather than cuts.
- DXF layers are drawing structure, not STEP part/assembly structure.
What ships with it
41 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.
- LICENSE 1.0 KB
- requirements.txt 42 B
- scripts/dxf/__init__.py 26 B runs code
- scripts/dxf/__main__.py 345 B runs code
- scripts/dxf/cli.py 1.6 KB runs code
- scripts/dxf/render_payload.py 14 KB runs code
- scripts/packages/cadpy/pyproject.toml 484 B
- scripts/packages/cadpy/src/cadpy/__init__.py 1.1 KB runs code
- scripts/packages/cadpy/src/cadpy/analysis.py 25 KB runs code
- scripts/packages/cadpy/src/cadpy/api.py 290 B runs code
- scripts/packages/cadpy/src/cadpy/assembly_composition.py 49 KB runs code
- scripts/packages/cadpy/src/cadpy/assembly_export.py 36 KB runs code
- scripts/packages/cadpy/src/cadpy/assembly_flatten.py 8.7 KB runs code
- scripts/packages/cadpy/src/cadpy/assembly_spec.py 16 KB runs code
- scripts/packages/cadpy/src/cadpy/assembly.py 15 KB runs code
- scripts/packages/cadpy/src/cadpy/cad_ref_syntax.py 4.2 KB runs code
- scripts/packages/cadpy/src/cadpy/catalog.py 20 KB runs code
- scripts/packages/cadpy/src/cadpy/cli_logging.py 1.6 KB runs code
- scripts/packages/cadpy/src/cadpy/file_metadata.py 1.9 KB runs code
- scripts/packages/cadpy/src/cadpy/generation_status.py 5.8 KB runs code
- scripts/packages/cadpy/src/cadpy/generation.py 87 KB runs code
- scripts/packages/cadpy/src/cadpy/glb_mesh_payload.py 15 KB runs code
- scripts/packages/cadpy/src/cadpy/glb_topology.py 20 KB runs code
- scripts/packages/cadpy/src/cadpy/glb.py 44 KB runs code
- scripts/packages/cadpy/src/cadpy/lookup.py 9.7 KB runs code
- scripts/packages/cadpy/src/cadpy/metadata.py 16 KB runs code
- scripts/packages/cadpy/src/cadpy/py.typed 1 B
- scripts/packages/cadpy/src/cadpy/render.py 2.9 KB runs code
- scripts/packages/cadpy/src/cadpy/reporting.py 3.9 KB runs code
- scripts/packages/cadpy/src/cadpy/selector_types.py 374 B runs code
- scripts/packages/cadpy/src/cadpy/source_hash.py 1.5 KB runs code
- scripts/packages/cadpy/src/cadpy/step_artifact.py 14 KB runs code
- scripts/packages/cadpy/src/cadpy/step_artifacts.py 7.9 KB runs code
- scripts/packages/cadpy/src/cadpy/step_export.py 13 KB runs code
- scripts/packages/cadpy/src/cadpy/step_hash.py 345 B runs code
- scripts/packages/cadpy/src/cadpy/step_metadata.py 12 KB runs code
- scripts/packages/cadpy/src/cadpy/step_scene.py 103 KB runs code
- scripts/packages/cadpy/src/cadpy/step_targets.py 17 KB runs code
- scripts/packages/cadpy/src/cadpy/stl.py 1.0 KB runs code
- scripts/packages/cadpy/src/cadpy/threemf.py 20 KB runs code
- scripts/packages/cadpy/src/cadpy/validators.py 3.9 KB runs code
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.
- 7d ago First seen · 100 lines · 43 tokens per session scan A 1254359e1edd
cad-dxf-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 43 tokens to every session and 1,310 once invoked, about $0.0002 per session on Opus 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-31.
Other skills, from other repositories
cad-viewer
Start CAD Viewer and return review links for CAD and robot-description files. Use when visually reviewing .step, .stp, .glb, .stl, .3mf, .dxf, .urdf, .srdf, or .sdf files, especially when handed off from CAD, URDF, SRDF, or SDF generation skills.
solidworks-vibecad
A planning guide for turning natural-language mechanical design requests into structured, parameterized SolidWorks plans that can be reviewed before execution.
add-interfaces
Enrich an existing PartCAD part with connection interfaces and ports (mating metadata) so it can be mated to other parts automatically. Use for /pc:add-interfaces or when the user asks to add interfaces, ports, connectors, or mating information to a part, or to make parts snap/connect/assemble together.
gen-assembly
Generate a PartCAD assembly (an ASSY that composes parts with placement and/or mates) from a description, generating or reusing the component parts and validating the result with the PartCAD CLI. Use for /pc:gen-assembly or when the user asks to generate or create an assembly, mechanism, or multi-part product.
render
Render a PartCAD object or a CAD file to a 2D image - PNG, JPEG, SVG or DXF - from one or many viewing angles (front, back, left, right, top, bottom, iso, or an arbitrary direction), with pc render for an object a package declares or pc adhoc render for a file that belongs to no package. Use for /pc:render or when the…
gen-part
Generate a PartCAD part from a natural-language description (and optional reference images/requirements) by authoring a CAD script and validating it with the PartCAD CLI. Use for /pc:gen-part or when the user asks to generate, create, or model a single mechanical part.