मुख्य सामग्री पर जाएँ
Skillpedia
विविध25k · #10073

sdf

यह क्या करती है

यह स्किल आपके AI को SDF फ़ाइलें लिखने और सत्यापित करने में मार्गदर्शन देती है, जो सिम्युलेटर मॉडल और दुनिया के लिए XML फ़ॉर्मेट है। यह रोबोटिक्स और सिमुलेशन इंजीनियरों के लिए है।

कब इस्तेमाल करें

  • ✓जब आपको SDF मॉडल या world फ़ाइल बनानी या संपादित करनी है।
  • ✓जब आप सिम्युलेटर फ़ाइल में links, joints, sensors या physics की त्रुटियाँ जाँचना चाहते हैं।
  • ✓जब आप सिम्युलेटर को देने से पहले मौजूदा SDF फ़ाइल की समीक्षा करना चाहते हैं।

Skill का लिंक

https://github.com/earthtojake/text-to-cad/blob/main/skills/sdf/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/earthtojake/text-to-cad/blob/main/skills/sdf/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप दो पहियों वाले रोबोट के लिए lidar सेंसर सहित SDF फ़ाइल लिख सकते हैं और जाँच सकते हैं कि वह सही है?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI सीधे XML लिखता है, फिर एक सत्यापन कमांड चलाता है, ताकि काम पूरा होने से पहले पक्का हो कि फ़ाइल सही है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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

  1. Author .sdf XML directly and validate every created or modified file with cad sdf validate before reporting completion.
  2. Identify the target consumer before editing: Gazebo/libsdformat version, another simulator, visualization-only tooling, model package, or world handoff.
  3. Decide document kind: model-level SDF, world-level SDF, or model-in-world. Prefer model-level SDF for reusable robot/object exports.
  4. Use SI units unless the target explicitly requires otherwise: meters, kilograms, seconds, radians.
  5. Prefer version="1.12" for new outputs unless the target consumer constrains the version.
  6. 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. Use references/design-ledger.md and references/llm-guardrails.md.
  7. Write relative_to / expressed_in explicitly on every nontrivial pose and axis. Implicit frame defaults are the top SDF failure mode. See references/frame-semantics.md.
  8. 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).
  9. When the robot already has a URDF, derive the SDF from it instead of re-authoring geometry; see references/interoperability.md.
  10. Regenerate upstream geometry, mesh, robot-description, render, topology, or package assets with their owning workflows before editing SDF that references them.
  11. After authoring, run available checks: bundled validation (which runs gz sdf --check itself whenever gz is on PATH), simulator load, joint motion, and plugin/sensor startup.
  12. 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 has cad_view, which reads what the user selected, and cad_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: its cad_show opens 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_snapshot and cad_export are 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
अक्सर पूछे जाने वाले सवाल

SDFormat क्या है?

यह एक XML फ़ॉर्मेट है जिसे Gazebo जैसे सिम्युलेटर मॉडल और दुनिया बताने के लिए इस्तेमाल करते हैं।

क्या यह 3D ठोस आकृतियों के बारे में है?

नहीं। signed-distance-field ज्यामिति कवर नहीं है। यह स्किल सिम्युलेटर फ़ॉर्मेट के बारे में है।

क्या सत्यापन सिमुलेशन चलाता है?

नहीं। यह फ़ाइल की जाँच करता है, इसलिए आपको उसे अपने सिम्युलेटर में फिर भी परखना चाहिए।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
25k
रैंकिंग में स्थान
#10073
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

bambu-labs

25k

यह आपके एजेंट को Bambu Connect या Bambu Studio के ज़रिए slice किया या बिना slice का 3D मॉडल Bambu Lab प्रिंटर पर भेजने में मदद करती है।

अन्यविविध

cad

25k

यह आपके एजेंट को 3D पुर्ज़ों और असेंबली को Python build123d स्क्रिप्ट के रूप में डिज़ाइन करने, उन्हें STEP या STL फ़ाइलों में निर्यात करने और उनके माप जाँचने में मदद करती है।

अन्यविविध

dfam-check

25k

यह आपके एजेंट को जाँचने में मदद करती है कि 3D mesh फ़ाइल ठीक से प्रिंट हो सकती है या नहीं, और overhangs, दीवार की मोटाई व सपोर्ट की ज़रूरत बताती है।

अन्यविविध

dfm

25k

यह आपके एजेंट को शीट मेटल, CNC मशीनिंग या इंजेक्शन मोल्डिंग के लिए पुर्ज़े की समीक्षा करने में मदद करती है, यह जाँचने के लिए कि वह बन सकता है या नहीं और क्या बदलना है।

अन्यविविध

मिलती-जुलती skills