Create Dxf

Generates RFQ-ready 2D DXF files and optional SVG previews from a validated JSON spec, ideal for sheet and plate parts like brackets and hole patterns.

luokai0 Updated 10 repo stars

File contents

create-dxf

Deterministically generate a manufacturing-friendly DXF from a small JSON spec (center-origin, explicit units). Also emits an SVG preview.

Quick start

  1. Convert prompt → JSON (see references/spec_schema.md).
  2. Validate:
python3 scripts/create_dxf.py validate spec.json
  1. Render:
python3 scripts/create_dxf.py render spec.json --outdir out

Outputs:

  • out/<name>.dxf
  • out/<name>.svg

Notes

  • DXF uses simple entities for compatibility: closed LWPOLYLINE outer profile + CIRCLE holes.
  • Default layers are manufacturing-oriented:
    • CUT_OUTER (outer perimeter)
    • CUT_INNER (holes/slots)
    • NOTES (optional)

Resources

  • scripts/create_dxf.py
  • references/spec_schema.md
  • references/test_prompts.md

luokai0/ai-agent-skills-by-luo-kai/tree/main/ai-agent-skills/22-clawhub-skills/create-dxf commit 93240741b7

Frequently asked questions

npx skillmds@latest add luokai0/create-dxf