kernelcad-drawings

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

A kernelCAD export skill for creating SVG engineering drawings: technical sheets showing standard views, hidden edges, measurements, and a title block.

In plain words
What is it for?
Use it to produce front, top, left, and isometric views of parts or assemblies, with overall or custom dimensions.
Why use it?
It turns a 3D model or assembly into a document people can review or use for fabrication without inspecting the model directly.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/w1ne/kernelcad-web/kernelcad-drawings
Any agent
npx skills add w1ne/kernelCAD-web --skill kernelcad-drawings
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-drawings

README.md
[![agentmods](https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-drawings.svg)](https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-drawings)
Your own site
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-drawings"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-drawings.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,912 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00060 $0.01912
Opus 5 $0.00030 $0.00956
Sonnet 5 $0.00012 $0.00382
Haiku 4.5 $0.00006 $0.00191

Measured 4d ago against content hash 2ab95a021826, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

kernelcad-drawings 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-drawings/SKILL.md · 105 lines

How it starts

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

kernelCAD — engineering drawings

export({ target: 'model', format: 'svg-drawing' }) renders a .kcad.ts model as a standard third-angle engineering-drawing sheet in SVG. It works on single bodies and on assemblies (assembly.model() / solvedModel(...)) — assembly parts are projected together in world frame, so one part occluding another renders correctly as hidden lines.

What the sheet contains

  • Views: front, top (above front), left (left of front) — third-angle arrangement with shared-axis alignment — plus an isometric pictorial in the upper-right cell. One drawing scale for all views, snapped to the standard series (…, 2:1, 1:1, 1:2, 1:5, …) and stamped in the title block.
  • Line styling per drafting convention: visible edges solid full-weight; hidden edges dashed half-weight; tangent edges (fillet boundaries, smooth face transitions) thin solid. The isometric view omits hidden lines.
  • Dimensions: by default the overall bounding box — width (under the front view), height (right of the front view), depth (left of the top view), with extension lines and arrowheads. Values are model millimetres. Author your own with annotations (below) to dimension actual features instead.
  • Title block: model name, scale, units (mm), date, and the third-angle projection symbol.
  • Coincident projected segments (e.g. a bore's front and back rim landing on the same arc) are deduplicated visible-first — nothing renders twice or dashed underneath a solid line.

Quickstart

MCP:

{ "tool": "export", "input": { "target": "model", "file": "bracket.kcad.ts", "format": "svg-drawing", "output_path": "out/bracket-drawing.svg" } }

CLI:

kernelcad export svg-drawing bracket.kcad.ts -o out/bracket-drawing.svg

Options

Pass via options (MCP) — all optional:

  • sheet: 'a4' (default, 297×210 landscape) or 'a3' (420×297).
  • modelName: title-block name; defaults to the script's file name.
  • date: title-block date string; defaults to a placeholder so output stays byte-deterministic (stamp an ISO date when the drawing is released).
  • annotations: authored dimensions and notes — see below.

Read the full file on GitHub · 105 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 First seen · 105 lines · 60 tokens per session scan A 2ab95a021826

Subscribe to this mod's changes

kernelcad-drawings is a skill published in the GitHub repository w1ne/kernelCAD-web (17 stars, last pushed 6d ago), licensed MIT. It adds 60 tokens to every session and 1,912 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.

Related

Other skills, from other repositories

pdf-processing

Extract text from PDFs, fill forms, and merge documents.

PrefectHQ/fastmcp · 11 tokens

datasheets

Extract structured specifications from electronic component datasheet PDFs — pinouts, electrical characteristics, peripherals, topology, and features. Cache extractions per project for consumption by schematic and PCB analyzers. Primary consumer infrastructure for kicad, emc, spice, and thermal analyzers. Use this…

aklofas/kicad-happy · 156 tokens

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.

znlgis/opengis-skills · 97 tokens

datasheet-interpreter

Extracts key specifications from component datasheet PDFs for maker projects. Use when user shares a datasheet PDF URL, asks about component specs, needs pin assignments, I2C addresses, timing requirements, or register maps. Downloads and parses PDF to extract essentials. Complements datasheet-parser for quick lookups.

wedsamuel1230/arduino-skills · 67 tokens

esporta-documento

Esporta un deliverable legale (parere, informativa privacy, DPA, DPIA, registro trattamenti, parcella, atto, analisi giurisprudenziale) in un file Word (.docx) e/o PDF nella cartella attiva. Usa quando l'utente chiede di "esporta in word", "esporta in pdf", "salva il documento", "genera docx", "genera pdf", "metti in…

capazme/mcp-legal-it · 157 tokens

contract-analyzer

OCR a contract PDF with mistralocr, then extract structured clauses and risk scores with mistralchat + jsonschema. Use when the user provides a contract document to analyze for risks, obligations, and key terms.

Swih/mistral-mcp · 44 tokens