Skip to main content

cad-reverse-engineer

Three skills that turn a paper, patent or datasheet into parametric CAD, with every dimension traced to where it came from. Give your coding agent the documents a device was published in, and it builds:

  • CAD you can open and change: a STEP file per part and one for the assembly, from a parametric build123d model whose every dimension is a named value in params.yaml.
  • A mechanism that moves: joints, gear ratios and lead screws exported to MuJoCo, with stated motion checked on the model.
  • A drawing of each part: three views and an isometric one, dimensioned with the checked values, with screw threads named from the ISO metric or Unified table.
  • A report of where each dimension came from: quoted from a document, read off a file the authors released, or proposed because nothing states it, beside the question that would settle it.
  • A plan to make it: how each part is made, what to buy and the assembly sequence, which cadrev check holds to the model.

The skills

  • noob comes first, for every object. It tells you what the documents state and leave open and what cadrev does not cover, has you confirm what it read off the figures, and asks metric or US, the material, whether to follow the design or the function, and known first or the complete model.
  • build-model starts from that project and builds the parts the documents settle first. For the complete model it then proposes what they leave open from standard sizes: a thread from the table, a screw in a length you can buy. Under known first it stops at the settled parts, with what waits listed as questions.
  • ask-machinist reviews the model as the person who has to make it, part by part, and writes the plan.

"Reverse-engineer the gripper in this paper" starts with noob, and "with nothing guessed" chooses known first. Say "build now" and noob answers its questions from the documents. noob and build-model each end by naming the line to run next: clear the context and run it, and the project's files carry everything across.

Install

Claude Code:

/plugin marketplace add Vini-41/cad-reverse-engineer
/plugin install cad-reverse-engineer@cad-reverse-engineer

Codex:

codex plugin marketplace add Vini-41/cad-reverse-engineer
codex plugin add cad-reverse-engineer@cad-reverse-engineer

Codex's default sandbox blocks network access, which the CLI needs to download its dependencies. Allow it in ~/.codex/config.toml:

[sandbox_workspace_write]
network_access = true

Any agent that reads skills: npx skills add Vini-41/cad-reverse-engineer --skill '*'. Install all three, since noob and ask-machinist read the file formats that build-model holds.

Built for Fable 5.2, and benchmarked across Anthropic's and OpenAI's frontier models on the flow before 0.3.0.

The CLI

The skills run the cadrev CLI on your machine. It needs uv, which can install the Python 3.12 to 3.14 it runs on. To run it yourself, with no clone:

uvx --python '>=3.12,<3.15' cadrev==0.3.0 check my-project

Its first run downloads the package, build123d, OCC and MuJoCo from PyPI (about a minute), each at an exact version. Under Codex, allow network access as above.

Four worked examples you can run, and the rest of the documentation: https://github.com/Vini-41/cad-reverse-engineer. MIT license.

Metadata

Release files for cadrev 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cadrev 0.3.0
File Size Uploaded Provenance Actions
cadrev-0.3.0.tar.gz 119.0 kB Without provenance Details for cadrev-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cadrev 0.3.0
File Interpreter ABI Platform Actions
cadrev-0.3.0-py3-none-any.whl Python 3 none any Details for cadrev-0.3.0-py3-none-any.whl

Total release size: 249.1 kB

Release files / cadrev-0.3.0.tar.gz

Download URL cadrev-0.3.0.tar.gz
Size 119.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6c34f620e7a12c4c06a1c430f06920e749095d2a57405bd92d52c78e63bf9a75
BLAKE2b-256 checksum
How to use checksums
e575d5e4b4399c8d0ac06ebb9690cc7dc31c1b04964ed1eedac11432267a8cef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cadrev-0.3.0-py3-none-any.whl

Download URL cadrev-0.3.0-py3-none-any.whl
Size 130.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62217fa023454e7c120f4beea44e738e8e77be82aa898ec2763838305dd67bb9
BLAKE2b-256 checksum
How to use checksums
3969404d9cb6a699f14a517f008497fffccd7a11f086971be748e6c35bc7da66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for cadrev 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page