cadquery-modeling

cadquery-modeling is a skill for Claude Code, Codex from armpro24-blip/cad-cae-copilot. It costs 0 tokens per session (7,537 once invoked), scanned A, original, MIT.

A workflow for generating 3D CAD models with CadQuery, a Python-based modeling tool, and exporting them as STEP or STL files. It breaks complex models into smaller iterations and checks each result.

In plain words
What is it for?
Use it to plan, build, inspect, repair, and export CadQuery models, including prototypes and product-like exterior shapes.
Why use it?
It reduces mistakes in complex procedural models by requiring focused changes, visual and functional reviews, and repairs based on evidence. It also prevents using unsupported FreeCAD workflows.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/iteration_01_prototype.py.

Good fit Use it to plan, build, inspect, repair, and export CadQuery models, including prototypes and product-like exterior shapes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/armpro24-blip/cad-cae-copilot
agentmods
npx agentmods add skills/armpro24-blip/cad-cae-copilot/cad-agent-skills

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 cadquery-modeling

README.md
[![agentmods](https://agentmods.dev/badge/skills/armpro24-blip/cad-cae-copilot/cad-agent-skills/github.svg)](https://agentmods.dev/skills/armpro24-blip/cad-cae-copilot/cad-agent-skills)
Your own site
<a href="https://agentmods.dev/skills/armpro24-blip/cad-cae-copilot/cad-agent-skills"><img src="https://agentmods.dev/badge/skills/armpro24-blip/cad-cae-copilot/cad-agent-skills/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/armpro24-blip/cad-cae-copilot/cad-agent-skills"><img src="https://agentmods.dev/badge/skills/armpro24-blip/cad-cae-copilot/cad-agent-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,537 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.07537
Opus 5 $0.00000 $0.03769
Sonnet 5 $0.00000 $0.01507
Haiku 4.5 $0.00000 $0.00754

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

Security

Grade A, and why

cadquery-modeling 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 11d 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.

archive/CAD-Agent-main/CAD-Agent-Skills/SKILL.md · 406 lines

How it starts

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

CadQuery Modeling CAD Compiler

Use this skill to create or modify CAD geometry with CadQuery. Do not jump from prompt to a giant script. Compile complex requests into an adaptive iteration contract, artifacts, feature memory, validation reports, and review-driven next actions.

Each iteration must narrowly scope what it builds: one pipeline step, one subsystem, or one feature family at a time. Adaptive planning means the order of steps is evidence-driven, not that a single script may implement the whole model. An intentionally incomplete partial model is the correct output for early and middle iterations.

Operating Assumptions

  • Use CadQuery as the modeling API: import cadquery as cq.
  • Run scripts with normal Python, for example python scripts/iteration_01_prototype.py.
  • Do not use FreeCAD executables, FreeCAD Python modules, PartDesign, Sketcher, .FCStd, FreeCADCmd.exe, or GUI-driven modeling.
  • CadQuery is OCCT-based and exports STEP/STL well, but it is still procedural CAD; complex visible exterior forms need iterative section/profile design.
  • If cadquery is not installed, ask before installing dependencies. Do not silently modify the environment.
  • Treat the workspace root as the modeling root. Write scripts under scripts/, pipeline artifacts under exports/pipeline/, and final exports under exports/.

System Prompt

Act as a CAD Compiler, not a one-shot code generator.

Required architecture:

User Prompt
  -> Geometry Understanding
  -> Pipeline Artifact Contract
  -> Feature Extraction
  -> Parametric Planning
  -> Dependency Graph
  -> Review-driven CadQuery Iterations
  -> Geometry Brain Inspection
  -> Shape Validation + Visual Review
  -> Local Error Recovery
  -> STEP/STL Export

Hard rules:

  • Before writing Python code, output a modeling plan and wait for approval.
  • Never generate a final monolithic script in the same response as the first plan.
  • Complex models must use multiple focused iteration scripts and artifact files; a single create_xxx.py final script is not allowed.
  • Strict step scope: every iteration must model only the approved part/step in its scope. If an iteration script produces something that could reasonably be treated as the complete requested model before export_ready, that iteration fails review and must be split or rolled back.
  • Agent self-review: between iterations the agent must fully execute the review gate (artifacts, PNG inspection when images exist, review_packet.json/.md, visual defect audit). Do not skip self-review to rush the next script; do not invent visual findings without inspecting images when they exist.
  • Fail-first challenge review: follow review-protocol.md. Every review starts by listing the strongest reasons the model fails the requested object. Do not mark a view or gate as pass until blocking objections are explicitly defeated with image and artifact evidence.
  • Atomic execution: generate, run, and review exactly one iteration at a time. Do not prewrite, scaffold, or batch-run later iteration scripts before the current iteration's review gate passes. If multiple unreviewed iteration scripts or stale source references exist, stop and mark the run invalid.
  • Iteration boundary rehydration: before every new iteration or resumed modeling step, reread SKILL.md, pipeline-contract.md, review-protocol.md, the latest iteration_plan.json, review_packet.json, feature_memory.json, geometry_facts.json, and cad_refs.json. Reread only applicable one-level reference files for the current mode; after compaction, mode switch, or long pause, reread every file listed in skill_constraints_handoff.
  • Default modeling fidelity: follow reference-fidelity.md for every visible CAD model. Unless the user explicitly asks for simplified, stylized, low-detail, placeholder, or rough prototype output, build toward refined industrial-design quality. Generic category recognizability does not satisfy export_ready.
  • Reference acquisition: for visible, named, or reference-driven targets, follow reference-acquisition.md. User references take priority; otherwise the agent may search public references. If evidence is insufficient, mark reference_limited and block reference_faithful export_ready.
  • Object-agnostic checklist: for visible or reference-driven targets, follow object-agnostic-checklists.md. Derive review dimensions from prompt and references rather than from fixed object-family templates.
  • Gate-first iterations: before each modeling iteration, write phase_gate.json and preflight_review.md; after modeling, write review_packet.json/.md before proceeding. Required fail, partial, or unknown gate results force repair, refine, replan, or simplify, not the next phase or export_ready.
  • Compact review packet: default to review_packet.md and review_packet.json from review-protocol.md. These replace separate geometry_review.md, functional_review.md, gate_results.json, and review_report.md unless expanded reports are explicitly needed.
  • Every feature must have engineering intent, dependencies, parameters, coordinate strategy, validation criteria, and recovery notes.
  • Build in the smallest useful iteration that the latest review evidence justifies; do not follow a fixed phase sequence mechanically. Single-focus scope still applies: one iteration = one scoped deliverable (see Single-focus iteration discipline); never pack unrelated stages into one script to “finish faster.”
  • For any complex visible exterior form, activate Industrial Design Mode before mechanical feature decomposition.
  • Treat coarse prototypes as construction evidence only; industrial-grade output requires review-driven improvements to proportion, curvature, seams, details, and finish.
  • Plans are constraint carriers, not replacements for this skill. Any modeling plan must include a Skill Constraint Handoff section proving which skill files were read and restating the non-negotiable gates that implementation must follow.
  • Final export is a hard gate: unresolved fail-first objections, weak final challenge answers, Reference Fidelity Audit rows, required object-agnostic dimensions, phase-gate tests, hard visual defects, functional defects, disconnected components, or primitive-stack evidence block export_ready.
  • Every iteration must produce real review evidence: geometry_facts.json, cad_refs.json, visual review artifacts, and a compact review packet.
  • Visual review is mandatory after every iteration, including prototypes, repairs, refinements, details, simplifications, and export checks.
  • Screenshot generation must follow rendering.md: try Python offscreen rendering first, then browser-automated Three.js, then installed external renderers.
  • After screenshots are generated, directly inspect the PNG images before writing visual findings; do not infer visual quality from HTML, JSON, logs, or file paths.
  • Run the hard-fail defect audit from visual-defects.md in every visual review; visible interpenetration, floating geometry, misalignment, bad contact, coplanar overlap, impossible assembly, occluded features, scale mismatch, or view inconsistency forces repair or simplify, not export_ready.
  • Floating geometry requires both visual and geometry-facts review. geometry_facts.json must include disconnected-component evidence; orphan solids, orphan shells, remote tiny components, or missing source files force repair or simplify, not export_ready.
  • For any request where physical function matters, run the functional audit from functional-defects.md. Missing moving axes, decorative-only required features, implausible ratios, missing load paths, or blocked clearances force repair or simplify, not export_ready.
  • When review evidence fails, edit the responsible source iteration and regenerate; do not patch STEP/STL outputs or rewrite the entire model.

Read the full file on GitHub · 406 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. 11d ago First seen · 406 lines · 0 tokens per session scan A 6eea5e3ad96a

Subscribe to this mod's changes

cadquery-modeling is a skill published in the GitHub repository armpro24-blip/cad-cae-copilot (59 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 7,537 tokens. 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

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

use-the-available-kernel

Hard rules for which kernelCAD primitive to reach for when authoring from a reference photo. The from-reference loop fails most often because the author defaults to easy primitives and skips ones that exist. Read before writing any geometry.

w1ne/kernelCAD-web · 51 tokens