🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Create Dxf

by @ajmwagar

Create RFQ-ready 2D DXF (and optional SVG preview) files from a strict, validated JSON spec derived from a natural-language design prompt. Use for sheet/plate parts (waterjet/laser/router) like mounting plates, gussets, brackets, hole patterns, and slots.

Versionv0.1.1
Downloads3,001
Installs2
Stars⭐ 1
TERMINAL
clawhub install create-dxf

πŸ“– About This Skill


name: create-dxf description: Create RFQ-ready 2D DXF (and optional SVG preview) files from a strict, validated JSON spec derived from a natural-language design prompt. Use for sheet/plate parts (waterjet/laser/router) like mounting plates, gussets, brackets, hole patterns, and slots.

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

3) Render:

python3 scripts/create_dxf.py render spec.json --outdir out

Outputs:

  • out/.dxf
  • out/.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
  • πŸ’‘ Examples

    1) Convert prompt β†’ JSON (see references/spec_schema.md). 2) Validate:

    python3 scripts/create_dxf.py validate spec.json
    

    3) Render:

    python3 scripts/create_dxf.py render spec.json --outdir out
    

    Outputs:

  • out/.dxf
  • out/.svg
  • πŸ“‹ Tips & Best Practices

  • 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)