# Kernelcad from reference

> Kernelcad from reference is an open-source agent skill for developer tools. Guides an agent through rebuilding a real object from reference photos in kernelCAD. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/w1ne/kernelCAD-web/tree/develop/src/agent/skills/kernelcad-from-reference
- **Repository:** https://github.com/w1ne/kernelcad-web
- **GitHub stars:** 37
- **License:** MIT
- **Skill name:** kernelcad-from-reference
- **Collection:** https://github.com/w1ne/kernelCAD-web
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This orchestrator skill maps out the stages of reproducing a physical artifact from one or more reference photographs with kernelCAD primitives. It starts with a decision tree that routes the work by input type: vector engineering drawings, written dimension specs, simple consumer devices, or photos alone. It then lists the sub-skills to load and in what order, covering primitive selection, a brief that describes the real object, blockout modelling, outline tracing, and a render-score-iterate loop.

The skill sets verification gates the agent must pass before a model is finalized. These cover evaluation without errors, zero part interference, reference parity, no floating or protruding parts, a readable front view, score thresholds against the reference, and resolution of assumption ledgers from imported drawings. It also describes a deterministic PDF import tool that reads vector drawing linework and dimension text into a script with a fidelity verdict.

Using it expects a kernelCAD environment with its CLI and MCP tools, and a reference image or drawing supplied by the user. The guidance is written around kernelCAD's TypeScript scripting model.

## When your agent uses it

> Reproduce a real-world artifact from one or more reference photographs using kernelCAD primitives. Orchestrator skill — names sub-skills and their order. Load this first; it points at the right sub-skill for each stage.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/w1ne/kernelCAD-web/tree/HEAD/src/agent/skills/kernelcad-from-reference)
- [License: MIT](https://github.com/w1ne/kernelCAD-web/tree/HEAD/src/agent/skills/kernelcad-from-reference)

## Features

- **Input-based routing:** A decision tree picks the starting path for vector drawings, written specs, consumer devices or photos only.
- **Sub-skill sequence:** Lists the companion sub-skills to load in order, from primitive selection through blockout and tracing.
- **Vector drawing import:** Describes a tool that rebuilds prisms and turned parts from vector PDF drawings with a fidelity verdict.
- **Verification gates:** Defines binary checks for evaluation, interference, reference parity, floaters, and score thresholds.
- **Assumption ledger handling:** Explains how inferred, assumed and missing dimension facts are reviewed or overridden before finalizing.

## Good for

- Rebuild a mechanical part from a dimensioned vector PDF drawing
- Model a simple consumer gadget from a front photo and one known dimension
- Trace an organic curve like a handle outline from a reference photo
- Check a finished kernelCAD model for overlaps and floating parts
- Plan a staged build of an artifact from several reference photographs

## Install

### Claude Code

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

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

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

### Codex

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

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

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

### Cursor

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

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

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

### Gemini CLI

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

```sh
gemini skills install https://github.com/w1ne/kernelCAD-web.git --path src/agent/skills/kernelcad-from-reference
```

Or copy the folder to `~/.gemini/skills/kernelcad-from-reference` yourself.

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### Which tool should I load first?

Load this orchestrator skill first; it points to the right sub-skill for each stage.

### Does drawing import work on scanned drawings?

No. Only vector PDF paths and text are read; scanned or raster drawings should use trace_from_image with a scale anchor.

### What does the drawing import tool produce?

It emits a kcad.ts script and a ledger JSON file, with role-named parameters and a fidelity verdict.

### Can I tune the model against the photo scorer?

The skill advises against iterating against the 2D photo scorer because it can be gamed, and suggests the geometric scorer when an STL reference exists.

### How do I install Kernelcad from reference in Claude Code?

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

### Does Kernelcad from reference 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 from reference?

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 from reference?

The closest alternatives to Kernelcad from reference are Kernelcad authoring, Kernelcad design loop, Use the available kernel, Kernelcad trace from image and Kernelcad MCP.

## Where this comes from

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

## Alternatives

- [Kernelcad authoring](https://ai-powered.com/skills/kernelcad-authoring): Kernelcad authoring is an open-source agent skill for developer tools.
- [Kernelcad design loop](https://ai-powered.com/skills/kernelcad-design-loop): Kernelcad design loop is an open-source agent skill for developer tools.
- [Use the available kernel](https://ai-powered.com/skills/use-the-available-kernel): Use the available kernel is an open-source agent skill for developer tools.
- [Kernelcad trace from image](https://ai-powered.com/skills/kernelcad-trace-from-image): Kernelcad trace from image is an open-source agent skill for developer tools.
- [Kernelcad MCP](https://ai-powered.com/skills/kernelcad-mcp): Kernelcad MCP is an open-source agent skill for developer tools.
- [Kernelcad features](https://ai-powered.com/skills/kernelcad-features): Kernelcad features is an open-source agent skill for developer tools.
- [Kernelcad repair](https://ai-powered.com/skills/kernelcad-repair): Kernelcad repair is an open-source agent skill for developer tools.
- [Kernelcad drawings](https://ai-powered.com/skills/kernelcad-drawings): Kernelcad drawings is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/kernelcad-from-reference
