Skip to content
Skill

Kernelcad repair

Guides an agent to trace and apply bounded fixes to failing kernelCAD scripts

Kernelcad repair is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
37
Last commit
License
MIT
Listing updated

Similar skills

About Kernelcad repair

This skill walks an agent through repairing a kernelCAD model after evaluation reports an error, a failed gate, or a degraded feature. It sequences the MCP tools: evaluate the script, explain the failure to find the upstream chain and an editable line range, preview candidate patches as diffs, then apply the first candidate that clears the diagnostic without introducing new errors.

The repair stays inside a region the tool defines, covering the failing statement, the statements authoring its direct inputs, and the parameter declarations it reads. Each pass targets one diagnostic, and the agent is told to report exactly which change cleared it. Where no automatic candidate exists, the skill directs the agent to treat the fix as a design decision within that region rather than guessing.

The workflow expects a kernelCAD project with its MCP tools available, along with a TypeScript model file to edit. The skill refers to companion skills for the full MCP surface, feature semantics, parameters and authoring API.

When your agent uses it

Turn a failed evaluation into a bounded, applied fix — why_did_this_fail for the repair region and candidates, then repair_script to apply and verify. Load when evaluate_script reports an error, a gate fails, or a feature shows up degraded in featureHealth.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (9 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/kernelcad-repair to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kernelcad-repair &&
cp -R "$tmp/src/agent/skills/kernelcad-repair" ~/.claude/skills/kernelcad-repair &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/kernelcad-repair inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/kernelcad-repair to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/kernelcad-repair &&
cp -R "$tmp/src/agent/skills/kernelcad-repair" ~/.agents/skills/kernelcad-repair &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/kernelcad-repair inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/kernelcad-repair to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/kernelcad-repair &&
cp -R "$tmp/src/agent/skills/kernelcad-repair" ~/.cursor/skills/kernelcad-repair &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/kernelcad-repair inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/w1ne/kernelCAD-web.git --path src/agent/skills/kernelcad-repair

Or copy the folder to ~/.gemini/skills/kernelcad-repair yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/kernelcad-repair:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kernelcad-repair &&
cp -R "$tmp/src/agent/skills/kernelcad-repair" ~/.copilot/skills/kernelcad-repair &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/kernelcad-repair inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git

Then copy kernelCAD-web/src/agent/skills/kernelcad-repair into your agent's skills folder as kernelcad-repair. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Evaluate and explain failures
Runs the script evaluation and traces a failing feature to its upstream chain and authoring location.
Bounded repair region
Limits edits to the failing statement, its direct inputs and the parameters they read.
Dry-run candidate preview
Shows every candidate patch as a diff before anything is applied.
Verified application
Applies candidates in order and keeps the first that clears the diagnostic without new errors.
Automatic fix ladders
Provides derived candidates for common diagnostics such as fillet radius, hole placement and draft angle.
Explicit quality gates
Defines checks that refuse out-of-region patches, source drift and unverified repairs.

Good for

  • Fix a fillet that fails because its radius is too large for the edges
  • Move a hole back onto the entry face of its plate
  • Repair a boolean cutter that sits away from its base body
  • Resolve a tangent circle that is too small to sit outside two circles
  • Recover a feature that silently degraded in featureHealth

Kernelcad repair FAQ

When should Kernelcad repair be loaded?

When evaluate_script reports an error, a gate fails, or a feature appears degraded in featureHealth.

Does repair_script write changes to disk?

No. It returns the new code, and the agent decides whether to persist it to the file.

What happens when no automatic candidate exists?

The tool returns no-automatic-candidate with a reason and the editable region, meaning the fix is a design decision the agent must make within that region.

Can the repair edit lines anywhere in the file?

No. Patches outside the repair region are refused with tool.repair.out-of-region, and the root cause should be traced upstream instead.

How do I install Kernelcad repair in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/kernelcad-repair to use it in all your projects, or to .claude/skills/kernelcad-repair in one project.

Does Kernelcad repair run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Kernelcad repair?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Kernelcad repair?

The closest alternatives to Kernelcad repair are Kernelcad MCP, Kernelcad design loop, Render inspect, Kernelcad from reference and Kernelcad authoring.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from w1ne/kernelCAD-web

  1. Compares bounded kernelCAD design variants on one evidence basis with a review gate

    • Open source
    • 37 GitHub stars
    • Developer tools
  2. Finds and runs kernelCAD cookbook recipes for common industrial CAD parts via MCP

    • Open source
    • 37 GitHub stars
    • Developer tools
  3. Builds and revises CAD parts through a hosted kernelCAD MCP server until checks pass

    • Open source
    • 37 GitHub stars
    • Developer tools
  4. Exports kernelCAD models to STEP, STL, 3MF, PLY, USD and more, with checks

    • Open source
    • 37 GitHub stars
    • Developer tools
  5. Lets an agent show a kernelCAD model in Studio and act on painted review marks

    • Open source
    • 37 GitHub stars
    • Design and media
  6. Gates a kernelCAD revision for fabrication with state-labelled, revision-bound evidence

    • Open source
    • 37 GitHub stars
    • Developer tools