claude-cad: Instructions file for Claude Code

CLAUDE.md

claude-cad CLAUDE.md is an instructions file for Claude Code from 0oKevino0/claude-cad. It costs 1,488 tokens per session, scanned A, original, MIT.

Instructions for using claude-cad, a toolkit for generating CadQuery models—code-defined 3D parts—and exporting STEP files for CAD software such as SolidWorks.

In plain words
What is it for?
Creating parts in the repository, diagnosing model imports, and placing generated files in the defined output folders.
Why use it?
It gives the agent the repository's expected workflow and requires checking generated geometry before export.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Claude Code.

This is 0oKevino0/claude-cad's own configuration. It tells Claude Code how to work on claude-cad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-cad configures →

Reuse

Borrowing it

Nothing to install: this file belongs to 0oKevino0/claude-cad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/0oKevino0/claude-cad/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/0oKevino0/claude-cad

Made for: Claude Code.

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 claude-cad CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/0okevino0/claude-cad/claude-md/github.svg)](https://agentmods.dev/instructions/0okevino0/claude-cad/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/0okevino0/claude-cad/claude-md"><img src="https://agentmods.dev/badge/instructions/0okevino0/claude-cad/claude-md/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 claude-cad CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/0okevino0/claude-cad/claude-md"><img src="https://agentmods.dev/badge/instructions/0okevino0/claude-cad/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,488 This file is loaded in full into every session.
When invoked 1,488 The same file — it is already loaded in full.
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.01488 $0.01488
Opus 5 $0.00744 $0.00744
Sonnet 5 $0.00298 $0.00298
Haiku 4.5 $0.00149 $0.00149

Measured 10d ago against content hash 402dce526440, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

claude-cad 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 10d 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 · 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.

claude-cad — notes for Claude Code

This repo is a toolkit and the default workspace. It ships a Claude Code skill, prompts, and docs for generating CadQuery parts whose STEP files reliably open in SolidWorks. The defining idea: never trust generated geometry — verify it before export.

The clone is the workspace (default)

The skill is committed at .claude/skills/cadquery-modeling/, so a fresh clone arrives with it already active — no install, no reload. The default workflow is: clone → open in VS Code → describe a part. Parts go in the top-level parts/ (a diagnose.py is shipped there so imports resolve); output lands in output/. Both are git-ignored, so the user's work stays out of git status and git pull (to update the toolkit) stays clean.

If someone asks you to model something while this repo is the working directory, that is now the intended path — just do it. Mention the standalone alternative only when it actually fits.

When to suggest a separate project (the alternative)

A standalone project folder elsewhere — set up by pasting prompts/workflows/project_init.md, producing the three-folder claude-cad/ + parts/ + output/ layout that examples/sbc-case/ demonstrates — is worth suggesting when the user wants to:

  • version their own designs (the clone git-ignores parts/, and committing there tangles with toolkit git pulls),
  • keep several unrelated projects apart, or
  • keep this clone pristine as a reference they git pull to update.

Don't push it by default; the point of the new layout is that most people never need it.

Helping someone who just arrived

Most people who open Claude Code here have just cloned the repo. The skill is already active (committed at .claude/skills/), so there's little to set up:

  1. Point them at QUICKSTART.md — clone → Python → open in VS Code → confirm the skill is already listed (/skills) → describe a part. Don't re-explain it.
  2. Check their Pythonpy -3.11 -c "import cadquery, OCP; print('env OK')". If OCP fails to import they're on too-new a Python (see below).
  3. Then just build. First part goes in parts/; run it with py -3.11 parts/<name>.py; batch-verify with py -3.11 preflight.py.

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. 10d ago First seen · 105 lines · 1,488 tokens per session scan A 402dce526440

Subscribe to this mod's changes

claude-cad CLAUDE.md is an instructions file published in the GitHub repository 0oKevino0/claude-cad (3 stars, last pushed 1mo ago), licensed MIT. It adds 1,488 tokens to every session, about $0.0074 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-31.

Related

Other instructions, from other repositories