kernelcad-fea

kernelcad-fea is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 142 tokens per session (5,135 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 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,135 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.00142 $0.05135
Opus 5.5 $0.00057 $0.02054
Sonnet 5.5 $0.00028 $0.01027
Haiku 4.5 $0.00014 $0.00513

Measured 4d ago against content hash 7a5b42895273, 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 4d 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 · 332 lines

How it starts

The opening of the file, as written. The whole thing — 332 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 · 332 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. 4d ago Changed · +10 lines 7a5b42895273
  2. 9d ago Changed · +1 lines 1f19f68996bf
  3. 1mo ago Changed · +45 lines · +3 tokens per session e6ec7ac11097
  4. 1mo ago Changed · -24 lines f4b57b61a1fe
  5. 1mo ago Changed · +128 lines 521dd8957af6
  6. 1mo ago Changed · +1 lines 3d05bcc817b2
  7. 1mo ago Changed · +13 lines 149b7eb51d8e
  8. 2mo 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 (36 stars, last pushed today), licensed MIT. It adds 142 tokens to every session and 5,135 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

kernelcad-fea compared with skills from other repositories

kernelcad-fea next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kernelcad-feaw1ne/kernelCAD-webSkill36todayMITB142Claude Code, Codex
feaearthtojake/text-to-cadSkill28ktodayMITA109Claude Code, Codex
fluidcad-from-drawingFluid-CAD/FluidCADSkill799todayMITA114Claude Code, Codex
qmclaw-workbenchxi-zhao/OpenQuantumSkill752d agoMITA124Codex
cadquery-modelingarmpro24-blip/cad-cae-copilotSkill10125d agoMITA0Claude Code, Codex
fieldqkit-hardwarexi-zhao/OpenQuantumSkill752d agoMITA94Codex
laboneq-controlxi-zhao/OpenQuantumSkill752d agoMITA50Claude Code, Codex