kernelcad-tubes

kernelcad-tubes is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 104 tokens per session (8,604 once invoked), scanned A, original, MIT.

A computer-aided design tool for routing rigid tubes and fluid lines between connection points. It checks bend radius, straight sections, clearance, and reports each tube's bend details and cut length.

In plain words
What is it for?
Use it to model hydraulic, fuel, coolant, oil, or pneumatic lines between fittings in an assembly.
Why use it?
It helps detect routing problems before a tube design is used, including bends that are too tight or lines that are too close to nearby parts.

Skill for Claude CodeCodex

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

Good fit Use it to model hydraulic, fuel, coolant, oil, or pneumatic lines between fittings in an assembly.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-tubes"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-tubes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,604 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.00104 $0.08604
Opus 5.5 $0.00042 $0.03442
Sonnet 5.5 $0.00021 $0.01721
Haiku 4.5 $0.00010 $0.00860

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

Security

Grade A, and why

kernelcad-tubes 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 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.

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-tubes/SKILL.md · 357 lines

How it starts

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

kernelCAD: bent tubes

Route a rigid tube between two ports as straight legs joined by constant-radius bends. You give the corner points; the kernel builds one hollow solid, checks it against the bending and clearance rules, and reports a bend table, cut length and nearest neighbour for every tube.

// A hydraulic line from a pump outlet (top face, +Z) to a valve inlet (-X face).
const asm = assembly('line');
const pump = asm.part('pump', box(60, 60, 60), { at: [0, 0, 0] })
  .connector('out', { type: 'axis', origin: { kind: 'vec3', value: [30, 30, 60] }, axis: [0, 0, 1], port: { system: 'hydraulic', od: 9.525 } });
const valve = asm.part('valve', box(40, 40, 40), { at: [200, 150, 100] })
  .connector('in', { type: 'axis', origin: { kind: 'vec3', value: [0, 20, 20] }, axis: [-1, 0, 0], port: { system: 'hydraulic', od: 9.525 } });

tubeSpec({ clearance: { default: 6 } });

const line = tube('hyd-1', {
  from: pump.port('out'),   // at [30, 30, 60], axis +Z
  to: valve.port('in'),     // at [200, 170, 120], axis -X
  via: [
    [30, 30, 120],          // on the pump port axis: straight up from the outlet
    [30, 170, 120],         // on the valve port axis: in line with the inlet
  ],
  wall: 0.89,
  bendRadius: 28.6,         // centreline radius, 3 x OD
});
asm.part('hyd-1', line);    // no `at`: the tube is already in assembly space
return asm.model();

When to use

  • A rigid line between two fittings: hydraulic, fuel, oil, coolant, pneumatic.
  • You need the tube checked against a bender's rules and against the parts around it.
  • You need a bend table (XYZ corners and length / rotation / angle rows) or a cut length.

Do not use tube for a structural tube frame (use profiles and union, recipe welded-tube-frame-tray), or for a hose or any line that is not straight legs and circular bends. Two tubes from one port overlap and fail tube.clearance.overlap: route one tube from the port and make the second a branch of it (see "Branches").

Ports

Read the full file on GitHub · 357 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 · +2 lines 396d2b5c4a4c
  2. 5d ago Changed · +141 lines · +21 tokens per session 3f358baaab48
  3. 6d ago First seen · 214 lines · 83 tokens per session scan A 8cb84d300d4b

Subscribe to this mod's changes

kernelcad-tubes is a skill published in the GitHub repository w1ne/kernelCAD-web (31 stars, last pushed today), licensed MIT. It adds 104 tokens to every session and 8,604 once invoked, about $0.0004 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-10-11.

Related

Other skills, from other repositories

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

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

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, 建模…

armpro24-blip/cad-cae-copilot · 0 tokens

urdf

URDF robot description authoring and validation. Use when creating, editing, inspecting, validating, or debugging .urdf files, robot links, joints, limits, inertials, visual/collision geometry, mesh references, frame conventions, or robot-description artifacts. Use the SRDF skill for MoveIt2 semantic groups and…

earthtojake/text-to-cad · 104 tokens

step-parts

Find, evaluate, and download common purchasable CAD parts from step.parts, including named off-the-shelf actuators, servos, motors, electronics boards, connectors, screws, bolts, nuts, washers, bearings, standoffs, and other catalog components. Use when Codex needs to search the hosted step.parts catalog before…

earthtojake/text-to-cad · 119 tokens

solidworks-fillet-chamfer-cnc

A SolidWorks skill for creating CNC parts with multiple rounded edges and chamfers, which are angled or softened edges used in manufacturing. It includes parameter checks, edge selection, and evidence after rebuilding the model.

wzyn20051216/solidworks-automation-skill · 107 tokens