/text-to-cad:print3dfrom text-to-cad
Slices .stl, .3mf, or .obj files into G-code using OrcaSlicer and sends to Bambu Lab printers via Bambu Connect. Supports Prusa, Creality, Voron, and most FDM printers.
Ships in text-to-cad. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Get a part printed: slice it for the person's printer and hand the result to the printer's own app. Designing the part, and checking whether it will print (walls, overhangs, supports, orientation), is the cad skill's.
| Task | Start with | Reference |
|---|---|---|
| Slice to G-code | OrcaSlicer's command line, with the person's presets | Slice with OrcaSlicer |
| Print on a Bambu Lab printer | The sliced .gcode.3mf, opened in Bambu Connect | Bambu Lab printers |
| Print on any other printer | The .gcode, given to the person | Any other printer |
| Will this print? | The cad skill's printing check | Its manufacturing references |
Written for cad==0.11.22. Before first use in a chat, run cad --version. If it fails, or cad is missing or older
than 0.11.12, run uv tool install --force cad. If it is older than the release this skill was written for, run
cad update.
If cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin: https://github.com/earthtojake/text-to-cad A project written for an earlier version may need changes; the migration guides say what: https://github.com/earthtojake/text-to-cad/tree/main/docs/migrations
cad is needed only to write the mesh a slicer takes from a text-to-cad model or a STEP:
cad model export "$ID" part.3mf
cad step export part.step part.3mf
OrcaSlicer is the person's own install: brew install --cask orcaslicer on macOS (its command line is
/Applications/OrcaSlicer.app/Contents/MacOS/OrcaSlicer), or a release from
https://github.com/OrcaSlicer/OrcaSlicer/releases on Windows and Linux (orca-slicer; on Linux, the
AppImage or Flatpak). Below, <orca> is that command, and <orca> --help is its interface
(https://www.orcaslicer.com/wiki/cli/cli_mode).
The command line slices with the settings it is given: a printer, a process and a filament preset. Two things carry them:
.3mf): it holds its
models and every setting, and slices as it is. This is the sure route.--load-settings "process.json;printer.json" and
--load-filaments "a.json;b.json" (one filament per material, in order).A preset as OrcaSlicer stores it holds only its differences from the preset its inherits names, and
an export from the app (File > Export > Export Preset Bundle) is an archive of those same files. The
person's own are under user/ in the configuration folder: ~/Library/Application Support/OrcaSlicer,
~/.config/OrcaSlicer (a Flatpak's ~/.var/app/com.orcaslicer.OrcaSlicer/config/OrcaSlicer) or
%APPDATA%\OrcaSlicer. The built-in ones they inherit from are in system/ beside them and in the
app's resources/profiles: JSON files before OrcaSlicer 2.5, binary caches (.opc) from it.
Whether the command line fills in the parents depends on its version, so check what it sliced with:
the settings are written into the G-code (grep -m1 "nozzle_temperature =" plate_1.gcode, and the
same for the bed size and layer height). Where they are OrcaSlicer's defaults and not the preset's,
this version wants complete presets: merge the chain, parents first, the child last (skip nothing: a
parent may inherit in turn; of two presets with one name, take the one whose compatible_printers
lists the printer), and put the printer's name in the process's compatible_printers. From 2.5 the
parents are in the caches and cannot be read: use a project file there.
Use the presets the person prints with, and never invent one: a wrong bed size or temperature can damage a printer. Where there are none to slice headless with, open the model in the app instead.
<orca> model.stl \
--load-settings "presets/process.json;presets/printer.json" \
--load-filaments presets/filament.json \
--arrange 1 --slice 0 \
--outputdir /absolute/path/to/out --export-3mf model.gcode.3mf
This writes plate_1.gcode and the sliced model.gcode.3mf into the folder; give --outputdir an
absolute path. It reads .stl, .3mf, .obj and .amf. A setting is overridden with
--<setting>=<value>, its key written with hyphens (--layer-height=0.16).
To let the person pick presets and slice themselves, open the model in the app: open -a OrcaSlicer model.stl on macOS, Start-Process model.stl on Windows where OrcaSlicer opens that file type,
orca-slicer model.stl on Linux. The app also reads STEP.
A Bambu Lab printer takes jobs from other software only through Bambu Connect, Bambu Lab's desktop app for third-party tools (https://wiki.bambulab.com/en/software/bambu-connect; Windows 10 and macOS 13 or later, signed in to the person's account). The person picks the printer and starts the print there. Never ask for access codes.
| What the person has | Hand it off by |
|---|---|
A sliced .gcode.3mf | Opening it in Bambu Connect |
A plain .gcode sliced with this printer's Bambu profile | Opening it in Bambu Connect; if refused, slice the model in Bambu Studio |
An unsliced .3mf, .stl or .step | Opening it in Bambu Studio, which slices and sends it. On Linux, where Bambu Connect is still in development, this is the route |
Bambu Connect imports a file from a bambu-connect://import-file link with three parameters: path
(the file's absolute path) and name (the name to show), each percent-encoded as JavaScript's
encodeURIComponent does (Python: urllib.parse.quote(value, safe="")), and version=1.0.0:
bambu-connect://import-file?path=%2FUsers%2Fme%2Fprints%2Fbracket.gcode.3mf&name=bracket&version=1.0.0
Open the link with open "<link>" on macOS or Start-Process "<link>" in PowerShell. Bambu Studio
opens a model with open -a BambuStudio <file> on macOS (some installs name it Bambu Studio), from
its File menu on Windows, or bambu-studio <file> on Linux.
Before the person presses Print, tell them what to check: the printer, plate type, nozzle, filament and AMS mapping, a clear build plate, and someone nearby for the first layer. This hand-off shows the agent nothing of the printer, so do not report a print as started.
The person prints the .gcode from their printer's app, its web interface (PrusaLink, OctoPrint,
Mainsail, Fluidd) or an SD card.
Before anyone prints a slice:
<orca> model.stl --info prints the model's size, which has to fit the bed.
OrcaSlicer writes the slice's settings at the end of the G-code. Confirm they match the person's printer and material:
grep -E '^; (printer_model|nozzle_diameter|filament_type|nozzle_temperature|hot_plate_temp|bed_temperature) =|printing time' out/plate_1.gcode
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub earthtojake/text-to-cad --plugin text-to-cad8 skills in this plugin
/cadDesigns and edits 3D CAD - parametric parts, assemblies, mechanisms and 2D cut profiles, written as build123d Python and shown live in the text-to-cad viewer. Use for any request to model, change, measure, inspect, animate, export or convert a part or a CAD file (STEP, STL, 3MF, GLB, DXF, xbf), for references and Quick Edit prompts copied from the viewer, and to check whether a part can be machined, cut and bent, molded or printed. Not for robot descriptions, which the robot-simulation skill writes./engineering-drawingMakes an engineering drawing of a part as a PDF, projected from its 3D geometry so the drawing follows the model, with dimensioned orthographic views, hole callouts, notes and a title block. Use when the person asks for a drawing, a dimensioned sheet, shop or manufacturing drawings, a blueprint, or "2D views of this part". Not for DXF cut layouts or flat patterns, which the cad skill makes./feaChecks whether a part, or an assembly of bonded parts, is strong enough under its loads, as a linear static stress study (FEA). Use when the person asks whether a part will hold, break or bend too much, where it is most stressed, how much load it takes, how to make it stronger or lighter, or for FEA, a stress analysis or a strength simulation. Reports peak stress, safety factor against yield and deflection. Static loads only, not vibration, buckling, heat, fatigue or impact./pcbDesigns, edits and reviews KiCad circuit boards and schematics (.kicad_pcb, .kicad_sch). Use for any request about a PCB, a schematic or a circuit - parts and nets, placement and routing, ERC and DRC, a review before ordering from JLCPCB, PCBWay or another fab, and fabrication files, a BOM, a netlist or a STEP of the board. Not for the enclosure or other mechanical parts, which the cad skill makes./renderRenders photoreal images and videos of a text-to-cad model, a STEP or an xbf with Blender - a hero shot, a product or README picture, a turntable, or a film of a model's motion. Use when the person wants a picture or a video for people to look at. Not for checking geometry, which the cad skill's snapshot does./robot-simulationWrites and reviews robot and world descriptions (URDF, SRDF, MJCF) for ROS, MoveIt and MuJoCo. Use to generate a robot description or a MuJoCo scene from a CAD model's joints, or to write, edit or check a .urdf, .srdf or MJCF .xml by hand. Not for the CAD part itself, which the cad skill makes, and it runs no simulation.Other plugins' skills for the same job