sdf
SDFormat/SDF model and world generation, validation, and simulator handoff. Use for `.sdf` files, SDFormat XML, Python `gen_sdf()` sources, 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.
Security Assessment
About sdf
The `sdf` skill is designed to facilitate the generation, validation, and simulator handoff of SDFormat (SDF) models and worlds. It focuses on creating and manipulating `.sdf` files, Python `gen_sdf()` sources, and related SDFormat XML content. This skill ensures that models, worlds, links, joints, frames, poses, inertials, visual and collision geometries, sensors, lights, physics parameters, plugins, and simulator metadata are accurately represented and compatible with target simulators. Importantly, it does not handle signed-distance-field geometry, instead emphasizing precise simulator-ready representations derived from source data and explicit assumptions rather than visual inference alone.
Key features include structured handling of both model-level and world-level SDFs, adherence to SI units by default, and preference for version 1.12 outputs. Users are guided to maintain a design ledger for all critical elements, leverage helper functions to avoid hidden numbers in XML, and regenerate only explicit targets to minimize errors. The skill also supports rigorous post-generation validation, including bundled checks, optional `gz sdf --check`, and simulator load verification. CAD Viewer handoff is enforced for updated `.sdf` files, ensuring that downstream tools or users receive accurate, accessible outputs. These practices collectively reduce errors in simulator interoperability and maintain a clear audit trail of assumptions and design decisions.
The primary use cases for this skill include exporting reusable robot or object models, preparing simulator-specific world descriptions, and generating Python-based SDFormat sources for simulation workflows. Target users are engineers, roboticists, and simulation developers working with Gazebo or other SDFormat-compatible simulators. By providing structured generation, clear validation, and explicit handoff procedures, the `sdf` skill streamlines the creation of reliable, simulator-ready models and worlds, minimizing compatibility risks and manual errors while supporting maintainable and reproducible simulation pipelines.
FAQ
Can I use this skill for signed-distance-field geometry?
No, the `sdf` skill is specifically for SDFormat outputs and generators. It should not be used for signed-distance-field modeling or raw geometry generation.
Which version of SDFormat should I target when generating new outputs?
Prefer version 1.12 for new outputs unless the target consumer explicitly requires a different version.
Do I need to edit generated XML directly?
No, you should treat the Python `gen_sdf()` source as the source of truth and avoid direct XML editing unless explicitly requested.
What validation steps are recommended after generation?
After generating an SDF file, run bundled validation, optionally use `gz sdf --check`, verify simulator load, check joint motion, and ensure plugin and sensor startup works. Report any assumptions or unresolved resources.
How does CAD Viewer integration work?
Upon completing SDF work, always hand the explicit file path to `$cad-viewer` if installed. It should open the CAD Viewer and return links to the relevant files, or report an error if startup fails.
All Files
28 filesInstall sdf
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
earthtojake/text-to-cad