# Kernelcad fields

> Kernelcad fields is an open-source agent skill for developer tools. Builds smooth signed-distance solids and TPMS lattice infill 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-fields
- **Repository:** https://github.com/w1ne/kernelcad-web
- **GitHub stars:** 37
- **License:** MIT
- **Skill name:** kernelcad-fields
- **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 teaches an agent to model parts in kernelCAD using signed-distance fields. It covers the sphere, box, cylinder and torus primitives, positioning them with translate, joining them with a smooth blend that sets a fillet radius at the junction, and converting the result into a standard Shape with materialize at a chosen sampling resolution. It also lists the resulting limits, such as polyhedral faces and canonical face references that no longer apply.

The skill sets out a verification sequence before the agent reports a model done. It has the agent probe sample points with the evaluate_sdf tool, confirm blend radii are positive, keep resolution within the allowed range, and run the evaluate command to catch field diagnostics. It also documents timing and triangle counts for common resolutions so the agent can judge cost.

The skill also covers lattice infill applied as the final step to a finished body. It describes the gyroid, Schwarz-P, diamond and neovius surfaces, sheet or network variants, skin thickness, and grading by depth, by hole distance or by a stress study. Output is a watertight mesh solid suitable for STL, 3MF or OBJ export, not a B-rep, so STEP and drawing exports are not available. Work is done in kernelCAD's TypeScript-based script environment.

## When your agent uses it

> Signed-distance fields — sdf.sphere/.box/.cylinder/.torus, sdf.smoothBlend, sdf.materialize — and TPMS lattice infill (body.lattice — gyroid, Schwarz-P, diamond, Neovius; graded, conformal). Use for smooth-blended primitives, organic shapes and lightweight lattice cores.

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

## Features

- **Signed-distance primitives:** Sphere, box, cylinder and torus fields centred in their local frame and positioned with translate.
- **Smooth blending:** Union of fields with a set blend radius to create fillets at junctions and organic transitions.
- **Materialize to Shape:** Converts a field into a standard solid with adjustable sampling resolution and clamped limits.
- **Field verification:** Point sampling and diagnostic checks to confirm finite distances and valid parameters before materializing.
- **TPMS lattice infill:** Fills finished bodies with gyroid, Schwarz-P, diamond or neovius lattices inside a solid skin.
- **Graded lattice walls:** Varies wall thickness or density by depth, distance to holes or stress from a finite element study.
- **Mesh output limits:** Documents that lattice results are mesh solids for STL, 3MF and OBJ export, with booleans after lattice unsupported.

## Good for

- Model a plate with a smoothly filleted pin joined at the base
- Create an organic blended shape from spheres and cylinders
- Fill a bracket with a lightweight gyroid lattice core
- Grade lattice wall thickness near bolt holes for stronger mounts
- Check an SDF model for invalid blend radii before exporting

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### What does the skill need to be used?

It works with kernelCAD scripts written in TypeScript, using its sdf namespace and body.lattice method.

### When should an agent use Kernelcad fields?

For smooth-blended primitives, organic shapes and lightweight lattice cores, as its description states.

### Can lattice parts be exported to STEP or drawings?

No. Lattice output is a mesh solid, so STEP, DXF and drawing exports are refused; STL, 3MF and OBJ work.

### Can fillets or booleans be applied after lattice infill?

No. Booleans, fillets or holes after a lattice fail, so lattice must be the last step in the body chain.

### What resolution should be used for materialize?

The default is 30, within a range of 10 to 200; the skill suggests 40 to 60 for fine blends.

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

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

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

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

The closest alternatives to Kernelcad fields are Kernelcad authoring, Kernelcad features, Use the available kernel, Kernelcad nurbs and Kernelcad from reference.

## 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 features](https://ai-powered.com/skills/kernelcad-features): Kernelcad features 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 nurbs](https://ai-powered.com/skills/kernelcad-nurbs): Kernelcad nurbs 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 fea](https://ai-powered.com/skills/kernelcad-fea): Kernelcad fea 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 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-fields
