sdf
O que ela faz
Esta skill orienta sua IA na escrita e validação de arquivos SDF, o formato XML de modelos e mundos de simuladores. Ela é indicada para engenheiros de robótica e de simulação.
Quando usar
- ✓Quando você precisa criar ou editar um arquivo de modelo ou mundo SDF.
- ✓Quando você quer verificar um arquivo de simulador em busca de erros de elos, juntas, sensores ou física.
- ✓Quando você precisa revisar um arquivo SDF existente antes de entregá-lo a um simulador.
Link da skill
https://github.com/earthtojake/text-to-cad/blob/main/skills/sdf/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 arquivo SDF para um robô de duas rodas com um sensor lidar e verificar se ele é válido?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA escreve o XML diretamente e depois roda um comando de validação para confirmar que o arquivo está correto antes de o trabalho ser dado como concluído.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
SDF
Use this skill when the deliverable is an SDFormat document. SDFormat describes simulator and world behavior: models, worlds, frames, poses, links, joints, inertials, visuals, collisions, sensors, lights, physics, plugins, includes, and simulator metadata.
This skill is for SDFormat, not signed-distance-field geometry.
The .sdf file is the source of truth: author and edit the XML directly.
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
- Author
.sdfXML directly and validate every created or modified file withcad sdf validatebefore reporting completion. - Identify the target consumer before editing: Gazebo/libsdformat version, another simulator, visualization-only tooling, model package, or world handoff.
- Decide document kind: model-level SDF, world-level SDF, or model-in-world. Prefer model-level SDF for reusable robot/object exports.
- Use SI units unless the target explicitly requires otherwise: meters, kilograms, seconds, radians.
- Prefer
version="1.12"for new outputs unless the target consumer constrains the version. - Establish the design ledger before writing poses, frames, joint axes, mesh scales, inertials, sensors, or plugins, and keep it as a comment block at the top of the
.sdf. Usereferences/design-ledger.mdandreferences/llm-guardrails.md. - Write
relative_to/expressed_inexplicitly on every nontrivial pose and axis. Implicit frame defaults are the top SDF failure mode. Seereferences/frame-semantics.md. - Do not infer spatial transforms from visual impression alone. Derive poses, axes, scale, mass, inertia, and frame names from upstream source data, drawings, simulator documentation, measured values, or explicit assumptions. Never freehand computed numbers — use formulas or a throwaway helper script (inertia tensors, unit conversions).
- When the robot already has a URDF, derive the SDF from it instead of re-authoring geometry; see
references/interoperability.md. - Regenerate upstream geometry, mesh, robot-description, render, topology, or package assets with their owning workflows before editing SDF that references them.
- After authoring, run available checks: bundled validation (which runs
gz sdf --checkitself whenevergzis on PATH), simulator load, joint motion, and plugin/sensor startup. - Report assumptions, skipped checks, unresolved resource paths, and target-specific compatibility risks.
Scope
Use this skill for SDFormat outputs. Do not use it for signed-distance-field modeling, raw geometry generation, planning semantics, or to paper over incorrect upstream robot/source data unless the task is explicitly simulator-only.
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
Perguntas frequentes
O que é o SDFormat?
É um formato XML que simuladores como o Gazebo usam para descrever modelos e mundos.
Isto trata de formas sólidas 3D?
Não. Geometria por campo de distância com sinal não é coberta. Esta skill trata do formato do simulador.
A validação executa a simulação?
Não. Ela verifica o próprio arquivo, então você ainda deve testá-lo no seu simulador.
Detalhes
Descrição original do autor
SDFormat/SDF model and world authoring, validation, and simulator handoff. Use for `.sdf` files, SDFormat XML, models, worlds, links, joints, poses, frames, inertials, visual/collision geometry, mesh URIs, sensors, lights, physics, plugins, includes, Gazebo, static SDF review, or simulator-specific metadata. Do not use for signed-distance-field geometry. Open and visually review existing SDF files in CAD Viewer.
repo: earthtojake/text-to-cad
Popularidade
- Estrelas no GitHub
- 25 mil
- Posição no ranking
- #10073
- 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.