agentleFS
gugu-2gugu-2/Prompt-CAD/skills/auto-kinematics/SKILL.md

auto-kinematics

Skill2 starsChanged 6 months agoMITView on GitHub

Extract URDFs directly from build123d assemblies and simulate their kinematics using PyBullet to validate mechanical functionality.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Design the CAD Assembly: Write a build123d Python script that explicitly uses joints (e.g., RigidJoint, RevoluteJoint, SliderJoint) to …

    line 15
  2. Very specific:

    Extract URDF: Run scripts/extract_urdf.py on the CAD python script.

    line 16
  3. Very specific:

    Simulate: Run scripts/simulate.py on the generated URDF to apply motors and test the mechanism.

    line 17
  4. Very specific:

    Analyze & Fix: Read the output logs and plotted velocity charts.

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Generative Assembly & Auto-Kinematics

Purpose

Bridge the gap between static CAD and dynamic robotics. This skill allows the agent to design build123d assemblies, automatically derive precise inertial URDFs from them, and run a physics simulation (PyBullet) to prove the mechanism works (e.g. gear trains, 4-bar linkages) without locking or colliding.

Use this skill when

The user asks to design a moving mechanism, gear train, linkage, or robot assembly and wants proof that the kinematics behave correctly according to a specific ratio or motion path.

Required workflow

  1. Design the CAD Assembly: Write a build123d Python script that explicitly uses joints (e.g., RigidJoint, RevoluteJoint, SliderJoint) to assemble the parts.
  2. Extract URDF: Run scripts/extract_urdf.py on the CAD python script. This will auto-calculate mass and inertia tensors and output a gen_urdf() compatible python file or XML.
  3. Simulate: Run scripts/simulate.py on the generated URDF to apply motors and test the mechanism.
  4. Analyze & Fix: Read the output logs and plotted velocity charts. If the simulation reports collisions or an incorrect gear ratio, modify the pivot points or gear teeth in the build123d script and repeat the cycle.

Available tools

python scripts/extract_urdf.py --source assembly.py --material "Steel" --output robot.urdf
python scripts/simulate.py --urdf robot.urdf --driver-joint "joint_1" --driver-velocity 10.0 --driven-joint "joint_2" --plot-output results.png

References

  • references/kinematics-guidelines.md - How to structure build123d assemblies for perfect URDF extraction and simulation debugging.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.