geometric-layout-repair

geometric-layout-repair is a skill for Claude Code, Codex from benchflow-ai/skillsbench. It costs 29 tokens per session (1,057 once invoked), scanned A, original, Apache-2.0.

A rule-based method for repairing a 2D architectural layout while changing as little as possible. It represents rooms, doors, fixtures, grab bars, and wheelchair turning spaces as structured geometry.

In plain words
What is it for?
Use it to adjust door swings, move fixtures, reposition turning spaces, and create synchronized JSON and DXF files for a repaired floor plan.
Why use it?
It makes accessibility problems explicit and allows repairs to be checked consistently against clearance rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to adjust door swings, move fixtures, reposition turning spaces, and create synchronized JSON and DXF files for a repaired floor plan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benchflow-ai/skillsbench/geometric-layout-repair
About the project

SkillsBench is a benchmark for measuring how effectively AI agents use modular skills—folders containing instructions, scripts, and resources—to complete specialized tasks. It helps researchers and developers evaluate both skill quality and agent behavior, including tasks that require combining multiple skills. The catalogue’s skills and instructions are evaluated as part of this workflow.

benchflow-ai/skillsbench · 1,764 stars · on GitHub · skillsbench.ai

Install

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.

Any agent
npx skills add benchflow-ai/skillsbench --skill geometric-layout-repair
Clone the repo
git clone --depth 1 https://github.com/benchflow-ai/skillsbench

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for geometric-layout-repair

README.md
[![agentmods](https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/geometric-layout-repair/github.svg)](https://agentmods.dev/skills/benchflow-ai/skillsbench/geometric-layout-repair)
Your own site
<a href="https://agentmods.dev/skills/benchflow-ai/skillsbench/geometric-layout-repair"><img src="https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/geometric-layout-repair/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for geometric-layout-repair

Your own site · 80×15
<a href="https://agentmods.dev/skills/benchflow-ai/skillsbench/geometric-layout-repair"><img src="https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/geometric-layout-repair.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,057 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01057
Opus 5 $0.00015 $0.00528
Sonnet 5 $0.00006 $0.00211
Haiku 4.5 $0.00003 $0.00106

Measured 12d ago against content hash 9fc46125c193, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

geometric-layout-repair 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 12d 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.

tasks/ada-bathroom-plan-repair/environment/skills/geometric-layout-repair/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  • room.polygon: ordered room boundary points.
  • door: id, clear width, swing type, and opening segment.
  • fixtures: id, type, bounding box, and any fixture-specific accessibility metadata.
  • grab_bars: id, type, length, and segment endpoints.
  • turning_space: circle type, diameter, and center.

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:
    • Adjust metadata that is already implied by the plan, such as door swing direction.
    • Move a fixture a small distance to meet centerline or clearance rules.
    • Reposition a turning circle within usable floor area.
    • Adjust a nearby fixture locally when the turning circle cannot fit otherwise.
    • Expand the room boundary only if the task explicitly allows it or no local compliant repair exists.
  4. Keep unchanged fixture IDs and protected fixtures stable.
  5. After each edit, recompute clearances and containment.

DXF Repair Output

  • Start from the input DXF so the original architectural context is preserved.
  • Add or update semantic repair layers for the final geometry, such as REPAIR-ROOM, REPAIR-DOOR, REPAIR-WC, REPAIR-LAV, REPAIR-TUB, REPAIR-GRABBAR, and REPAIR-CLEARANCE.
  • Overlay repair layers are an acceptable final CAD repair representation when the verifier needs machine-checkable geometry. Do not spend time deleting or rewriting the original CAD layers unless the task explicitly requires destructive source-layer editing.
  • Write room and fixture boundaries as closed lightweight polylines.
  • Write grab bars as line segments with endpoints matching the repaired layout.
  • Write the turning circle as a CIRCLE entity with radius diameter / 2.
  • Save the repaired CAD file to the requested output path, usually /root/output/repaired_plan.dxf.
  • Finish the required JSON and DXF outputs before producing optional visual previews or exploratory artifacts.

Read the full file on GitHub · 74 lines

Changes

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.

  1. 12d ago First seen · 74 lines · 29 tokens per session scan A 9fc46125c193

Subscribe to this mod's changes

geometric-layout-repair is a skill published in the GitHub repository benchflow-ai/skillsbench (1,764 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 29 tokens to every session and 1,057 once invoked, about $0.0001 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-30.