import-cad

import-cad is a skill for Claude Code from JMMonte/agentic-digital-twin. It costs 155 tokens per session (863 once invoked), scanned A, original, MIT.

A tool for importing an existing CAD or 3D mesh file into a hardware-as-code workflow. CAD describes the shape of a manufactured part; supported files include STEP, STL, OBJ, GLB, and PLY.

In plain words
What is it for?
Use it to calculate a part’s bounding box, volume, center of mass, mass, and watertight status, assign a known material, and produce an analysis-ready mesh.
Why use it?
It lets you inspect and simulate a part you already designed instead of recreating its geometry in code. It also warns about unit and scale mistakes that can make measurements wrong.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agentic-digital-twin plugin — 8 skills, 1 agent shipped together

Good fit Use it to calculate a part’s bounding box, volume, center of mass, mass, and watertight status, assign a known material, and produce an analysis-ready mesh.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jmmonte/agentic-digital-twin/import-cad
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.

Any agent
npx skills add JMMonte/agentic-digital-twin --skill import-cad
Clone the repo
git clone --depth 1 https://github.com/JMMonte/agentic-digital-twin

Made for: Claude Code.

Or install agentic-digital-twin, the plugin that ships this one along with the rest of its 8 skills, 1 agent.

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 import-cad

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmmonte/agentic-digital-twin/import-cad/github.svg)](https://agentmods.dev/skills/jmmonte/agentic-digital-twin/import-cad)
Your own site
<a href="https://agentmods.dev/skills/jmmonte/agentic-digital-twin/import-cad"><img src="https://agentmods.dev/badge/skills/jmmonte/agentic-digital-twin/import-cad/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 import-cad

Your own site · 80×15
<a href="https://agentmods.dev/skills/jmmonte/agentic-digital-twin/import-cad"><img src="https://agentmods.dev/badge/skills/jmmonte/agentic-digital-twin/import-cad.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 863 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.
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.00155 $0.00863
Opus 5 $0.00077 $0.00432
Sonnet 5 $0.00031 $0.00173
Haiku 4.5 $0.00015 $0.00086

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

Security

Grade A, and why

import-cad 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 9d 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.

skills/import-cad/SKILL.md · 63 lines

How it starts

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

import-cad

The plugin has two doors. The default is geometry-as-code (author design.json, a kernel builds it). This is the other door: the user already has a CAD file and wants to verify and simulate it.

When to use

The user hands you a .step/.stp, .stl, .obj, .glb, or .ply and asks to check / analyze / simulate / measure it. (Native CAD — .sldprt, Fusion, CATIA, Inventor — can't be read; ask them to export STEP or STL first.)

Procedure

  1. Run the importer (template: import_cad.py):
    # mesh:
    uv run import_cad.py part.stl --units mm --material Al-6061-T6
    # STEP (exact BREP) needs OCCT:
    uv run --with build123d import_cad.py part.step --units mm --material Al-6061-T6
    
    It writes out/imported.json (bbox, volume, centroid, mass, watertight, warnings) + out/imported_mesh.ply.
  2. Confirm --units and SANITY-CHECK the printed bbox against the real part. STL is unitless and STEP units are often wrong; a 25.4x or 1000x scale error silently corrupts everything. Do not proceed on a bbox that looks wrong.
  3. Assign a material (--material, resolved from design/materials.json) so mass is real — never invent a density. If the material isn't in the file, add it first with the add-material skill (cited).
  4. If the mesh is not watertight, volume/mass/FEA are unreliable — repair it (or use the STEP/BREP, which carries an exact volume) before trusting numbers.
  5. Now run the rest on the imported geometry:
    • add-scored-audit — write checks that read out/imported.json / out/imported_mesh.ply (bbox, mass budget, clearances, wall thickness).
    • fea_continuum — gmsh meshes the STEP/STL directly → CalculiX.
    • viz.py — rerun the imported mesh.
    • run-tradeoff-study — compare variants if you have several files.
  6. Treat design.json as the requirements/targets ledger here (anchors, allowables, mass/CG targets) even though it no longer generates the geometry — so the scored-audit discipline still applies.

Read the full file on GitHub · 63 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. 9d ago First seen · 63 lines · 155 tokens per session scan A 8e02b193fc33

Subscribe to this mod's changes

import-cad is a skill published in the GitHub repository JMMonte/agentic-digital-twin (2 stars, last pushed 2mo ago), licensed MIT. It adds 155 tokens to every session and 863 once invoked, about $0.0008 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 skills, from other repositories

cad-construction

Use after the design concept is settled (via design-first-iteration or equivalent) and the user is ready to translate it into parametric CAD geometry — component decomposition, parameter hierarchy, construction sequencing. Primary platform Fusion 360; the workflow also applies to SolidWorks, Onshape, FreeCAD…

Ed3Design/ed3design-engineering-bundles · 175 tokens

bom-validation-workflow

Use when validating a Bill of Materials (BOM) for a Maker-3D project — an embedded controller project, a speaker/audio build, a smart-home build, or any other physical build with more than 5 components. Trigger on phrases like "check the BOM", "validate the parts list", "review the parts list", "missing components"…

Ed3Design/ed3design-engineering-bundles · 181 tokens

victron-cerbo-modbus-device-onboarding

Use when a new Victron Modbus-TCP device (EV Charging Station, energy meter, inverter) is connected to the Cerbo GX LAN but does not appear in the Cerbo UI or D-Bus, despite being reachable via ping. Trigger on phrases like "EVCS not visible in Cerbo", "new Modbus device does not appear", "Cerbo does not detect…

Ed3Design/ed3design-engineering-bundles · 161 tokens

mechanical-design-principles

Guides mechanical design decisions toward elegant, manufacturable, serviceable solutions with a strong bias toward tool-less assembly, monolithic parts, and form-follows-function. Provides the design rules (the WHAT and WHY — overhang, wall thickness, snap-fit sizing, tolerances, material matching). Load when the user…

Ed3Design/ed3design-engineering-bundles · 204 tokens

hsb-ip-packetizer

Choose or explain HSB Sensor RX packetizer fields for HOLOLINKdef.svh. Do not use for full defs, validation, or runtime APB programming.

NVIDIA/skills · 40 tokens

jetson-diagnostic

Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.

NVIDIA/skills · 30 tokens