kernelcad-authoring

kernelcad-authoring is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 55 tokens per session (4,140 once invoked), scanned A, original, MIT.

A guide for creating and editing kernelCAD 3D models in TypeScript files ending in .kcad.ts. The kernelCAD command-line tool can evaluate these scripts and export models to formats such as STL, STEP, DXF, 3MF, and GLB.

In plain words
What is it for?
Use it to design parts, assemblies, mechanisms, sheet-metal models, and standard-part integrations, including edits that need named dimensions and checks.
Why use it?
It gives a structured way to turn engineering requirements into editable, parameterized geometry and exported manufacturing or 3D files.

Skill for Claude CodeCodex

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

Good fit Use it to design parts, assemblies, mechanisms, sheet-metal models, and standard-part integrations, including edits that need named dimensions and checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/w1ne/kernelcad-web/kernelcad-authoring
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-authoring
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-authoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-authoring/github.svg)](https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-authoring)
Your own site
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-authoring"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-authoring/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-authoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-authoring"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,140 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 warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 72
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • high Prompt Injection · line 822
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
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.00055 $0.04140
Opus 5.5 $0.00022 $0.01656
Sonnet 5.5 $0.00011 $0.00828
Haiku 4.5 $0.00006 $0.00414

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

Security

Grade A, and why

kernelcad-authoring 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 3d 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-authoring/SKILL.md · 131 lines

How it starts

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

kernelCAD — authoring

Write or edit .kcad.ts TypeScript models; run kernelcad evaluate <file> or kernelcad export stl|step|dxf|3mf|glb <file> -o <out>.

Single-file scripts refuse top-level import/require with feature.invalid-args; define helpers in the same file.

This file is the core: units, the rules that prevent most failures, which API serves which intent, and the finish checklist. The full reference (every signature, CLI flag, material, recipe) lives in references/*.md beside this file; over MCP pull it with lookup_authoring_skill({ section: '<id>' }) or { query: '...' } (index at the end).

Coordinate System

  • Z-up, right-handed. Lengths in millimetres, angles in degrees.
  • box(x, y, z): corner-anchored at the origin (spans [0, x] × [0, y] × [0, z]). box(x, y, z, true) centres ALL three axes.
  • cylinder(h, r): axis along Z, centred in X/Y, base at z = 0, top at z = h (no centred flag).
  • sphere(r): centred on the origin.
  • path()...close() builds a Sketch in XY; .extrude(d) goes +Z; .revolve() turns the (radial X, axial Z) profile about Z.
  • Return rule: the script returns ONE Shape, or one assembly via assembly(...).model() / .solvedModel(). Only the returned value is exported, probed and measured. A script with no return still evaluates on the last CREATED shape (often a cutter or helper) and gets the warning script.no-return — treat it as a bug and add the return.

Conventions

The rules that prevent most failed evaluations (from the diagnostics catalogue and repair telemetry). Fix the cause, not the symptom.

  1. ParamRef arithmetic uses methods. param('w', 60) + 4 throws feature.invalid-args; write w.add(4), w.subtract(t), w.multiply(2), w.divide(4), w.negate(); also .min/.max/.abs/.clamp. Declare params at the top with units; every numeric argument must be finite (NaN/undefined fails capture).
  2. Holes are features, not cylinders. Use hole / holes / cutout instead of subtract(cylinder(...)): they drill the right size (threads, counterbores, countersinks), name their faces ('wall', 'floor', 'counterbore-*', 'countersink-cone') and reach drawings, BOM and DFM. Hole u/v are mm offsets from the CENTRE of the entry face (top/bottom: u=+X, v=+Y; front/back: u=+X, v=+Z; left/right: u=+Y, v=+Z), not world coordinates.
  3. Booleans need real overlap. Give unions ≥ 0.1 mm of overlap and cut tools ≥ 0.1 mm of run-out past the faces; never rely on coincident or tangent faces. A cut that misses the body is feature.subtractive-noop — check the tool's position and axis.
  4. One union, one connected body. union.disconnected = an operand floats; move it until it touches. union.member-overlap = two separately finished pieces of the same stock overlap; fuse first and .finish() once, or butt the members (span - 2 * railWidth).
  5. Separate components are named parts. Every physically distinct component is assembly().part(name, shape); parts that touch or move get connectors and a mate ('fastened', 'revolute', 'prismatic', 'cylindrical', 'planar', ...) with limits — not raw translate() offsets. Loose top-level bodies emit assembly.structure.unstructured-bodies.
  6. Sketches are one closed loop. Close the path, drop zero-length segments and duplicate points; a revolve profile stays at x ≥ 0 (feature.revolve.crosses-axis).
  7. Fillets and chamfers fit the wall. Keep the radius below half the local wall thickness, and every target edge at least 2 × radius long (feature.edge-feature.short-edges-skipped) — round a plate's corners in its outline (extrudeRoundedRect) rather than filleting short vertical edges (repair-oversized-fillet); fillet/chamfer/shell BEFORE the boolean that splits the face (feature.face-ref.ambiguous-after-split) and before transforms when you address faces by name.
  8. Face names exist only where a primitive defines them. Box: all six (top, bottom, left, right, front, back); cylinder: top/bottom only; sphere, extruded sketches, extrudeRoundedRect, revolves and lofts: none (feature.face-ref.not-applicable). Pick those faces, and faces a cavity cut duplicated, by query: { byNormal: 'Z' }, { byNormal: '-Z', atZ: 0 } (axis strings 'X', '-X', 'Y', '-Y', 'Z', '-Z').
  9. Await async helpers. selectEdges, lib.fromSTEP, lib.fetchPart, .boundingBox(), .recenter() and .seatOnFloor() return promises (feature.async-result.missing-await).
  10. Read the diagnostic, then repair one cause. Every diagnostic carries a hint; follow it. recompute.input.missing means an upstream feature failed — call why_did_this_fail. Never export or hand over a script whose last evaluate failed.
  11. Do not declare something impossible without calling lookup_api and lookup_cookbook first. kernelCAD does NURBS lofts, sweeps, boundary patches and G2 blends; it is not a polygon sculptor or a photoreal renderer.
  12. Helical geometry: rail from helix(...), sweep with spine: 'helix' (threads, worms) or spine: 'smooth' (wire springs). Internal threads are hole({ thread }), never a sweep. .mirror(plane) = source + reflection; .reflect(plane) = reflection only.

Read the full file on GitHub · 131 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago Changed 741662c91ac4
  2. 6d ago Changed · -1,464 lines 9d223508595e
  3. 7d ago Changed · +20 lines bdf01b8f0924
  4. 8d ago Changed · +18 lines 6347f54690aa
  5. 9d ago Changed · +1 lines ca906fffdbeb
  6. 10d ago Changed · +7 lines e1895b9cb19b
  7. 11d ago Changed · +32 lines 37127b6e3af7
  8. 12d ago Changed · +3 lines ba83101e8ae4
  9. 13d ago Changed b981d7990640
  10. 14d ago First seen · 1,514 lines · 55 tokens per session scan A 9e9d2e36ce71

Subscribe to this mod's changes

kernelcad-authoring is a skill published in the GitHub repository w1ne/kernelCAD-web (33 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 4,140 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

solidworks-mcp

Build, edit, inspect and export native SolidWorks models through solidworks-mcp. Use for CAD modeling, raster-to-sketch work and SolidWorks COM/MCP diagnostics. Read before calling a SolidWorks MCP tool.

czuryk/SolidworksMCP · 49 tokens

add-export

Add a new subpath export to the @cyanheads/mcp-ts-core package. Use when creating a new public API surface that consumers import from a dedicated subpath (e.g., @cyanheads/mcp-ts-core/newutil).

cyanheads/mcp-ts-core · 50 tokens

opengis-skills

Use when AI coding assistant needs GIS/CAD/C#/AI/IoT/3D domain expertise. Index of 96 skills across 8 categories: gis (32), cad (21), csharp (9), ai (14), iot (2), 3d (6), demos (4), others (8). Tag-based search and on-demand loading for GDAL, GeoServer, MapServer, Leaflet, PROJ, PostGIS, JTS, CesiumJS, FreeCAD…

znlgis/opengis-skills · 146 tokens

fluent-development

This skill should be used when the user asks to "build a fluent app", "create a servicenow app in typescript", or mentions "servicenow sdk", "now-sdk", "fluent", "scoped app as code", or "pro-code development" — or when the working directory contains a now.config.json or .now.ts files.

serac-labs/serac · 77 tokens

lightcad

Use when building or extending a desktop CAD/BIM application with the open-source FeiYang LightCAD platform — plugin development, custom elements, DWG/DXF I/O, 2D drafting and 3D/BIM modeling on C#/.NET. LightCAD (FeiYang Integrated Design Platform) is a C# CAD system integrating 2D design, 3D design, and BIM.

znlgis/opengis-skills · 85 tokens

sdk

Guide users building apps, scripts, CI pipelines, or automations on top of the Cursor TypeScript SDK (@cursor/sdk). Use when the user mentions integrating, installing, or writing code against the Cursor SDK; says Agent.create, Agent.prompt, Agent.resume, agent.send, run.stream, CursorAgentError, or @cursor/sdk; asks…

Kevin-Liu-01/Agent-Machines · 178 tokens