cad
Ce qu’il fait
Cette compétence guide votre IA pour créer et modifier des modèles CAO 3D paramétriques avec text-to-cad. Elle s'adresse aux concepteurs et ingénieurs qui décrivent des pièces avec des mots et veulent un modèle 3D.
Quand l’utiliser
- ✓Quand vous voulez créer une nouvelle pièce ou un nouvel assemblage 3D à partir d'une description.
- ✓Quand vous devez modifier un script de modèle CAO existant et voir le résultat se mettre à jour.
- ✓Quand vous voulez exporter un modèle au format STEP, STL, 3MF ou GLB.
Lien du skill
https://github.com/earthtojake/text-to-cad/blob/main/skills/cad/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Pouvez-vous modéliser une équerre avec deux trous de fixation et l'exporter en fichier STEP ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'IA écrit ou modifie un modèle Python build123d. Le serveur text-to-cad le reconstruit et la visionneuse se met à jour. Les fichiers ne sont exportés que lorsque vous le demandez.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
CAD modeling and inspection
A model is a Python function; running its script rebuilds it in text-to-cad's warm server, and the page the person has open updates. Files are exports, made when asked.
Start with the task
| Task | Start with | Reference |
|---|---|---|
| Create or edit a part or assembly | The project's model script, or a new one (below). | Models, build123d, positioning |
| Organize a CAD project | The project's existing layout. | Project layout |
| Export STEP, STL, 3MF, GLB or xbf | cad export <id> <file>. |
Exports |
| Use a vendor STEP, an xbf or a scan in a model | read_step, read_xbf or read_mesh in the body. |
Inputs |
| Resolve a reference from a prompt | cad inspect <id> '<ref>'. |
References |
| Measure or check geometry | A check script that calls the model. | Inspection |
| See a model, a view or a pose | cad snapshot <id> out.png. |
Snapshots |
| Articulate a mechanism | build123d joints in the body, then cad.ap242. |
Kinematics |
| Explode, reveal or showcase a model | cad.gltf's animation() in the body. |
Animation |
| Open an existing XBF, STEP/STP, STL, 3MF or GLB | Show it to the user. | Show the model |
Setup and paths
Run the cad command (~/.local/bin/cad where ~/.local/bin is not on your PATH, or where a
project's environment puts its own cad first; cad.cmd on Windows). If cad is not found and
the CAD app was only just added, its server may still be starting: wait five seconds and run the
command again, for up to a minute, before anything else. Otherwise install text-to-cad, outside a sandbox or with its permission:
curl -fsSL https://texttocad.dev/install.sh | sh
On Windows, in PowerShell: irm https://www.texttocad.dev/install.ps1 | iex. Any other failure
says what to do, and cad doctor explains the installation.
One server runs for the installation: the first run starts it, every run and every
command goes through it, and it serves the viewer. cad status lists its workers
and the documents it holds; cad stop stops it.
A build cut off by the shell's time limit keeps running in the server; run the same
command again and it waits for that build and replays it (cad status shows it).
Give a cold build of a large model the shell tool's longest timeout, or run it in the
background.
Build every model with cad run. It needs nothing set up: it runs a script in the server's own
environment, which holds the library and build123d. A model that needs another package names it
at the top of its script, and cad run installs it beside the kernel once, in an environment it
keeps for the runs after:
# /// script
# dependencies = ["pandas>=2"]
# ///
For a one-off, cad run --with pandas src/plate.py (repeat --with, or separate requirements
with commas; a local folder or wheel works too, its path relative to the working directory, or in
the block to the script's folder, and the next run installs it again after an edit). What cannot be
installed beside the kernel is refused in one
line with uv's reason: change the requirement it names, or, where the network is needed once, run
it outside a sandbox or with its permission. In Windows PowerShell, put a version constraint (>=,
<) in the block, not on the command line: PowerShell hands it to cad.cmd unquoted, and cmd reads
> as a redirection.
Command-line paths, and the paths read_step, read_xbf, read_mesh and export
take, are relative to the working directory, as are a model's own file reads. Anchor
them on __file__ in code that must run from any folder.
Write a model and run it
A part or an assembly is a function with no parameters, decorated @model (or with its
file decorators, never both), that returns a build123d shape. Its dimensions are the
arguments of a plain helper function, and each configuration is a @model of its own, with
its own id and page; constants several models share live in a module they import. A call
builds it and returns its document: a handle with .id,
Questions fréquentes
Qu'est-ce que build123d ?
C'est une bibliothèque Python pour construire des formes 3D. La compétence l'utilise pour décrire les pièces sous forme de code.
Dois-je écrire du code ?
Non. L'IA écrit le script à partir de votre description, et vous pouvez le relire.
Peut-elle mesurer une pièce ?
Oui. La compétence inclut des contrôles qui mesurent la géométrie du modèle.
Détails
Description originale de l’auteur
Creates and edits parametric CAD parts and assemblies as Python build123d models that text-to-cad's server builds and the CAD Viewer shows live; exports STEP, STL, 3MF, GLB and xbf files on request; resolves prompt references, measures geometry, and articulates or animates assemblies. Use for 3D CAD modeling, editing a model script (any change to a part's or assembly's `.py`), organizing a CAD project, exporting or converting CAD files, Quick Edit prompts, mechanisms, and explode or showcase animations. Opens and reviews existing XBF, STEP/STP, STL, 3MF and GLB files in the CAD Viewer. Covers
repo: earthtojake/text-to-cad
Popularité
- Étoiles GitHub
- 25k
- Position au classement
- #10067
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
bambu-labs
25kAide votre agent à envoyer un modèle 3D tranché ou non tranché vers une imprimante Bambu Lab, via Bambu Connect ou Bambu Studio.
dfam-check
25kAide votre agent à vérifier si un fichier de maillage 3D peut être bien imprimé, en signalant les surplombs, l'épaisseur des parois et les besoins en supports.
dfm
25kAide votre agent à relire une pièce pour la tôlerie, l'usinage CNC ou le moulage par injection, afin de vérifier si elle peut être fabriquée et ce qu'il faut modifier.
dxf
25kAide votre agent à créer et vérifier des dessins DXF 2D pour la découpe laser, plasma ou jet d'eau, à partir d'une description ou d'une pièce CAO.
Skills similaires
blucli
394kAide votre agent à trouver, lancer, mettre en pause, regrouper et régler le volume des enceintes Bluesound et NAD grâce à la commande blu.
camsnap
394kAide votre agent à prendre des instantanés, de courts extraits vidéo ou des événements de mouvement depuis les caméras réseau et webcams locales que vous avez configurées.
eightctl
394kAide votre agent à consulter et contrôler un boîtier Eight Sleep, y compris sa température, ses alarmes et ses programmes de sommeil.