kernelcad-cfd

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

A computational fluid dynamics tool for studying how liquids or gases move through a modeled part. It uses OpenFOAM, a fluid-simulation program, to calculate results such as pressure loss, flow split, drag, and whether the simulation converged.

In plain words
What is it for?
Use it to study flow through ducts, pipes, manifolds, and similar parts, including pressure drop, outlet flow, drag, and flow-regime results.
Why use it?
It replaces guesswork about internal flow with a declared simulation and reported evidence for the modeled geometry and conditions.

Skill for Claude CodeCodex

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

Good fit Use it to study flow through ducts, pipes, manifolds, and similar parts, including pressure drop, outlet flow, drag, and flow-regime results.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-cfd"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-cfd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 164 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,967 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.
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.00164 $0.01967
Opus 5.5 $0.00066 $0.00787
Sonnet 5.5 $0.00033 $0.00393
Haiku 4.5 $0.00016 $0.00197

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

Security

Grade A, and why

kernelcad-cfd 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 1mo 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-cfd/SKILL.md · 118 lines

How it starts

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

kernelCAD — CFD (OpenFOAM)

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

const manifold = box(60, 40, 16)
  .hole('left', { u: 0, v: 0, diameter: 8, depth: 40 })
  .hole('right', { u: -10, v: 0, diameter: 5, depth: 26 })
  .hole('right', { u: 10, v: 0, diameter: 4, depth: 26 })
  .subtract(cylinder(24, 3).rotate([1, 0, 0], -90).translate(37, 8, 8));   // printed gallery

manifold.cfdStudy({
  name: 'splitter',
  flow: 'internal',
  fluid: 'water',
  inlet: { atX: 0 },                                                // the 8 mm port opening
  outlet: [{ atX: 60, near: [60, 10, 8] }, { atX: 60, near: [60, 30, 8] }],
  flowRateLpm: 0.3,
});
return manifold;
run_cfd({ file: 'manifold.kcad.ts', output_dir: '/tmp/manifold-cfd' })
// → { ok: true, summary: { pressureDropPa: 48.7, reynolds: { value: 794 }, turbulence: { model: 'laminar' },
//     patches: [inlet -0.3 L/min, outlet_1 0.179 L/min, outlet_2 0.121 L/min], massBalance: { imbalance: 9e-5 },
//     convergence: { verdict: 'converged', criterion: 'monitors', ... }, mesh: { cells: 17504, ok: true } },
//     images: ['/tmp/manifold-cfd/velocity-midplane.png'] }

The same study on the call, without a declaration: run_cfd({ code, flow: 'external', fluid: 'air', velocity: 10, direction: '+X' }). From the shell: kernelcad cfd run part.kcad.ts [--flow ... --inlet '{"atX":0}' ...]; kernelcad cfd status (= cfd_summary) says whether OpenFOAM is installed.

The fluid domain

  • Internal, fluidVolume: 'interior' (default). The fluid is the part's channels: the bounding box minus the part, keeping the regions an inlet or outlet opens into. Channels must open flush onto the part's bounding box (pipe ends, manifold ports on the outer faces); a port recessed behind a boss leaks into the exterior and fails with cfd.domain.no-fluid. Bolt holes are enclosed voids no inlet reaches, so they are dropped.
  • Internal, fluidVolume: 'solid'. The solid itself is the fluid (model the flow passage directly).
  • External. A box of fluid around the part (3 body lengths up and to the sides, 8 downstream), velocity along direction; the body is one wall patch body, the box faces are inlet, outlet and slip sides.

Read the full file on GitHub · 118 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. 1mo ago First seen · 118 lines · 164 tokens per session scan A c69a84991b33

Subscribe to this mod's changes

kernelcad-cfd is a skill published in the GitHub repository w1ne/kernelCAD-web (36 stars, last pushed today), licensed MIT. It adds 164 tokens to every session and 1,967 once invoked, about $0.0007 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-11-01.

Related

kernelcad-cfd compared with skills from other repositories

kernelcad-cfd next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kernelcad-cfdw1ne/kernelCAD-webSkill36todayMITA164Claude Code, Codex
aieng-cad-cae-copilotarmpro24-blip/cad-cae-copilotSkill10125d agoMITA65Claude Code, Codex
aieng-closed-loop-copilotarmpro24-blip/cad-cae-copilotSkill10125d agoMITA54Claude Code, Codex
solidworks-mcpczuryk/SolidworksMCPSkill1314d agoMITA58Claude Code, Codex
quantum-ground-statexi-zhao/OpenQuantumSkill75yesterdayMITA103Codex
mitiq-error-mitigationxi-zhao/OpenQuantumSkill75yesterdayMITA48Claude Code, Codex
quantum-amplitude-amplificationxi-zhao/OpenQuantumSkill75yesterdayMITA64Claude Code, Codex