kernelcad-fea

kernelcad-fea is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 139 tokens per session (4,333 once invoked), scanned B, original, MIT.

A linear-static finite element analysis workflow for checking how a modeled part responds to fixed supports and loads. FEA is a computer simulation that estimates stress, displacement, and safety under specified conditions.

In plain words
What is it for?
Use it to declare materials, supports, loads, and a safety threshold, then run the analysis and inspect stress, displacement, safety factor, hot spots, and mesh-trust information.
Why use it?
It replaces a guess about whether a part will hold a load with solver results and warnings about mesh reliability.

Skill for Claude CodeCodex

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

Good fit Use it to declare materials, supports, loads, and a safety threshold, then run the analysis and inspect stress, displacement, safety factor, hot spots, and mesh-trust information.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-fea"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-fea.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,333 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00139 $0.04333
Opus 5.5 $0.00056 $0.01733
Sonnet 5.5 $0.00028 $0.00867
Haiku 4.5 $0.00014 $0.00433

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

Security

Grade B, and why

kernelcad-fea scanned grade B with 1 finding 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 6d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install -y calculix-ccx # the ccx solver
src/agent/skills/kernelcad-fea/SKILL.md · 276 lines

How it starts

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

kernelCAD — structural FEA

Declare the study in the model, run the solver, read the evidence.

const bracket = box(8, 40, 90).union(box(90, 40, 8)).fillet(4, { parallel: [0, 1, 0], concave: true });

bracket.feaStudy({
  material: 'aluminum-6061',
  fixed: { atX: 0 },                                        // bolted to the wall
  loads: [{ faces: { atZ: 8 }, force: [0, 0, -400] }],      // 400 N total, downward
  meshSize: 4,
  minSafetyFactor: 2,                                        // makes it a GATE
});

return bracket;
run_fea({ file: 'bracket.kcad.ts', output_dir: '/tmp/bracket-fea' })
// → { ok: true, summary: { minSafetyFactor: 6.10, maxVonMisesMPa: 44.28,
//     hotSpots: [{ region: '@kc[fillet_1/face/f7]', ... }],
//     trust: { meshTrusted: false, reasons: [...] },
//     refinement: { passes: [4 mm: 42.5 MPa, 3 mm: 44.3 MPa],
//                   stoppedBy: 'still-untrusted' },
//     governingField: 'away-from-supports' },
//     images: ['.../heatmap/iso.png', '.../heatmap/front.png'] }

Prerequisite: the solver toolchain

FEA shells out to two external, open-source programs. Neither is bundled.

sudo apt-get install -y calculix-ccx          # the ccx solver
python3 -m venv .fea-venv && .fea-venv/bin/pip install gmsh==4.15.2   # the mesher

Check before you design around it: fea_summary({}) reports toolchain.available plus the install hint. Override discovery with KERNELCAD_CCX and KERNELCAD_FEA_PYTHON. If apt has no calculix-ccx package, a container works equally well — mount the job directory and run ccx inside it, then point KERNELCAD_CCX at a wrapper script that does so:

#!/bin/sh
exec docker run --rm -v "$PWD:/work" -w /work <ccx-image> ccx "$@"

A missing toolchain is never a pass. run_fea and the gate both fail with fea.solver.unavailable.

Authoring the study

shape.feaStudy(spec) registers a declaration bound to that shape. It returns a handle, not a Shape — it is not part of the geometry chain.

Read the full file on GitHub · 276 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. 6d ago Changed · -24 lines f4b57b61a1fe
  2. 7d ago Changed · +128 lines 521dd8957af6
  3. 8d ago Changed · +1 lines 3d05bcc817b2
  4. 13d ago Changed · +13 lines 149b7eb51d8e
  5. 1mo ago First seen · 158 lines · 139 tokens per session scan B 4715c4372aca

Subscribe to this mod's changes

kernelcad-fea is a skill published in the GitHub repository w1ne/kernelCAD-web (31 stars, last pushed today), licensed MIT. It adds 139 tokens to every session and 4,333 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

Other skills, from other repositories

fluidcad-from-drawing

Turning a 2D engineering drawing into a parametric FluidCAD model. Use this skill whenever the user supplies a drawing, blueprint, dimension sheet, hand sketch, screenshot, PDF, or photo of a part and wants it modeled — "model this", "build this part", "make this in CAD", "here's the drawing". Trigger it alongside the…

Fluid-CAD/FluidCAD · 114 tokens

opengis-skills

Use when AI coding assistant needs GIS/CAD/C#/AI/IoT/3D domain expertise. Index of 96 skills across 8 categories: gis (32), cad (21), csharp (9), ai (14), iot (2), 3d (6), demos (4), others (8). Tag-based search and on-demand loading for GDAL, GeoServer, MapServer, Leaflet, PROJ, PostGIS, JTS, CesiumJS, FreeCAD…

znlgis/opengis-skills · 146 tokens

qmclaw-workbench

A local simulator for superconducting quantum-bit experiments, including measurements used to study and tune a qubit. It produces bounded synthetic results without connecting to laboratory hardware or quantum cloud services.

xi-zhao/OpenQuantum · 124 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 21 skills: FreeCAD, OpenSCAD, OCCT, CadQuery, Blender, KiCad, SolveSpace, QCAD, xBIM, Clipper2, TongWen and more.

znlgis/opengis-skills · 83 tokens

fieldqkit-hardware

A Chinese-language skill for checking configured quantum-computing providers and finding available hardware through FieldQKit. It only supports read-only credential checks and backend discovery.

xi-zhao/OpenQuantum · 94 tokens

laboneq-control

An offline compiler for turning structured pulse descriptions into Zurich Instruments HDAWG sequencer code and simulated output waveforms. It does not connect to instruments or model the resulting quantum dynamics.

xi-zhao/OpenQuantum · 50 tokens