kernelcad-fields

kernelcad-fields is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 52 tokens per session (1,759 once invoked), scanned A, original, MIT.

A 3D modelling method based on signed-distance fields, which describe how far each point is from a shape's surface. It supports spheres, boxes, cylinders, toruses, smooth blends, and conversion to a standard solid shape.

In plain words
What is it for?
Use it to combine rounded primitives, create smooth transitions, and produce shapes that can continue through boolean operations, fillets, and exports.
Why use it?
It provides smooth joins and organic forms where ordinary solid-model fillets may not work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to combine rounded primitives, create smooth transitions, and produce shapes that can continue through boolean operations, fillets, and exports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/w1ne/kernelcad-web/kernelcad-fields
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add w1ne/kernelCAD-web --skill kernelcad-fields
Clone the repo
git clone --depth 1 https://github.com/w1ne/kernelCAD-web

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kernelcad-fields

README.md
[![agentmods](https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-fields/github.svg)](https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-fields)
Your own site
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-fields"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-fields/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kernelcad-fields

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-fields"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-fields.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,759 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.01759
Opus 5.5 $0.00021 $0.00704
Sonnet 5.5 $0.00010 $0.00352
Haiku 4.5 $0.00005 $0.00176

Measured 12d ago against content hash 71d328789880, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kernelcad-fields scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/agent/skills/kernelcad-fields/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

kernelCAD — signed-distance fields

Compose signed-distance fields (sdf.sphere/.box/.cylinder/.torus), blend them smoothly with sdf.smoothBlend, then call sdf.materialize(field, { resolution }) to obtain a standard Shape that flows through booleans / fillets / exports.

const a = sdf.box([60, 40, 6]);          // base plate, axis-aligned, centred at origin
const b = sdf.cylinder(8, 30);           // pin, axis +Z, centred at origin
const field = sdf.smoothBlend(a, b, 3);  // 3 mm smooth fillet at the junction
return sdf.materialize(field, { resolution: 30 });

sdf primitive math (mm; centred at origin in local frame)

Field Returns
sdf.sphere(r) SdfField (kind 'sphere')
sdf.box([sx, sy, sz]) SdfField (kind 'box', axis-aligned, centred)
sdf.cylinder(r, h) SdfField (kind 'cylinder', axis +Z, centred)
sdf.torus(R, r) SdfField (kind 'torus', ring axis +Z, centred)
sdf.smoothBlend(a, b, k) SdfField (kind 'smoothBlend', polynomial smin with blend radius k mm)
sdf.materialize(field, { resolution? }) Shape (kind sdfMaterialize; default resolution 30, clamped to [10, 200])
sdf.bind(name, field) binds a field on the session so evaluate_sdf can sample it later (side effect; returns void)

Composition rules (slice 1)

  • field.translate(dx, dy, dz) positions a field before materialize. Primitives live in their local frame; .translate(...) returns a new SdfField offset by (dx, dy, dz) mm with the aabb shifted to match, so the marching-cubes sample region follows. Chained translates compose additively. After sdf.materialize the result is a Shape, not an SdfField — use the Shape's own .translate(...).
  • smoothBlend is union-only. Smooth-intersect / smooth-difference are deferred to slice 2+.
  • materialize is synchronous. It runs marching-cubes on the host (Node + browser) and sews in the same call. No async surface.

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed 71d328789880
  2. 1mo ago Changed · +2 lines 787673b3695f
  3. 1mo ago First seen · 103 lines · 52 tokens per session scan A 661432f8e0fd

Subscribe to this mod's changes

kernelcad-fields is a skill published in the GitHub repository w1ne/kernelCAD-web (33 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 1,759 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

simplecadapi

Build, assemble, inspect, reconstruct, and export parametric CAD models with the SimpleCADAPI Python SDK. Use for SimpleCAD geometry modeling, constrained sketches, parts and assemblies, standard gears and bearings, STEP/BREP inspection and reconstruction, vector-PDF drawing reconstruction, durable product packages…

NiJingzhe/SimpleCADAPI · 71 tokens

aieng-cad-authoring

Active MCP-first CAD authoring skill for AIENG Workbench. Use when the user asks to create, design, draft, model, or iteratively build CAD geometry through the active cad. MCP tools. Do not use for solver/result review, schema/library implementation, or editing legacy IR plans.

armpro24-blip/cad-cae-copilot · 67 tokens

aieng-closed-loop-copilot

MCP-first closed-loop CAD/CAE copilot skill for improving an existing solved design against explicit targets. Use when the user asks for bounded design iteration using editable CAD parameters, solver reruns, and evidence-backed comparison.

armpro24-blip/cad-cae-copilot · 54 tokens

rhino

Automate Rhino modeling through RhinoCommon, work with Grasshopper data trees, and configure Rhino.Compute workflows.

alivirgo/Major-AI-Skills · 24 tokens

mechanical-drafting-gbt

Create, revise, audit, validate, and present mechanical CAD using Chinese GB/T drafting conventions. Use for AutoCAD/AutoCAD MCP; parametric 2D/3D parts, complex assemblies, mechanisms, engines, gears, machined parts, consumer products, enclosures, and powered appliances; DXF/DWG/PDF/STEP and model-based definition…

beiming183-cloud/AutoCAD-skills · 145 tokens

modulor

2D drafting + 3D modeling via Modulor (agent-native CAD). Use when the user asks to draw floor plans, model buildings or parts, produce DXF/SVG drawings, STL/GLB meshes, IFC BIM models, or to import and modify existing DXF drawings. Requires pip install modulor.

bcllcc/modulor · 69 tokens