claude-cad: Skill for Claude Code

.claude/skills/cadquery-modeling/SKILL.md

cadquery-modeling is a skill for Claude Code from 0oKevino0/claude-cad. It costs 101 tokens per session (3,397 once invoked), scanned C, original, MIT.

A CadQuery modeling skill for creating physical parts as Python code. CadQuery is a tool for parametric 3D computer-aided design, and STEP is a CAD file format that programs such as SolidWorks can open.

In plain words
What is it for?
Use it to model parts such as enclosures, brackets, mounts, cams, and gears, then export them as STEP or STL files. It also helps debug geometry and export problems.
Why use it?
It helps avoid fragile models and STEP files that fail to open or contain invalid geometry. Named dimensions make parts easier to change and verify.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: 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/skills/cadquery-modeling/SKILL.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 cadquery-modeling

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/0okevino0/claude-cad/cadquery-modeling"><img src="https://agentmods.dev/badge/skills/0okevino0/claude-cad/cadquery-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,397 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00101 $0.03397
Opus 5 $0.00051 $0.01699
Sonnet 5 $0.00020 $0.00679
Haiku 4.5 $0.00010 $0.00340

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

Security

Grade C, and why

cadquery-modeling scanned grade C with 1 finding 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.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/diagnose.py, scripts/preflight.py, scripts/verify_step.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

don't refuse. Ask one focused batch of questions covering only what you truly
.claude/skills/cadquery-modeling/SKILL.md · 273 lines

How it starts

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

CadQuery Modeling for Manufacturable CAD

This skill turns natural-language part requests into clean, verified, parametric CadQuery code whose STEP output reliably opens in SolidWorks. It encodes hard-won rules from real multi-part product design.

Core philosophy

  1. Parametric first — every dimension is a named variable at the top of the file.
  2. Verify before trusting — a script that printed [OK] is NOT proof of success. Always check geometry validity and solid count before declaring done.
  3. Avoid OCC fragility — prefer simple primitives + boolean operations over fragile chained features. See references/occ_pitfalls.md.
  4. One part, one file — each part is its own .py producing its own STEP/STL. Assemblies are done in SolidWorks, not baked into a single STEP.

Before creating anything: confirm where

Files land in whatever directory Claude Code was started in — that is the single thing that determines whether the user finds their STEP later. Before creating a project or the first part, state the absolute path you are about to write to, and stop to confirm if it looks wrong:

  • a cloud-synced path (OneDrive, Dropbox, iCloud — note that on Windows the Desktop and Documents folders usually ARE OneDrive)
  • Downloads, a home directory root, or a system folder
  • the claude-cad toolkit repo itself
  • a path containing spaces, parentheses, or non-ASCII characters

If any of those apply, say so and suggest a clean location such as C:\cad_project before writing files. Getting this wrong is silent: everything succeeds, and the user simply can't find the output.

The standard workflow

When the user asks for a part, follow this loop:

  1. Match the questions to how specified the request is. Never invent a critical dimension — ask instead. Default to millimeters.
    • Underspecified (e.g. "a bracket to hold a 60 mm pipe"): don't guess, and don't refuse. Ask one focused batch of questions covering only what you truly can't proceed without — typically overall size, thickness/wall, the coordinate system/orientation, and any dimension that must match another part or a real component. Keep it short; propose sensible defaults the user can accept ("I'll assume 4 mm thick unless you say otherwise").
    • Fully specified: don't interrogate. Build it, and list any assumption you had to make in the final report.
    • If the user asks you to write a spec first, produce it as text (coordinate system, overall dimensions, every feature with size + position, interfaces) and get approval before writing code.
  2. Write the part file following the structure in references/part_file_structure.md.
  3. Run it and read the full terminal output, not just the last line.
  4. Verify geometry validity, solid count, volume, and bounding box (see below).
  5. Report the verification numbers to the user and note any assumptions made.

Read the full file on GitHub · 273 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 · 273 lines · 101 tokens per session scan C f2cd324f3d14

Subscribe to this mod's changes

cadquery-modeling is a skill published in the GitHub repository 0oKevino0/claude-cad (3 stars, last pushed 1mo ago), licensed MIT. It adds 101 tokens to every session and 3,397 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

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

opengis-skills

Use when AI coding assistant needs GIS/CAD/C#/AI/IoT/3D domain expertise for 75 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 · 96 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 20 skills: FreeCAD, OpenSCAD, OCCT, CadQuery, KiCad, SolveSpace, QCAD, xBIM, Clipper2, TongWen and more.

znlgis/opengis-skills · 81 tokens

kernelcad-assemblies

Multi-part assemblies — assembly(), parts, connectors, 7 mate types, fixed and revolute joints, .model()/.solvedModel(). Use for any model with two or more mechanical parts that need joint metadata.

w1ne/kernelCAD-web · 50 tokens

kernelcad-kinematic

Use when verifying whether a moving assembly is buildable — sampled-pose collision sweeps across joint ranges, IK reachability for end-effector targets, mounting-hole fastener consistency, and static-load capacity on cantilever-shaped parts. Loads alongside kernelcad-authoring to gate design-time mechanism feasibility.

w1ne/kernelCAD-web · 65 tokens

kernelcad-parts

Bundled parts catalog — discover, fetch, and mate standard fasteners, bearings, motors, headers, and connectors. Use whenever the model needs an off-the-shelf component instead of hand-modeled placeholder geometry.

w1ne/kernelCAD-web · 48 tokens