b123d-repair

b123d-repair is a skill for Claude Code, Codex from pzfreo/build123d-mcp. It costs 0 tokens per session (6,692 once invoked), scanned A, original, Apache-2.0.

A repair workflow for broken 3D solid models made with build123d, a Python-based 3D modeling tool. It aims to make a model watertight and structurally valid without changing geometry beyond the defect.

In plain words
What is it for?
Use it to locate defects, choose repair steps, check model validity, and confirm that a repaired solid passes the export check.
Why use it?
It helps diagnose and repair imported or damaged shapes that fail validation or cannot be exported correctly.

Skill for Claude CodeCodex

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

Good fit Use it to locate defects, choose repair steps, check model validity, and confirm that a repaired solid passes the export check.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pzfreo/build123d-mcp/b123d-repair
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 pzfreo/build123d-mcp --skill b123d-repair
Clone the repo
git clone --depth 1 https://github.com/pzfreo/build123d-mcp

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 b123d-repair

README.md
[![agentmods](https://agentmods.dev/badge/skills/pzfreo/build123d-mcp/b123d-repair/github.svg)](https://agentmods.dev/skills/pzfreo/build123d-mcp/b123d-repair)
Your own site
<a href="https://agentmods.dev/skills/pzfreo/build123d-mcp/b123d-repair"><img src="https://agentmods.dev/badge/skills/pzfreo/build123d-mcp/b123d-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 b123d-repair

Your own site · 80×15
<a href="https://agentmods.dev/skills/pzfreo/build123d-mcp/b123d-repair"><img src="https://agentmods.dev/badge/skills/pzfreo/build123d-mcp/b123d-repair.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,692 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.00000 $0.06692
Opus 5 $0.00000 $0.03346
Sonnet 5 $0.00000 $0.01338
Haiku 4.5 $0.00000 $0.00669

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

Security

Grade A, and why

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

src/build123d_mcp/skills/b123d-repair/SKILL.md · 520 lines

How it starts

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

Repair Invalid Geometry with build123d (b123d-repair)

Use this skill when validate() or the export() gate reports FAIL on a shape — an imported STEP that arrives broken, or a solid your own construction damaged — and the goal is a watertight, manifold, BRepCheck-valid solid that passes the export gate without changing the geometry beyond the defect itself.

Every recipe here was proven on a real defective part; each entry says when it applies, when it fails, and what to try next. Work the ladder in order — the cheap fixes first — and verify every attempt with the export gate, not validate() alone (Step 2 explains why).

This skill is deliberately an agent-authored repair workflow, not an automatic healer. The MCP server should help you write better build123d/OCP code by answering:

  • validate() / export() — is the current or written shape structurally acceptable?
  • locate_gate_defects() — where is the failing face, edge, or mesh defect?
  • find_bored_bosses() — when a failed edit involved extending a bored boss, which bore/cap candidates exist, and whether the cap is split across several faces?
  • repair_advice() — which field-proven, generic repair/edit recipe fits this defect and requested goal, with acceptance checks and stop conditions?
  • this repair skill — which generic repair pattern fits that defect class?

The geometry-changing repair itself should be explicit code in execute(), with named variables, printed measurements, save_snapshot() / rollback points, and a visible volume/bbox/gate audit. Do not delegate the repair to an opaque MCP tool that silently manipulates the B-rep and returns a shape; that prevents the agent from reasoning about design intent and makes benchmark success hard to distinguish from accidental geometry surgery.


Step 0 — Diagnose before cutting

Do not apply repairs blind. First identify the defect class and its location.

  1. Read the gate output precisely. The FAIL reason names the class, and the class picks the recipe:
    • B-rep is not well-formed (BRepCheck failed) → a malformed face (usually unorientable, zero-area, or reversed) — Step 1, rungs 1-4.
    • N open edge(s) — not watertight → unsewn/missing faces — rungs 4-5.
    • N non-manifold edge(s) → an edge shared by 3+ faces — usually a coincident-face construction defect; prefer re-construction (Step 4) over surgery.
    • mesh open edge(s) / mesh non-manifold / face(s) failed to tessellate with brep_valid: true → a mesh-only defect (a ~zero-area unmeshable face, or a self-touch) — rung 5.
    • face(s) failed to tessellate at a finer mesh deflection with brep_valid: true → a tolerance-sensitive mesh-only defect: the face meshes at the default gate deflection but fails when a downstream consumer asks for a finer mesh — rung 5, using the re-patch/re-sew variant.
    • vertex(es) where a tessellated edge endpoint misses its BREP vertex with brep_valid: true → a mesh-only defect too, but a different one from the two above: a previously-patched/healed face's boundary is topologically closed (so BRepCheck and even mesh open edge(s) can both read clean) but geometrically off-vertex by a fraction of a millimetre — rung 5, using its re-patch-at-tighter-tolerance variant, not the drop-and-sew one.
  2. Get coordinates. locate_gate_defects() returns the failing edge/face's 3D position and B-rep identity — repair that exact spot, never chase the defect blind. Read its top-level diagnosis block too: primary_kind, diagnostic_classes, and repair_families tell you which rung to try first, while each defect's next_step says what explicit execute() repair to write and reminds you to verify the written STEP with export(). If the defect belongs to a known hard pattern, call repair_advice() with the gate output as error_text, the requested edit as goal, and the defect coordinates as context. Use the returned recipe as a checklist for your own execute() code; do not treat it as a geometry-mutating tool.
  3. Localize the face when BRepCheck is the failure — build ONE analyzer over the whole solid, not one per face (locate_gate_defects() itself runs out-of-process specifically because per-face BRepCheck work "can run for minutes on a complex part"; reconstructing an analyzer per face inside execute() on a large import risks the same timeout):

Read the full file on GitHub · 520 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 · 520 lines · 0 tokens per session scan A 5db6c5254af8

Subscribe to this mod's changes

b123d-repair is a skill published in the GitHub repository pzfreo/build123d-mcp (85 stars, last pushed 8d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 6,692 tokens. 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.

Related

Other skills, from other repositories

exasol-import-export

Exasol IMPORT and EXPORT SQL statements: syntax, file formats (CSV, FBV, Parquet), cloud storage (S3, Azure, GCS), connection objects, error handling, and ETL staging patterns.

exasol/mcp-server · 49 tokens

aieng-closed-loop-copilot

MCP-first closed-loop CAD/CAE copilot skill for improving an existing solved design against explicit targets. Use when the user asks for bounded design iteration using editable CAD parameters, solver reruns, and evidence-backed comparison.

armpro24-blip/cad-cae-copilot · 54 tokens

hmem-release

Pre-publish checklist for hmem: skills synced, version bumped, tests green, nothing forgotten. Use before npm publish or when the user says 'release', 'publish', 'push a release', or 'neue Version'.

Bumblebiber/hmem · 50 tokens

gemini-visualize

Generates interactive HTML visualizations (concept maps, evidence networks, knowledge graphs) from Gemini analysis results. Triggers automatically after /gr:video, /gr:research, /gr:analyze.

Galbaz1/video-research-mcp · 47 tokens

mlflow-traces

Use when working with MLflow traces: debugging via MCP tools, analyzing performance, logging feedback, writing custom scorers/evaluations, or cleaning up trace data.

Galbaz1/video-research-mcp · 37 tokens

video-explainer

Teaches Claude how to use the 15 video explainer tools to create explainer videos from research content. Activates when working with video synthesis, explainer creation, or the video-explainer MCP server.

Galbaz1/video-research-mcp · 48 tokens