kernelCAD-web CLAUDE.md

kernelCAD-web CLAUDE.md is an instructions file for coding agents from w1ne/kernelCAD-web. It costs 780 tokens per session, scanned A, original, MIT.

Project instructions for coding agents working on kernelCAD-web, a web application for creating and showing computer-aided design (CAD) models. They cover deployment and how to create, verify, and publish CAD files.

In plain words
What is it for?
Use them when changing kernelCAD-web, especially when deploying the Studio or marketing site, editing .kcad.ts CAD models, or generating and checking design outputs.
Why use it?
They reduce mistakes such as deploying the wrong part of the site or editing generated files instead of the original design source.

Instructions file

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 instructions/w1ne/kernelcad-web/claude-md
Clone the repo
git clone --depth 1 https://github.com/w1ne/kernelCAD-web

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-web CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/w1ne/kernelcad-web/claude-md.svg)](https://agentmods.dev/instructions/w1ne/kernelcad-web/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/w1ne/kernelcad-web/claude-md"><img src="https://agentmods.dev/badge/instructions/w1ne/kernelcad-web/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 780 This file is loaded in full into every session.
When invoked 780 The same file — it is already loaded in full.
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.00780 $0.00780
Opus 5 $0.00390 $0.00390
Sonnet 5 $0.00156 $0.00156
Haiku 4.5 $0.00078 $0.00078

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

Security

Grade A, and why

kernelCAD-web CLAUDE.md 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.

CLAUDE.md · 54 lines

How it starts

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

Repo conventions for Claude Code agents working in kernelCAD-web

Deployment

Before deploying anything, read docs/DEPLOY.md. Short version: one trunk (develop, no main); the Studio (src/) auto-deploys to app.kernelcad.com on push to develop; the marketing site (site/, kernelcad.com) ships ONLY via a manual gh workflow run deploy-kernelcad-com.yml -R w1ne/kernelCAD-server -f web_ref=develop; a v* tag is a full npm release, not a per-surface deploy. Don't guess the deploy path — match the changed surface to the runbook.

CAD authoring discipline

For any task that creates or modifies CAD output, use the bundled kernelcad skill first and load kernelcad-authoring before editing a .kcad.ts model. The source file is the design source of truth; generated PNG/MP4/STEP/STL/score artifacts are evidence or deliverables, not files to hand-edit.

Adopt this loop:

  1. Classify the job and write down the engineering intent before coding.
  2. Plan the .kcad.ts source, parameters, imports, explicit output artifacts, and verification commands.
  3. Edit source and provenance only.
  4. Generate named targets only; do not refresh whole artifact directories unless the task is explicitly a release/demo rebuild.
  5. Validate with deterministic commands before relying on screenshots.
  6. If a rendered artifact is produced, inspect it visually and report concrete visible evidence. Do not mark visually broken CAD done because tests passed.
  7. When visual evidence matters, run kernelcad render inspect <file> <outDir> to produce a deterministic inspection bundle with a manifest and canonical RGB views. Add --channels rgb,mask,depth,normals when machine-readable object masks, depth, or view-space normals are needed. Use --focus <names> or --hide <names> to isolate feature ids or assembly part names when clutter would obscure the check. Keep richer channels in the same manifest packet; do not replace the canonical RGB views.

Prefer lib.fromSTEP(...) for real purchased components such as servos, bearings, motors, fasteners, sensors, PCBs, and connectors. Hand-modeled placeholder boxes/cylinders are acceptable for blockouts, but final review must either replace them with vendor/catalog geometry or label the limitation.

Read the full file on GitHub · 54 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 · 54 lines · 780 tokens per session scan A 84e07ca0865d

Subscribe to this mod's changes

kernelCAD-web CLAUDE.md is an instructions file published in the GitHub repository w1ne/kernelCAD-web (17 stars, last pushed 6d ago), licensed MIT. It adds 780 tokens to every session, about $0.0039 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.