kernelcad-authoring

kernelcad-authoring is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 55 tokens per session (20,065 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

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-authoring
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.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.svg" alt="Measured on agentmods" 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 20,065 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.00055 $0.20065
Opus 5 $0.00028 $0.10032
Sonnet 5 $0.00011 $0.04013
Haiku 4.5 $0.00006 $0.02006

Measured 3d ago against content hash bd0bf021ff78, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 · 1,277 lines

How it starts

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

kernelCAD — authoring

Author or modify kernelCAD models in TypeScript. Scripts live in .kcad.ts files; the kernelCAD CLI (kernelcad evaluate <file> and kernelcad export stl|step|dxf|3mf|glb <file> -o <out>) executes them via an OpenCASCADE WASM kernel.

Agent authoring loop

Use this loop for every non-trivial model edit:

  1. Classify the job: blockout, production-ish part, reference replication, assembly/mechanism, sheet metal, or standard-part integration. Load the matching specialty skill before editing.
  2. Write the design brief in plain engineering terms: purpose, external dimensions, interfaces, materials/finish if relevant, moving parts, manufacturability assumptions, and what must be proven. If the request is ambiguous on load-bearing parameters — overall dimensions, units, symmetry, part count, fit/clearance targets — ask 1–3 targeted clarifying questions BEFORE generating geometry; if you proceed anyway, list each assumption in the brief and encode it as a named param() so the user can correct it without a rewrite.
  3. Map words to geometry: turn important prompt phrases into named source sections, parameters, parts, connectors, materials, or tests so the generated model stays traceable to the user's words.
  4. Plan parameters and artifacts: identify the .kcad.ts source file, named parameters, imported STEP files, expected exports, and the smallest verification command set before writing geometry.
  5. Edit source only: treat .kcad.ts, prompt/brief markdown, and provenance metadata as source. Do not hand-edit generated PNG, MP4, STEP, STL, score JSON, or capture metadata.
  6. Generate explicit targets: run the exact render/export/capture command for the requested artifact. Avoid broad directory refreshes unless the task is a release/demo rebuild.
  7. Validate deterministically: run kernelcad evaluate, relevant exports, assembly/review tools, interference checks, and scorer gates before accepting visual evidence.
  8. Inspect visual artifacts honestly: when a PNG/MP4/render is produced, open/read it and report what is visible. If the image shows wrong proportions, floating parts, occlusion, unreadable details, or a bad camera crop, repair source and regenerate.
  9. Packetize visual evidence: when visual evidence matters, run kernelcad render inspect <file> <outDir> to produce a deterministic inspection bundle: a manifest naming the source file, command, generated artifacts, and caveats, plus canonical RGB views. Add --channels rgb,mask,depth,normals when machine-readable object masks, depth, or view-space normals are needed. Use --focus <names> or --hide <names> to isolate feature ids or assembly part names when clutter would obscure the check. Keep richer channels in the same manifest packet; do not replace the canonical RGB views.
  10. Repair one cause at a time: target the smallest source change that addresses the failing check, then rerun the same check. Do not loosen gates or silently skip failing evidence.

Read the full file on GitHub · 1,277 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. 3d ago First seen · 1,277 lines · 55 tokens per session scan A bd0bf021ff78

Subscribe to this mod's changes

kernelcad-authoring is a skill published in the GitHub repository w1ne/kernelCAD-web (17 stars, last pushed 5d ago), licensed MIT. It adds 55 tokens to every session and 20,065 once invoked, about $0.0003 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

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

opengis-skills

Use when AI coding assistant needs GIS/CAD/C#/AI/IoT/3D domain expertise for 73+ 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

lightcad

Use when embedding lightweight 2D CAD features in web applications — basic drawing, layer management, snapping, DXF import. LightCAD: lightweight Web 2D CAD framework for browser-based drafting.

znlgis/opengis-skills · 43 tokens

model-context

MCP (Model Context Protocol) - Build AI-native servers with tools, resources, and prompts. TypeScript/Python SDKs for Claude Desktop integration.

bobmatnyc/claude-mpm-skills · 34 tokens

migrate-waniwani-sdk-0.19-to-0.20

Migrate a project from @waniwani/sdk 0.19.x to 0.20.x and auto-apply its breaking change: the entire legacy tier is deleted. The entry points @waniwani/sdk/legacy, /legacy/react, /legacy/next-js, /legacy/express-js, /next-js, /express-js and /chat/server no longer exist, ChatCard is gone from @waniwani/sdk/chat, and…

WaniWani-AI/sdk · 250 tokens

typescript-lsp

Search TypeScript SYMBOLS (functions, types, classes) - NOT text. Use Glob to find files, Grep for text search, LSP for symbol search. Provides type-aware results that understand imports, exports, and relationships.

youdotcom-oss/dx-toolkit · 51 tokens