# Kernelcad urdf

> Kernelcad urdf is an open-source agent skill for developer tools. Exports multi-part CAD assemblies as URDF robot descriptions with per-link meshes. 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-urdf
- **Repository:** https://github.com/w1ne/kernelcad-web
- **GitHub stars:** 37
- **License:** MIT
- **Skill name:** kernelcad-urdf
- **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 kernelCAD assembly to URDF, the XML robot format used by motion planners and simulators. It explains how parts become links, mates become joints, and how each link gets an inertial block and an STL mesh written to a sibling meshes folder.

The skill covers the details that most often break downstream use: meshes are emitted in millimetres but tagged with a 0.001 scale so consumers read metres, mass properties depend on the density or named material set on each part, and mate types without a direct URDF equivalent are mapped with documented losses. It also lists verification checks and a pre-export inspection step, and describes a separate USD physics export for GPU simulation stacks, including drive settings and fail-closed gates.

The workflow expects a kernelCAD assembly authored in TypeScript and access to the kernelCAD MCP export and verify tools.

## When your agent uses it

> Export multi-part assemblies to URDF — links, joints, inertial blocks, per-link STL meshes. Use when an assembly needs to be consumed by an external motion planner or simulator.

## 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-urdf)
- [License: MIT](https://github.com/w1ne/kernelCAD-web/tree/HEAD/src/agent/skills/kernelcad-urdf)

## Features

- **URDF link and joint export:** Writes one link per part and one joint per mate, with a tree-shaped robot description.
- **Mate type mapping:** Maps fastened, revolute, prismatic, planar and other mates to URDF joint types and notes lossy cases.
- **Inertia from material or density:** Computes per-link mass, centre of mass and inertia, with warnings when default density is inherited.
- **Mesh unit handling:** Writes per-link STL meshes with a metre scale so geometry matches the SI inertial values.
- **Closed-loop detection:** Flags assemblies with closed kinematic loops and suggests SDFormat or restructuring.
- **USD physics stage export:** Produces a UsdPhysics stage for GPU simulators, with optional drive gains declared per joint.

## Good for

- Export a two-link robot arm as URDF for a motion planner
- Check that an assembly has a valid tree structure before simulation
- Set steel or aluminum density on parts so link inertia is realistic
- Convert a CAD assembly into a USD stage for a physics simulator
- Preview the links and joints an export will produce before writing files

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/kernelcad-urdf` 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-urdf &&
cp -R "$tmp/src/agent/skills/kernelcad-urdf" ~/.claude/skills/kernelcad-urdf &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/kernelcad-urdf` 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-urdf &&
cp -R "$tmp/src/agent/skills/kernelcad-urdf" ~/.agents/skills/kernelcad-urdf &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/kernelcad-urdf` 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-urdf &&
cp -R "$tmp/src/agent/skills/kernelcad-urdf" ~/.cursor/skills/kernelcad-urdf &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/kernelcad-urdf` 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-urdf
```

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

### VS Code

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

```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-urdf &&
cp -R "$tmp/src/agent/skills/kernelcad-urdf" ~/.copilot/skills/kernelcad-urdf &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/kernelcad-urdf` 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-urdf` into your agent's skills folder as `kernelcad-urdf`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Kernelcad urdf be used?

When an assembly needs to be consumed by an external motion planner or simulator, has at least one part and one joint or mate, and the consumer expects a tree topology.

### What does the export produce?

A .urdf file plus a sibling meshes directory with one STL per link, with the whole directory shipped together.

### What happens with assemblies that have closed loops?

URDF export refuses them with an error. The skill suggests switching to the sdf-gazebo format or restructuring the mate graph.

### What is the default density for links?

The default is 1000 kg/m³, which the skill warns is wrong for steel or aluminum, so naming a material or passing a density is recommended.

### How do I install Kernelcad urdf in Claude Code?

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

### Does Kernelcad urdf 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 urdf?

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 urdf?

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

## Where this comes from

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

## Alternatives

- [Kernelcad sdformat](https://ai-powered.com/skills/kernelcad-sdformat): Kernelcad sdformat 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 export](https://ai-powered.com/skills/kernelcad-export): Kernelcad export is an open-source agent skill for developer tools.
- [Kernelcad srdf](https://ai-powered.com/skills/kernelcad-srdf): Kernelcad srdf is an open-source agent skill for robotics design.
- [Kernelcad kinematic](https://ai-powered.com/skills/kernelcad-kinematic): Kernelcad kinematic is an open-source agent skill for developer tools.
- [Kernelcad from reference](https://ai-powered.com/skills/kernelcad-from-reference): Kernelcad from reference 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.

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