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.
npx agentmods add skills/w1ne/kernelcad-web/kernelcad-sheet-metalnpx skills add w1ne/kernelCAD-web --skill kernelcad-sheet-metalgit clone --depth 1 https://github.com/w1ne/kernelCAD-webWrote 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.
[](https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-sheet-metal)<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-sheet-metal"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-sheet-metal.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.01466 |
| Opus 5 | $0.00027 | $0.00733 |
| Sonnet 5 | $0.00011 | $0.00293 |
| Haiku 4.5 | $0.00005 | $0.00147 |
Grade A, and why
kernelcad-sheet-metal 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.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
kernelCAD — sheet metal
Build folded sheet-metal parts (L-brackets, U-channels, service panels) from a closed Sketch + thickness + K-factor. Bend along a linear axis line; recover the flat blank as a Region for laser / CNC consumption.
// L-bracket: 100 x 60 x 2 mm, one 90 degree fold along x=50.
const s = path().moveTo(0, 0).lineTo(100, 0).lineTo(100, 60).lineTo(0, 60).close();
const blank = sheetMetal(s, { thickness: 2, kFactor: 0.38 });
const bracket = blank.bend({ atX: 50 }, 90, 3);
return bracket;
// Recover the flat blank as a Region.
const flat = bracket.flattenPattern();
console.log(flat.outer); // [[0,0], [100,0], [100,60], [0,60]]
console.log(flat.bendLines); // [{ start: [50,0], end: [50,60], angle: 90, radius: 3, ordinal: 0 }]
API
// Top-level constructor — captures kind:sheetMetal record.
sheetMetal(profile: Sketch, opts: {
thickness: Editable<number>; // mm, > 0
kFactor: Editable<number>; // unitless, in [0, 1]
faceLabels?: FaceLabelsMap;
}): Shape;
// Shape methods — chain on a sheetMetal-rooted Shape.
shape.bend(
edgeRef: EdgeSelector | string, // slice-1: { atX: n } | { atY: n } | { face: 'top' }
angle: Editable<number>, // degrees, signed (positive = fold +normal)
radius: Editable<number>, // mm, inner bend radius
): Shape;
shape.flattenPattern(): Region; // derived view — no FeatureRecord
Bend-allowance math (K-factor approximation)
BA = (pi * |angle_deg| / 180) * (kFactor * thickness + radius)
BA= developed length of the neutral axis through the bend arc.kFactor= neutral-axis offset ratio. Typical values: 0.33-0.45 (mild steel / aluminum).- Slice 1 supports the K-factor formula only.
Slice-1 limits
- Bend axis derived from
{ atX }/{ atY }EdgeQuery or{ face: 'top' }. Other selectors emitfeature.bend.edge-not-linear. radius >= 0.5 * thicknessrecommended; tighter bends emitfeature.kernel-failed.flattenPattern()supports at most 2 bends in the chain; 3+ emitsfeature.flattenPattern.multi-bend-unsupported.- Sketch profiles must be polylines (
path().moveTo / lineTo / close). Arcs in the profile are not supported byflattenPattern()in slice 1. - The lowering pipeline (slice 1) omits the curved bend section in favor of a sharp-corner fuse — agents see the rotation but not the radiused inside corner. The K-factor math still holds for flat-pattern recovery.
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.
- 5d ago First seen · 93 lines · 54 tokens per session scan A 1ea2f7c4f807
kernelcad-sheet-metal is a skill published in the GitHub repository w1ne/kernelCAD-web (18 stars, last pushed 7d ago), licensed MIT. It adds 54 tokens to every session and 1,466 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.
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, 建模…
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.
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.
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…
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…
bambu-labs
Dry-run, upload, and cautiously initiate local Bambu Lab print jobs from validated plain .gcode, using Bambu LAN FTPS/MQTT handoffs.