kernelcad

A two-level toolkit for creating or editing kernelCAD models in TypeScript files ending in .kcad.ts. kernelCAD is used to describe 3D computer-aided design models in code.

In plain words
What is it for?
Use it to make coded geometry, add features such as holes or fillets, create adjustable parameters, assemble parts, use standard components or build advanced curved surfaces.
Why use it?
It helps select the relevant instructions for the kind of model or mechanical feature being built instead of treating every CAD task the same way.

Skill for Claude CodeCodex

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.

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

Made for: Claude Code, Codex.

Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,249 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00036 $0.02249
Opus 5 $0.00018 $0.01125
Sonnet 5 $0.00007 $0.00450
Haiku 4.5 $0.00004 $0.00225

Measured 2d ago against content hash 49bc61353aaa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

kernelcad 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 2d 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/SKILL.md · 61 lines

How it starts

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

kernelCAD

A two-tier skill system. Load kernelcad-authoring to write or modify any .kcad.ts model. Add specialty skills as the task demands.

Decision tree

  • Authoring or editing .kcad.ts geometry → load kernelcad-authoring.
  • Building from a reference photo or visual brief → also load kernelcad-from-reference.
  • Adding fillets, chamfers, shells, holes, cutouts → also load kernelcad-features.
  • Editable parameters / set_param / live sliders → also load kernelcad-params.
  • Multi-part with joints / mates / connectors → also load kernelcad-assemblies.
  • Need an off-the-shelf fastener, bearing, motor, header, or connector → also load kernelcad-parts.
  • Freeform NURBS surfaces, NURBS curves, Coons patches, multi-section sweeps, G2 fillet continuity, or freeform 2D path outlines (nurbsSurface, surfaceFromCurves, surfaceFromBoundary, nurbsCurve, spline3d, hermiteG2, variableSweep, fillet({ continuity: 'G2' }), path().spline(...), path().nurbsSegment(...), path().hermiteG2(...)) → also load kernelcad-nurbs.
  • Mechanical patterns (linear / circular / grid replication of a sub-feature) → also load kernelcad-patterns.
  • Folded sheet-metal parts (brackets, channels, panels, bend tables, flat patterns) → also load kernelcad-sheet-metal.
  • Signed-distance fields (smooth-blended primitives, organic shapes via sdf.* + materialize) → also load kernelcad-fields.
  • Exporting an assembly to URDF for a motion planner or simulator → also load kernelcad-urdf.
  • Adding planning groups / end-effectors / allowed-collision data on top of a URDF → also load kernelcad-srdf.
  • Exporting an assembly with closed kinematic loops or a native ball joint → also load kernelcad-sdformat.
  • Producing a 2D engineering-drawing sheet (third-angle views, hidden lines, dimensions, title block) → also load kernelcad-drawings.
  • Introspecting a running model via MCP (inspect({ of: 'features' }), edit ops, diagnostics) → load kernelcad-mcp instead of authoring.
  • Feasibility gates on moving assemblies — collision sweeps across joint ranges, IK reachability, mounting-hole consistency, static-load capacity (checkSweptCollision, checkReachable, checkMountingHoleConsistency, checkLoadCapacity) → also load kernelcad-kinematic.

Read the full file on GitHub · 61 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. 2d ago First seen · 61 lines · 36 tokens per session scan A 49bc61353aaa

Subscribe to this mod's changes

kernelcad is a skill published in the GitHub repository w1ne/kernelCAD-web (17 stars, last pushed 4d ago), licensed MIT. It adds 36 tokens to every session and 2,249 once invoked, about $0.0002 per session on Opus 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

Thin SimpleCAD SDK reference skill focused on the public API surface, core types, and current modeling workflows.

NiJingzhe/SimpleCADAPI · 25 tokens

opengis-skills

Use when AI coding assistant needs GIS/CAD/C#/AI/IoT/3D domain expertise for 72+ open-source projects. One-stop skill index with tag-based search and on-demand loading for GDAL, GeoServer, QGIS, PostGIS, JTS, CesiumJS, FreeCAD, OpenSCAD, OCCT, NPOI, SqlSugar, Furion, Dify, SuperSplat, Go and more.

znlgis/opengis-skills · 97 tokens

cad

Use when doing parametric 3D modeling, 2D drafting, geometric kernel development, BIM/IFC processing, PCB design, or AutoCAD .NET development. Index of 19 skills: FreeCAD, OpenSCAD, OCCT, CadQuery, KiCad, SolveSpace, QCAD, xBIM, Clipper2, TongWen and more.

znlgis/opengis-skills · 79 tokens

cadquery-modeling

Generate CAD models with CadQuery using an adaptive CAD Compiler workflow: plan-mode skill constraint handoff, focused iteration scopes, fail-first challenge review, compact review packets, real-product reference fidelity, visual/functional audits, source-first repair, and STEP/STL export. Use for CadQuery, CQ, 建模…

armpro24-blip/cad-cae-copilot · 97 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-cad-cae-copilot

MCP-first evidence workflow for AIENG CAD/CAE setup, solver preflight, approval-gated solver execution, and result extraction. Use when the user asks to inspect CAE readiness, patch setup, prepare/run CalculiX, or report stress/displacement evidence.

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