Skip to content
Skill

Kernelcad sdformat

Exports CAD assemblies to SDFormat with closed loops, ball joints and solved link poses

Kernelcad sdformat is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
37
Last commit
License
MIT
Listing updated

Similar skills

About Kernelcad sdformat

This skill guides an agent through exporting a multi-part kernelCAD assembly as an SDFormat 1.10 model for Gazebo-style simulators. The export writes a .sdf file plus a sibling meshes folder with one STL per link, referenced by relative URI, so the output should be shipped as a whole directory.

The skill explains how the emitter handles the details that matter for simulation: links are placed at poses taken from the mate solver so they spawn assembled, a fixed world anchor keeps the model from free-falling, and per-link density can be seeded from a material name. It also lists which mate types map natively to SDFormat joints and which ones are approximated, along with the warnings the exporter raises for lossy or unsolved cases.

It expects a kernelCAD TypeScript assembly script with mates and connectors defined, and an MCP export call or CLI that writes the output path. Its guidance also covers simulator behaviour: serial chains and ball joints simulate directly, while closed loops parse but are not fully simulated by current physics engines.

When your agent uses it

Export multi-part assemblies to SDFormat — closed kinematic loops, native ball joints, solved per-link poses, per-link inertial/visual/collision with mesh files. Use when the downstream simulator ingests SDFormat directly or the assembly needs closed-loop / native-spherical-joint support.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (8 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/kernelcad-sdformat to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kernelcad-sdformat &&
cp -R "$tmp/src/agent/skills/kernelcad-sdformat" ~/.claude/skills/kernelcad-sdformat &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/kernelcad-sdformat inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/kernelcad-sdformat to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/kernelcad-sdformat &&
cp -R "$tmp/src/agent/skills/kernelcad-sdformat" ~/.agents/skills/kernelcad-sdformat &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/kernelcad-sdformat inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/kernelcad-sdformat to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/kernelcad-sdformat &&
cp -R "$tmp/src/agent/skills/kernelcad-sdformat" ~/.cursor/skills/kernelcad-sdformat &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/kernelcad-sdformat inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/w1ne/kernelCAD-web.git --path src/agent/skills/kernelcad-sdformat

Or copy the folder to ~/.gemini/skills/kernelcad-sdformat yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/kernelcad-sdformat:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kernelcad-sdformat &&
cp -R "$tmp/src/agent/skills/kernelcad-sdformat" ~/.copilot/skills/kernelcad-sdformat &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/kernelcad-sdformat inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/w1ne/kernelCAD-web.git

Then copy kernelCAD-web/src/agent/skills/kernelcad-sdformat into your agent's skills folder as kernelcad-sdformat. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Closed kinematic loop support
Exports four-bar linkages and other closed mechanisms that URDF cannot represent.
Native ball joints
Maps ball mates to a single SDFormat ball joint without decomposition.
Solved link poses
Stamps each link with its world transform from the mate solver so parts spawn assembled.
Mesh and inertial output
Writes per-link STL meshes with metre scaling plus inertial, visual and collision data.
Material-based density
Seeds link inertia from named materials such as steel, aluminum or PLA.
Export diagnostics guidance
Documents warnings for unsolved poses, lossy joint conversions and dropped couplings.

Good for

  • Export a four-bar linkage model for a Gazebo simulation
  • Convert a multi-part robot arm assembly with ball joints to SDFormat
  • Check whether a mechanism with a closed loop exports cleanly
  • Set up a fixed world anchor so an exported model does not fall
  • Troubleshoot unsolved poses or lossy joint warnings during export

Kernelcad sdformat FAQ

When should I choose SDFormat over URDF?

The skill recommends SDFormat when the assembly has a closed kinematic loop, uses a ball mate, or the simulator accepts SDFormat directly. Otherwise URDF is preferred for its wider tool support.

What files does the export produce?

It writes a .sdf file and a sibling meshes directory containing one STL per link. The whole directory should be shipped together so the relative mesh references resolve.

Do closed loops simulate in Gazebo?

The export keeps the loop joint and the file is valid, but the tested physics engines do not fully simulate closed loops yet. The default engine simulates the spanning tree and drops the loop-closure joint.

What happens to mimic couplings?

SDFormat 1.10 has no mimic element, so coupled mates are exported as independent joints and a warning is emitted. The ratio must be enforced in the controller.

How do I install Kernelcad sdformat in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/kernelcad-sdformat to use it in all your projects, or to .claude/skills/kernelcad-sdformat in one project.

Does Kernelcad sdformat run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Kernelcad sdformat?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Kernelcad sdformat?

The closest alternatives to Kernelcad sdformat are Kernelcad urdf, Kernelcad export, Kernelcad assemblies, Kernelcad authoring and Kernelcad fields.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from w1ne/kernelCAD-web

  1. Compares bounded kernelCAD design variants on one evidence basis with a review gate

    • Open source
    • 37 GitHub stars
    • Developer tools
  2. Finds and runs kernelCAD cookbook recipes for common industrial CAD parts via MCP

    • Open source
    • 37 GitHub stars
    • Developer tools
  3. Builds and revises CAD parts through a hosted kernelCAD MCP server until checks pass

    • Open source
    • 37 GitHub stars
    • Developer tools
  4. Exports kernelCAD models to STEP, STL, 3MF, PLY, USD and more, with checks

    • Open source
    • 37 GitHub stars
    • Developer tools
  5. Lets an agent show a kernelCAD model in Studio and act on painted review marks

    • Open source
    • 37 GitHub stars
    • Design and media
  6. Gates a kernelCAD revision for fabrication with state-labelled, revision-bound evidence

    • Open source
    • 37 GitHub stars
    • Developer tools