urdf
Ce qu’il fait
Cette compétence guide votre IA dans la création et la vérification de fichiers URDF, qui décrivent les liens, les articulations et les formes d'un robot. Elle s'adresse aux ingénieurs en robotique qui construisent ou déboguent des modèles de robots.
Quand l’utiliser
- ✓Quand vous créez ou modifiez un fichier URDF pour un robot.
- ✓Quand les articulations ou les repères d'un robot se comportent mal dans une visionneuse ou un simulateur.
- ✓Quand vous devez vérifier les limites d'articulation, l'inertie ou la géométrie de collision dans un URDF.
Lien du skill
https://github.com/earthtojake/text-to-cad/blob/main/skills/urdf/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 écrire un URDF pour un bras à deux articulations avec des limites d'articulation et vérifier qu'il est valide ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'IA écrit directement le XML de l'URDF, en consignant d'abord les hypothèses de repères et d'unités en haut du fichier. Elle valide ensuite le fichier pour repérer les erreurs de repères, d'axes et d'unités.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
URDF
Use this skill for URDF robot-description outputs. Treat URDF work as constrained kinematic modeling, not just XML writing. The main correctness risks are frame placement, joint-axis semantics, unit consistency, mesh scale, and inertial data.
Setup
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.
Core Rules
- The
.urdffile is the source of truth. Author and edit URDF XML directly; do not build a Python generation pipeline for it. - Before writing or changing URDF XML, establish the robot's frame, joint, geometry, unit, and assumption ledger and embed it as a comment block at the top of the
.urdffile. Seereferences/design-ledger.md. - Use URDF frame semantics exactly. Joint origins, link frames, joint axes, and visual/collision/inertial origins use different reference frames. See
references/frame-semantics.md. - Do not infer spatial transforms, mesh units, handedness, axes, or joint signs from vague prose. Use CAD transforms, dimensioned drawings, measured values, existing source data, or explicit documented assumptions.
- Never freehand numeric values that are the result of computation — inertia tensors, centers of mass, unit conversions across many links, mirrored transforms. Compute them: closed-form formulas for primitives, or a throwaway helper script for mesh-derived values. See
references/inertials.md. - For physical links, model
inertial,visual, andcollisionseparately when the target consumer needs them. Frame-only links may intentionally omit mass and geometry. - Validate every created or modified
.urdfwithcad urdf validatebefore reporting completion. Seereferences/validation.md. - Helper scripts are allowed and encouraged for computation, but they are scaffolding, not the artifact's source of truth. For complex or genuinely parametric models it is reasonable to keep a model-local helper script on disk next to related source code (for example STEP generator sources) and note it in the ledger; this is optional, and the checked-in
.urdfremains canonical.
Show the model
Show the user each model you create or change, and any model or file they ask to see.
A file you export is a download: give its path, do not open it.
Snapshots and validation don't replace this. Never screenshot the viewer to confirm your
own work; review with cad snapshot.
If your tools include
cad_show(your host may prefix it), call it with the model's id or the file's absolute path, and follow its description for when to call it again. The other tools depend on the host. A host that draws CAD cards or tabs (Claude Desktop, the Codex app) also hascad_view, which reads what the user selected, andcad_screenshot, which shows you what they see, both of a card or tab that is open, for when they ask about it. A text host (Claude Code in a terminal,codex exec) draws nothing: itscad_showopens the model's page in the user's browser and answers with the URL to give them, and it has no view to read.cad_inspect,cad_snapshotandcad_exportare on every host. Call only the tools you have, and never say a card shows a model when your host drew none.Otherwise give the user the page's link once: a model's page is the
view:line its run prints. For a file, run the CAD Viewer, from any folder:cad viewer --json FILE [FILE ...]The command ensures this installation's server, registers each file and prints its page,
/<id>, then exits. Read each file'surlfromdocumentsin its one JSON line (never guess the port); the URL carries its token query. A page follows every later run of its model and every rewrite of its file, so share it once. Return that link to the user. If it fails to launch, say so.
A .urdf you write is the robot's model, not an export: show it. Review mesh scale
and placement, then sweep every movable joint against
Questions fréquentes
Qu'est-ce que l'URDF ?
C'est un format XML qui décrit les pièces d'un robot et la façon dont elles sont reliées.
Couvre-t-elle les réglages de planification ?
Non. Les réglages de planification pour MoveIt se trouvent dans la compétence SRDF.
Couvre-t-elle le fichier CAO lui-même ?
Non. Elle couvre la description du robot, et les fichiers de maillage qu'elle référence sont distincts.
Détails
Description originale de l’auteur
URDF robot description authoring and validation. Use when creating, editing, inspecting, validating, or debugging `.urdf` files, robot links, joints, limits, inertials, visual/collision geometry, mesh references, frame conventions, or robot-description artifacts. Covers the robot's structure, not MoveIt2 semantic groups or IK/path-planning semantics (SRDF), and not the STEP/STL/3MF/DXF/GLB files its meshes come from. Open and visually review existing URDF files in CAD Viewer.
repo: earthtojake/text-to-cad
Popularité
- Étoiles GitHub
- 25k
- Position au classement
- #10077
- 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.
cad
25kAide votre agent à concevoir des pièces et assemblages 3D sous forme de scripts Python build123d, à les exporter en fichiers STEP ou STL, et à vérifier leurs mesures.
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.
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.