kernelcad-parts

kernelcad-parts is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 48 tokens per session (3,586 once invoked), scanned A, original, MIT.

A catalog and lookup tool for standard physical components such as fasteners, bearings, motors, headers, and connectors.

In plain words
What is it for?
Use it to browse categories, search component families, and load bundled or remotely discovered parts for use in kernelCAD assemblies.
Why use it?
It helps find real off-the-shelf parts instead of creating approximate placeholder geometry or searching for file paths by hand.

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-parts
Any agent
npx skills add w1ne/kernelCAD-web --skill kernelcad-parts
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-parts

README.md
[![agentmods](https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-parts.svg)](https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-parts)
Your own site
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-parts"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-parts.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,586 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.1 $0.00048 $0.03586
Opus 5 $0.00024 $0.01793
Sonnet 5 $0.00010 $0.00717
Haiku 4.5 $0.00005 $0.00359

Measured 5d ago against content hash 38caf990726a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

kernelcad-parts 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 5d 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-parts/SKILL.md · 277 lines

How it starts

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

kernelcad-parts

Load this skill when the agent needs an off-the-shelf component (M-series fastener, deep-groove ball bearing, NEMA stepper, pin header, JST-XH housing) and does not already know a STEP file path.

The catalog ships bundled with the npm package — npm install resolves every bundled id offline. When a query has no bundled match, discovery and fetch fall through to a built-in public parts catalog by default (see "Remote tier" below), so kernelCAD can find off-the-shelf parts it does not bundle. Set KERNELCAD_PARTS_BASE_URL=off to stay offline on the bundled seed only.

Four-tool discovery flow

When the agent does not know which id covers the intent, walk the discovery chain. Each step narrows the search:

  1. inspect({ of: 'part-categories' }) → top-level buckets (e.g. fastener, bearing, motor, connector, shaft).
  2. inspect({ of: 'part-families', category }) → families within the bucket (e.g. socket-head-cap-screw, deep-groove-ball-bearing).
  3. find_part { query, family?, standard?, tag?, licenseClass? } → ranked records that match the fuzzy query plus filters. Tokens AND-combine; cross-facet filters AND-combine. licenseClass ('permissive' | 'share-alike' | 'fetch-only') filters by redistribution license; records with no class are treated as permissive (the bundled catalog).
  4. fetch_part { id } → resolves the id to a record, writes the STEP into the cache, returns the cache path + sha256.

For tasks where the id is already known, skip straight to fetch_part or use the typed lib.standard.* shortcuts.

Fetch-by-URL (parts not in the catalog)

fetch_part { url } pulls geometry on demand from an allowlisted host (GitHub/GitLab raw + release-asset hosts and the kernelCAD parts host) — it is cached locally, never re-hosted (redistribution: 'fetch-only'):

  • A .step/.stp URL → inspected, connectors synthesized, returned as a record.
  • A .stl/.dae/.obj URL → returned as a mesh-import handle (non-BREP, attributes.geometryKind = 'mesh') for blockout/reference.
  • A vendor configurator URL (igus/MISUMI/Pololu/TraceParts) → NOT fetched; returns { kind: 'link_out', url, instruction }. Download the STEP from the configurator and ingest it locally with fetch_part { file }.
  • A disallowed host → { error: 'url_host_not_allowed' }.

Read the full file on GitHub · 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. 5d ago First seen · 277 lines · 48 tokens per session scan A 38caf990726a

Subscribe to this mod's changes

kernelcad-parts is a skill published in the GitHub repository w1ne/kernelCAD-web (18 stars, last pushed 7d ago), licensed MIT. It adds 48 tokens to every session and 3,586 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

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 · 0 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

cad-skills

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

znlgis/opengis-skills · 81 tokens

cadquery-modeling

Create, edit, or debug parametric 3D CAD parts in CadQuery (Python) that export to STEP for SolidWorks. Use when the request involves CadQuery, .step/.stl export, or modelling a physical part — enclosure, bracket, PCB, motor mount, cam, gear. Also use when a STEP will not open in CAD, or geometry looks correct in STL…

0oKevino0/claude-cad · 101 tokens

srdf

MoveIt2 SRDF authoring, validation, and planning-semantics workflow. Use when creating, editing, inspecting, or validating .srdf files, MoveIt planning groups, virtual joints, passive joints, end effectors, group states, disabled collisions, URDF-paired planning semantics, or SRDF handoff for live review. Use the URDF…

earthtojake/text-to-cad · 103 tokens

bambu-labs

Dry-run, upload, and cautiously initiate local Bambu Lab print jobs from validated plain .gcode, using Bambu LAN FTPS/MQTT handoffs.

earthtojake/text-to-cad · 38 tokens