# Kernelcad patterns

> Kernelcad patterns is an open-source agent skill for developer tools. Lets an agent replicate CAD features linearly, circularly or in a grid as one unit. 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-patterns
- **Repository:** https://github.com/w1ne/kernelcad-web
- **GitHub stars:** 37
- **License:** MIT
- **Skill name:** kernelcad-patterns
- **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 covers pattern operations in kernelCAD, a CAD modeling environment. It explains how to repeat a sub-feature such as a hole, rib, fin, tab or spoke along a line, around an axis, or across a two-dimensional grid, with each call producing a single editable feature record and one undo step.

The guidance describes the API surface for linear, circular and grid patterns, including count, direction, spacing and angle parameters, and notes that patterned bodies are combined by boolean union. It warns that patterning subtractive features such as holes only keeps each void when neighbouring instances do not overlap. It also shows how to address an individual instance's faces by synthetic lineage ids and how to reference all instances through the source feature's name.

The skill lists diagnostic codes for missing source features and out-of-range counts, and a set of verification checks to run before reporting work done, including evaluation, interference and count validation. It assumes familiarity with TypeScript and the kernelCAD command line tools and MCP introspection.

## When your agent uses it

> Mechanical patterns — linear, circular, grid. Use when replicating a sub-feature (hole, rib, fin, tab, spoke) along an axis, around an axis, or across a 2D grid as a single editable unit.

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

## Features

- **Linear pattern API:** Repeats a source feature a set number of times at a fixed spacing along a direction.
- **Circular pattern API:** Arranges instances around an axis with an optional total angle.
- **Grid pattern API:** Creates two-dimensional arrays of a feature across x and y directions.
- **Boolean union semantics:** Explains how overlapping patterned bodies combine and when subtractive features keep their voids.
- **Instance face addressing:** Shows how to reference a single pattern instance or all instances through named selectors.
- **Pattern verification checks:** Lists gates for count, direction, spacing, source binding and interference before finishing.

## Good for

- Add a row of evenly spaced cooling fins to a housing
- Place six spokes around a central hub
- Drill a 4 by 3 grid of mounting holes in a plate
- Change the number of patterned instances through a parameter
- Check that patterned holes do not overlap or fill each other

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### What does a pattern call produce in the model?

Each call produces a single FeatureRecord, which is one editable unit, one row in inspect output and one undo step, with instance 0 being the source position.

### Can patterns cut holes repeatedly without problems?

Patterning a subtractive feature such as a hole only preserves each void when the patterned bodies are disjoint, because overlapping instances are filled by boolean union.

### What are the valid count values?

Count must be an integer of at least 2, and for grid patterns both x and y counts must meet that minimum.

### Which tools does the skill require?

The skill does not set an allowed tools list; it refers to the kernelcad evaluate and interference commands and to the add_pattern_feature MCP tool.

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

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

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

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

The closest alternatives to Kernelcad patterns are Kernelcad features, Kernelcad authoring, Kernelcad from reference, Kernelcad nurbs and Kernelcad design loop.

## Where this comes from

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

## Alternatives

- [Kernelcad features](https://ai-powered.com/skills/kernelcad-features): Kernelcad features is an open-source agent skill for developer tools.
- [Kernelcad authoring](https://ai-powered.com/skills/kernelcad-authoring): Kernelcad authoring is an open-source agent skill for developer tools.
- [Kernelcad from reference](https://ai-powered.com/skills/kernelcad-from-reference): Kernelcad from reference is an open-source agent skill for developer tools.
- [Kernelcad nurbs](https://ai-powered.com/skills/kernelcad-nurbs): Kernelcad nurbs 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 fields](https://ai-powered.com/skills/kernelcad-fields): Kernelcad fields is an open-source agent skill for developer tools.
- [Kernelcad sheet metal](https://ai-powered.com/skills/kernelcad-sheet-metal): Kernelcad sheet metal 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-patterns
