# Kernelcad authoring

> Kernelcad authoring is an open-source agent skill for developer tools. Lets an agent write and verify kernelCAD .kcad.ts parametric CAD models and exports. 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-authoring
- **Repository:** https://github.com/w1ne/kernelcad-web
- **GitHub stars:** 37
- **License:** MIT
- **Skill name:** kernelcad-authoring
- **Collection:** https://github.com/w1ne/kernelCAD-web
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives an AI coding agent the authoring rules for kernelCAD, a TypeScript-based parametric CAD tool. It covers the Z-up coordinate system, primitives such as boxes, cylinders and spheres, transforms, booleans, sketches, path building and text sketches, along with a rule that a script must return a single shape or assembly.

The guidance steers the agent toward specific CAD practices: using hole features instead of subtracted cylinders, keeping booleans overlapping, naming separate components as assembly parts with mates, and keeping fillets within wall thickness. A manufacturing-intent table maps phrases such as threaded hole, gear, sheet metal bend or enclosure to the matching API calls and reference recipes. Before reporting completion, the agent is directed to measure bounding boxes and volumes, check holes and walls, run interference checks, render views and confirm the last evaluation is clean.

The skill expects kernelCAD's CLI for evaluating and exporting models to STL, STEP, BRep, DXF, 3MF and GLB, and it points to MCP lookup tools and reference files for full signatures. Scripts cannot use top-level imports, so helpers must live in the same file.

## When your agent uses it

> kernelCAD model authoring API — primitives, transforms, booleans, sketches, path-builder, sketch-text, return-single-shape rule, conventions, CLI commands, and verification gates. Load this when writing or modifying .kcad.ts geometry.

## 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-authoring)
- [License: MIT](https://github.com/w1ne/kernelCAD-web/tree/HEAD/src/agent/skills/kernelcad-authoring)

## Features

- **Coordinate and unit rules:** Explains the Z-up right-handed frame, millimetre lengths, degree angles and how corner- and centre-anchored primitives are placed.
- **Modelling conventions:** Lists common failure causes such as non-overlapping booleans, disconnected unions, closed sketch loops and fillet radius limits.
- **Manufacturing intent routing:** Maps requests like bolt holes, threads, gears, bends and enclosures to the appropriate kernelCAD API and cookbook recipe.
- **Pre-completion verification:** Checks that measured bounding boxes, holes, walls, mates, interference and renders match the original request.
- **Assembly and mates:** Describes separate named parts connected by typed mates such as revolute, prismatic and cylindrical joints with limits.
- **Out-of-scope capabilities:** Lists features kernelCAD does not offer yet, so the agent avoids generating code for them.

## Good for

- Model a bracket with clearance and tapped bolt holes
- Build a spur gear pair with a stated module and tooth count
- Create an enclosure with a shelled body and screw bosses
- Design a two-part hinge with a revolute mate
- Export a finished part to STEP and STL after a clean evaluation

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/kernelcad-authoring` 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-authoring &&
cp -R "$tmp/src/agent/skills/kernelcad-authoring" ~/.claude/skills/kernelcad-authoring &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/kernelcad-authoring` 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-authoring &&
cp -R "$tmp/src/agent/skills/kernelcad-authoring" ~/.agents/skills/kernelcad-authoring &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/kernelcad-authoring` 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-authoring &&
cp -R "$tmp/src/agent/skills/kernelcad-authoring" ~/.cursor/skills/kernelcad-authoring &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/kernelcad-authoring` 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-authoring
```

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

### VS Code

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

```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-authoring &&
cp -R "$tmp/src/agent/skills/kernelcad-authoring" ~/.copilot/skills/kernelcad-authoring &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/kernelcad-authoring` 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-authoring` into your agent's skills folder as `kernelcad-authoring`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It relies on the kernelCAD CLI for evaluating and exporting .kcad.ts models, and it points to MCP lookup tools for API and cookbook references.

### Can a .kcad.ts script import other modules?

No. Single-file scripts refuse top-level import or require, so helper functions must be defined in the same file.

### What happens if a script has no return statement?

It still evaluates on the last created shape, but kernelCAD raises a script.no-return warning, which the skill treats as a bug to fix.

### Which AI clients does the skill support?

The skill does not tie itself to specific clients, so it is listed for the shared agent skills format across the supported clients.

### How do I install Kernelcad authoring in Claude Code?

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

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

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 authoring?

The closest alternatives to Kernelcad authoring are Kernelcad from reference, Kernelcad design loop, Kernelcad assemblies, Kernelcad MCP and Kernelcad features.

## Where this comes from

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

## Alternatives

- [Kernelcad from reference](https://ai-powered.com/skills/kernelcad-from-reference): Kernelcad from reference 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.
- [Kernelcad assemblies](https://ai-powered.com/skills/kernelcad-assemblies): Kernelcad assemblies 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 drawings](https://ai-powered.com/skills/kernelcad-drawings): Kernelcad drawings is an open-source agent skill for developer tools.
- [Kernelcad export](https://ai-powered.com/skills/kernelcad-export): Kernelcad export 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.

---
Source: https://ai-powered.com/skills/kernelcad-authoring
