urdf
O que ela faz
Esta skill orienta sua IA na criação e verificação de arquivos URDF, que descrevem os elos e juntas de um robô e suas formas. Ela é indicada para engenheiros de robótica que criam ou depuram modelos de robôs.
Quando usar
- ✓Quando você cria ou edita um arquivo URDF para um robô.
- ✓Quando as juntas ou os frames de um robô se comportam de forma errada em um visualizador ou simulador.
- ✓Quando você precisa verificar limites de juntas, inércia ou geometria de colisão em um URDF.
Link da skill
https://github.com/earthtojake/text-to-cad/blob/main/skills/urdf/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode escrever um URDF para um braço de duas juntas com limites de junta e verificar se ele é válido?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA escreve o XML do URDF diretamente, registrando primeiro no topo do arquivo as premissas de frames e unidades. Em seguida, valida o arquivo para pegar erros em frames, eixos e unidades.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
O que é o URDF?
É um formato XML que descreve as partes de um robô e como elas se conectam.
Ele cobre configurações de planejamento?
Não. As configurações de planejamento do MoveIt estão na skill de SRDF.
Ele cobre o arquivo CAD em si?
Não. Ele cobre a descrição do robô, e os arquivos de malha que ele referencia são separados.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 25 mil
- Posição no ranking
- #10077
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
bambu-labs
25 milAjuda seu agente a enviar um modelo 3D fatiado ou não fatiado para uma impressora Bambu Lab, pelo Bambu Connect ou pelo Bambu Studio.
cad
25 milAjuda seu agente a desenhar peças e montagens 3D como scripts Python com build123d, exportá-las como arquivos STEP ou STL e verificar suas medidas.
dfam-check
25 milAjuda seu agente a verificar se um arquivo de malha 3D pode ser impresso bem, informando saliências, espessura de parede e necessidade de suportes.
dfm
25 milAjuda seu agente a revisar uma peça para chapa metálica, usinagem CNC ou moldagem por injeção, verificando se ela pode ser fabricada e o que mudar.
Skills parecidas
blucli
394 milAjuda seu agente a encontrar, tocar, pausar, agrupar e ajustar o volume de alto-falantes Bluesound e NAD pelo comando blu.
camsnap
394 milAjuda seu agente a capturar fotos, clipes curtos ou eventos de movimento de câmeras de rede e webcams locais que você configurou.
eightctl
394 milAjuda seu agente a verificar e controlar um pod da Eight Sleep, incluindo temperatura, alarmes e programações de sono.