Geometric layout repair

From benchflow-ai/skillsbench · View interactive version

Geometric layout repair is an AI agent skill from the GitHub repository benchflow-ai/skillsbench. Use when producing a minimally changed repaired 2D layout in JSON from extracted architectural geometry and rule-based clearance constraints.

How to use this skill

Skill file

Use this skill when the deliverable is a repaired plan-view layout and a modified CAD/DXF file, not a rendered drawing.

Representation

Use simple geometry that deterministic tests can verify:

When a repaired DXF is required, keep the JSON and DXF synchronized. The JSON is the structured explanation; the DXF is the CAD deliverable.

Minimal-Change Strategy

  1. Start from the extracted original layout.
  2. List the exact rule failures.
  3. Try local edits in this order:
  1. Keep unchanged fixture IDs and protected fixtures stable.
  2. After each edit, recompute clearances and containment.

DXF Repair Output

Optional Preview Image

When a preview is useful and time allows, render the repaired layout to a raster image such as /root/output/screenshot_after.jpg. Keep this lightweight:

Geometry Checks

Final Review

Change Log

In changes.json, summarize edits as design actions, not implementation steps. Include the affected element id, the reason, and the before/after value when available.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.