kernelcad-patterns

kernelcad-patterns is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 53 tokens per session (1,370 once invoked), scanned A, original, MIT.

A modeling tool for repeating one mechanical feature in a line, circle, or two-dimensional grid. Each repetition remains one editable pattern in the model.

In plain words
What is it for?
Use it for rows of fins, circular spokes, bolt-hole arrays, ribs, tabs, or other repeated parts of a mechanical model.
Why use it?
It avoids manually copying and editing every repeated feature, while keeping the whole pattern easier to inspect and undo.

Skill for Claude CodeCodex

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

Good fit Use it for rows of fins, circular spokes, bolt-hole arrays, ribs, tabs, or other repeated parts of a mechanical model.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-patterns"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,370 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.00053 $0.01370
Opus 5.5 $0.00021 $0.00548
Sonnet 5.5 $0.00011 $0.00274
Haiku 4.5 $0.00005 $0.00137

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

Security

Grade A, and why

kernelcad-patterns 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 3mo 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-patterns/SKILL.md · 90 lines

How it starts

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

kernelCAD — mechanical patterns

Shape.patternLinear / .patternCircular / .patternGrid produce a single FeatureRecord per call — one editable unit, one row in inspect({ of: 'features' }), one undo step. The pattern composes the source feature into N instances; instance 0 is the source position.

// Linear: 5 fins evenly spaced 10 mm along +X
const fin = box(2, 20, 8);
const heatsink = plate.add(fin).patternLinear({ count: 5, direction: [1, 0, 0], spacing: 10 });

// Circular: 6 spokes around the +Z axis
const spoke = rib.patternCircular({ count: 6, axis: [0, 0, 1] });

// Grid: 4x3 bolt-hole array on a plate
const mountBolt = plate.hole('top', { u: 0, v: 0, diameter: 5, depth: 'through', name: 'mountBolt' });
const drilled = mountBolt.patternGrid({
  x: { count: 4, direction: [1, 0, 0], spacing: 25 },
  y: { count: 3, direction: [0, 1, 0], spacing: 25 },
});

API

.patternLinear({ count, direction, spacing }: {
  count: number;                       // integer >= 2
  direction: [number, number, number]; // unit-ish; will be normalized
  spacing: number;                     // non-zero finite mm
}): Shape

.patternCircular({ count, axis, angleDeg? }: {
  count: number;                       // integer >= 2
  axis: [number, number, number];      // rotation axis
  angleDeg?: number;                   // total angle; defaults to 360
}): Shape

.patternGrid({ x, y }: {
  x: { count: number; direction: [number, number, number]; spacing: number };
  y: { count: number; direction: [number, number, number]; spacing: number };
}): Shape

Geometric semantics

Pattern is implemented as cumulative boolean union of transformed source copies. Additive features (boxes, ribs, fins, tabs, spokes) pattern cleanly. Patterning a subtractive feature (hole, cutout) only preserves the per-instance void when adjacent bodies are disjoint — overlapping patterned bodies cause the inner void to be filled by the outer body's solid (boolean-union semantics).

Read the full file on GitHub · 90 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. 3mo ago First seen · 90 lines · 53 tokens per session scan A de08d97cf411

Subscribe to this mod's changes

kernelcad-patterns is a skill published in the GitHub repository w1ne/kernelCAD-web (36 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 1,370 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-patterns compared with skills from other repositories

kernelcad-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kernelcad-patternsw1ne/kernelCAD-webSkill36todayMITA53Claude Code, Codex
solidworks-mcpczuryk/SolidworksMCPSkill1314d agoMITA58Claude Code, Codex
aieng-cad-authoringarmpro24-blip/cad-cae-copilotSkill10125d agoMITA67Codex
aieng-closed-loop-copilotarmpro24-blip/cad-cae-copilotSkill10125d agoMITA54Claude Code, Codex
simplecadapiNiJingzhe/SimpleCADAPISkill1252mo agoApache-2.0A71Claude Code, Codex
rhinoalivirgo/Major-AI-SkillsSkill6todayMITA24Claude Code
mechanical-drafting-gbtbeiming183-cloud/AutoCAD-skillsSkill244mo agoMITA145Codex