
Kernelcad fields
Builds smooth signed-distance solids and TPMS lattice infill in kernelCAD
Kernelcad fields 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 fields
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.
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 (10 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-fields 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-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.
Copy the skill folder to ~/.agents/skills/kernelcad-fields 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-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.
Copy the skill folder to ~/.cursor/skills/kernelcad-fields 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-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.
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-fieldsOr copy the folder to ~/.gemini/skills/kernelcad-fields yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/kernelcad-fields:
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.
Get the folder:
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.gitThen 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.
What it does
- 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
Kernelcad fields 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.
More from w1ne/kernelCAD-web

Compares bounded kernelCAD design variants on one evidence basis with a review gate
- Open source
- 37 GitHub stars
- Developer tools

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

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

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

Lets an agent show a kernelCAD model in Studio and act on painted review marks
- Open source
- 37 GitHub stars
- Design and media

Gates a kernelCAD revision for fabrication with state-labelled, revision-bound evidence
- Open source
- 37 GitHub stars
- Developer tools

