kernelcad-from-reference

kernelcad-from-reference is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 51 tokens per session (2,808 once invoked), scanned A, original, MIT.

A step-by-step coordinator for recreating a real-world object from photographs or written measurements using kernelCAD, a tool for defining 3D shapes in code.

In plain words
What is it for?
Use it to measure a reference, choose the appropriate modeling workflow, build the object, and compare the result with the source images.
Why use it?
It helps choose the right modeling and checking steps when you start with incomplete information, such as photos without dimensions.

Skill for Claude CodeCodex

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

Good fit Use it to measure a reference, choose the appropriate modeling workflow, build the object, and compare the result with the source images.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-from-reference"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-from-reference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,808 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.00051 $0.02808
Opus 5.5 $0.00020 $0.01123
Sonnet 5.5 $0.00010 $0.00562
Haiku 4.5 $0.00005 $0.00281

Measured 1mo ago against content hash 7ef32326a8f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kernelcad-from-reference 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 1mo 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-from-reference/SKILL.md · 199 lines

How it starts

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

kernelCAD — from reference (orchestrator)

Reproduce a real-world artifact from one or more reference photographs using kernelCAD primitives. This is an orchestrator skill that names sub-skills and their order. Read this first; then load each sub-skill in sequence as you work through the stages.

Decision tree (1 screen — start here)

Have an engineering drawing as a vector PDF (orthographic views + lettered
dimensions)? → call `drawing_to_cad` first (see "Engineering drawing PDF"
below). A scanned / photographed drawing is a photo: use the photo path.
Have a written spec with numeric dimensions? → just read kernelcad-authoring
                                                + use-the-available-kernel,
                                                build single-pass, score.
Simple front-on consumer electronics or passive enclosures with a photo and a
known dimension? → read `photo-to-device/SKILL.md` before blockout. Its
                   hosted-vs-local reference-asset rule controls generic
                   `referenceImage()` advice for this path; it is not a mesh
                   concept or mechanism workflow.
Have a reference photo only? ──┬─ Extract numeric dimensions FIRST
                               │  (measure visually OR if STL available
                               │   use trimesh to extract bbox+landmarks),
                               │  then proceed as if you had a spec.
                               │
                               └─ Don't iterate against the 2D-photo scorer —
                                  R5/R16/R18 empirical: it's gameable. Use
                                  the geometric scorer (scripts/scoreMeshVsMesh.ts)
                                  if an STL reference is shipped.

Building an organic-curve outline (upper contour, grip, sneaker)?
   → use path().smoothSpline() — chained sagittaArc hits solver cliffs.

Building an bevel-style chamfer on post-cut topology?
   → just call .chamfer(d). The kernel auto-skips edges shorter than 2×d
     and emits a clean warning. Do NOT "skip and document."

Iteration mode: visual > scored > spec+photo (R1-R6 empirical).
   Single-pass with a detailed spec OUTPERFORMS visual or scored iteration.
   Adding the photo to a good spec REGRESSES (R3). Closed-loop scorer-only
   iteration plateaus FAR below single-pass (R2 / R16). Only iterate when
   you have a CLEAR signal pointing at a SPECIFIC defect.

Read the full file on GitHub · 199 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. 1mo ago Changed 7ef32326a8f2
  2. 1mo ago Changed · +28 lines b3bbc63fe48f
  3. 2mo ago Changed · +58 lines 41190e34fc00
  4. 3mo ago First seen · 113 lines · 51 tokens per session scan A 372a760aa57a

Subscribe to this mod's changes

kernelcad-from-reference is a skill published in the GitHub repository w1ne/kernelCAD-web (36 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 2,808 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

kernelcad-from-reference compared with skills from other repositories

kernelcad-from-reference next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kernelcad-from-referencew1ne/kernelCAD-webSkill36todayMITA51Claude Code, Codex
cadquery-modelingarmpro24-blip/cad-cae-copilotSkill9924d agoMITA0Claude Code, Codex
solidworks-mcpczuryk/SolidworksMCPSkill1313d agoMITA58Claude Code, Codex
pcbearthtojake/text-to-cadSkill28ktodayMITA103Claude Code, Codex
print3dearthtojake/text-to-cadSkill28ktodayMITA97Claude Code, Codex
solidworks-fillet-chamfer-cncwzyn20051216/solidworks-automation-skillSkill2.8k8d agoMITA107Codex
solidworks-vibecadwzyn20051216/solidworks-automation-skillSkill2.8k8d agoMITA96Claude Code, Codex