Convert logo

Convert

Organization
partcad
convert

Convert a CAD file or a PartCAD object to another geometry format - STEP, BREP, STL, 3MF, OBJ, IGES, glTF, three.js, SVG, DXF, URDF, ASSY - with `pc convert` for an object a package declares (which changes what that object is) or `pc adhoc convert` for a file that belongs to no package. Use for /pc:convert or when the user asks to convert, translate, re-save, or change the format of a CAD file, part, sketch or assembly. For a 2D picture use /pc:render; to write a file without changing the package use /pc:export.

Overview

Publisherpartcad
Repositorypartcad
Skill nameconvert
Stars
504
Forks
47
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by partcad on GitHub. Read the source before you install it.

Installation

Install the Convert AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/partcad/partcad/tree/devel/ai-agents/common/skills/convert
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/partcad/partcad.git /tmp/partcad
mkdir -p .claude/skills
cp -r /tmp/partcad/ai-agents/common/skills/convert .claude/skills/convert
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Convert in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Convert on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Convert is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

pc:convert

Turn geometry into another geometry format. $ARGUMENTS says what to convert and to what.

Two commands do this, and picking the right one is most of the job:

  • pc convert — an object a package declares. It writes the file and rewrites the object's definition in partcad.yaml to point at it: the part becomes the new format.
  • pc adhoc convert — a file that belongs to no package. File in, file out; no package is created, read, or changed.

If the user wants a file without changing what the object is, that is /pc:export. If they want a picture, that is /pc:render.

1. Work out which case you are in

Do this before running anything. It is the same first step in /pc:render and /pc:export.

  1. Is there a package? PartCAD searches upward for partcad.yaml, so look in the current directory and above. pc --no-ansi list lists what the package holds; if there is no package it says so.
  2. Does the reference name an object? Check it against pc --no-ansi list parts / list sketches / list assemblies. pc --no-ansi info <name> succeeds only for an object that resolves.
  3. Does a file the user named belong to an object? Someone who says "convert bracket.step" inside a package usually means the part built from it. Read partcad.yaml and look for an object whose path: is that file — and note that a file-backed object without a path: is <name> plus the type's extension, so a part bracket of type step is bracket.step whether or not the path is written down.

If 2 or 3 matched, it is an object: use pc convert (§3). Converting its file behind the package's back would leave partcad.yaml describing a format that is no longer there.

If there is no package, or the file is not one an object is built from, it is ad-hoc: use pc adhoc convert (§4).

When it is genuinely ambiguous — a package exists and the file sits inside it but nothing declares it — say which you picked and why, rather than guessing silently.

2. Make sure PartCAD is available

Resolve a command as /pc:init does (pc, then partcad, then python -m partcad_cli.click.command). If none is found, stop and run /pc:setup executable first.

Pass --no-ansi on every run so the output is plain text. It is a global flag and goes before the subcommand, and it routes the logs to stderr — so capture both streams when reading them: pc --no-ansi convert ... 2>&1.

3. An object in a package — pc convert

sh
pc --no-ansi convert part bracket -t step
pc --no-ansi convert sketch outline -t dxf
pc --no-ansi convert assembly gearbox -t urdf

Target formats, by kind:

kind-t
partstep, brep, stl, 3mf, threejs, obj, gltf, iges
sketchsvg, dxf
assemblyassy, urdf

Options: -P <package> for an object in another package, -O <dir> for where the file goes (the directory must exist; it defaults to the package directory), and --dry-run.

This edits partcad.yaml. Say so before you run it, and prefer --dry-run first — show the user what would change, then run it for real. What is at stake is not the file but the object: a cadquery part converted to step is no longer a script, so its parameters and the code that produced it stop being part of the package. If the user only wants a STEP file to send someone, they want /pc:export, not this.

An assembly conversion is the largest of these. To URDF it writes the .urdf and an STL per distinct shape; to ASSY it writes an stl part per URDF link, an interface pair per joint, and an .assy that connects the parts through them.

4. A file with no package — pc adhoc convert

PartCAD wraps the file in a throwaway package, converts it, and deletes the package again. Types are inferred from the file names; --input and --output say them outright when an extension is missing or misleading:

sh
pc --no-ansi adhoc convert part bracket.step bracket.stl
pc --no-ansi adhoc convert part --input step bracket.dat bracket.stl
pc --no-ansi adhoc convert part --output 3mf bracket.step      # names the output after the input
pc --no-ansi adhoc convert sketch outline.svg outline.dxf
  • part reads step, brep, stl, 3mf, threejs, obj, iges, gltf, cadquery, build123d, chili3d, sdf, scad, and writes all of those except chili3d, sdf and scad — PartCAD reads those three but has no exporter that writes them back.
  • sketch reads and writes svg, dxf, cadquery, build123d.
  • urdf and assy are refused: an ASSY file is a set of references to the parts of a package and a URDF becomes a part per link, so neither means anything without one. A user who has a URDF needs it in a package first (pc import assembly) and then pc convert assembly.

Nothing here writes a picture: pc adhoc convert sketch a.svg b.png is refused on purpose. Rendering a bare file is pc adhoc render, which is /pc:render.

5. Report what happened

Name the files that were written, with their paths, and say plainly whether partcad.yaml changed — it does for pc convert and never for pc adhoc convert. If PartCAD printed an error, surface it verbatim rather than working around it: a conversion that fails on the geometry is a fact about the model, not something to retry with different flags.

Frequently asked questions

What does the Convert AI skill do?

Convert a CAD file or a PartCAD object to another geometry format - STEP, BREP, STL, 3MF, OBJ, IGES, glTF, three.js, SVG, DXF, URDF, ASSY - with `pc convert` for an object a package declares (which changes what that object is) or `pc adhoc convert` for a file that belongs to no package. Use for /pc:convert or when the user asks to convert, translate, re-save, or change the format of a CAD file, part, sketch or assembly. For a 2D picture use /pc:render; to write a file without changing the package use /pc:export.

Why use Convert on TypingMind?

Because you install it once and use it with any model. Convert is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Convert in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/partcad/partcad/tree/devel/ai-agents/common/skills/convert. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Convert?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Convert?

As many as you like. As long as a model supports skills, you can use Convert with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Convert AI skill free?

Yes. It is published on GitHub by partcad under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇