# Kernelcad sdformat

> Kernelcad sdformat is an open-source agent skill for developer tools. Exports CAD assemblies to SDFormat with closed loops, ball joints and solved link poses. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/w1ne/kernelCAD-web/tree/develop/src/agent/skills/kernelcad-sdformat
- **Repository:** https://github.com/w1ne/kernelcad-web
- **GitHub stars:** 37
- **License:** MIT
- **Skill name:** kernelcad-sdformat
- **Collection:** https://github.com/w1ne/kernelCAD-web
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/w1ne/kernelCAD-web/tree/HEAD/src/agent/skills/kernelcad-sdformat)
- [License: MIT](https://github.com/w1ne/kernelCAD-web/tree/HEAD/src/agent/skills/kernelcad-sdformat)

## Features

- **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

## Install

### Claude Code

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Kernelcad urdf](https://ai-powered.com/skills/kernelcad-urdf): Kernelcad urdf is an open-source agent skill for developer tools.
- [Kernelcad export](https://ai-powered.com/skills/kernelcad-export): Kernelcad export is an open-source agent skill for developer tools.
- [Kernelcad assemblies](https://ai-powered.com/skills/kernelcad-assemblies): Kernelcad assemblies is an open-source agent skill for developer tools.
- [Kernelcad authoring](https://ai-powered.com/skills/kernelcad-authoring): Kernelcad authoring is an open-source agent skill for developer tools.
- [Kernelcad fields](https://ai-powered.com/skills/kernelcad-fields): Kernelcad fields is an open-source agent skill for developer tools.
- [Kernelcad kinematic](https://ai-powered.com/skills/kernelcad-kinematic): Kernelcad kinematic is an open-source agent skill for developer tools.
- [Kernelcad drawings](https://ai-powered.com/skills/kernelcad-drawings): Kernelcad drawings is an open-source agent skill for developer tools.
- [Kernelcad design loop](https://ai-powered.com/skills/kernelcad-design-loop): Kernelcad design loop is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/kernelcad-sdformat
