Agent skill

OrcaSlicer G-code Slicing

by earthtojake in earthtojake/text-to-cad

Slices STL, 3MF or OBJ models into printer-ready G-code with OrcaSlicer, either headless from the command line or by opening the model in the app.

MITAuto-check passedMedia & Creative

Install OrcaSlicer G-code Slicing

skills CLI
$ npx skills add earthtojake/text-to-cad --skill gcode -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install earthtojake/text-to-cad gcode --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/earthtojake/text-to-cad.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/gcode .claude/skills/gcode && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gcode
GitHub stars
18k
Token cost
~989 tokens
SKILL.md length
371 words
Files
4 (incl. scripts)
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Slices STL, 3MF or OBJ models into printer-ready G-code with OrcaSlicer, either headless from the command line or by opening the model in the app.

  • Works in 3 steps: Find the user's printer, process and… → Write the complete presets → Slice. Give --outputdir an absolute path
  • Slicing an STL or 3MF model for a specific FDM printer
  • SKILL.md covers Install OrcaSlicer, Slice headless, Open in OrcaSlicer and Check before printing, plus 1 more section
  • Runs Python scripts from its folder; calls python and brew

What it does

The skill uses OrcaSlicer, an open-source slicer with built-in profiles for most FDM printers, and never contacts a printer: for Bambu Lab printers the result is handed to a separate skill, and for others you receive the `.gcode` file. It covers installing OrcaSlicer through Homebrew on macOS or from a release on Windows and Linux, where the command is `orca-slicer`. STEP models must first be exported to STL or 3MF with a separate CAD skill.

Headless slicing needs complete presets because the command line does not fill in a preset's parent settings. A bundled script, `scripts/orca_presets.py`, written for Python 3 with no dependencies, lists matching machine, process and filament presets and writes complete ones, searching the user's own presets first and then OrcaSlicer's built-in profiles. The agent must pick the presets the user prints with and never invent one, since a wrong bed size or temperature can damage the printer. Slicing writes a plain G-code file and a sliced `.gcode.3mf` into an absolute output folder, and single settings such as layer height can be overridden.

When your agent uses it

  • Slicing an STL or 3MF model for a specific FDM printer
  • Producing a plain .gcode file to carry to a printer
  • Opening a model in OrcaSlicer for the user to inspect
  • Finding the right machine, process and filament presets for a printer

Example prompts

  • “Slice bracket.stl for my Prusa MK4S using Prusa Generic PLA.”
  • “Convert this 3MF to G-code and put the output in /home/me/prints.”
  • “List the filament presets that match PLA for my printer before slicing.”
  • “Open this model in OrcaSlicer so I can adjust supports myself.”

Requirements

  • OrcaSlicer installed
  • Python 3 for `scripts/orca_presets.py`

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Find the user's printer, process and filament presets. Prefer the presets
  2. Write the complete presets
  3. Slice. Give --outputdir an absolute path

What it can do on your machine

Read from SKILL.md and the folder at commit af1e9aa. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • brew

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • orcaslicer.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

OrcaSlicer G-code Slicing loads about 989 tokens when it runs. Until then it costs about 103 tokens; SKILL.md has 371 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~103
When it runs · the whole SKILL.md, loaded when a task matches
~989

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from earthtojake/text-to-cad at commit af1e9aa, republished under its MIT licence (© earthtojake). 371 words, ~989 tokens.

Download SKILL.mdSave it as .claude/skills/gcode/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
gcode
description
Slice 3D models into printer-ready G-code with OrcaSlicer, the open-source slicer with built-in profiles for most FDM printers (Prusa, Bambu Lab, Creality, Voron and more). Use when the user wants an `.stl`, `.3mf` or `.obj` model sliced for their printer, as a sliced `.gcode.3mf` or plain `.gcode`, headless with OrcaSlicer's command line or by opening the model in OrcaSlicer. Never contacts a printer.
license
MIT

G-code

Provenance: maintained in earthtojake/text-to-cad. Use the installed local skill files as the runtime source of truth; the repository link is only for provenance and release review.

Slice with OrcaSlicer, headless (below) or by opening the model in the OrcaSlicer app for the user. The agent never contacts a printer: for a Bambu Lab printer, hand the result to $bambu-labs; for any other printer, give the user the .gcode.

Install OrcaSlicer

  • macOS: brew install --cask orcaslicer. The command line is /Applications/OrcaSlicer.app/Contents/MacOS/OrcaSlicer.
  • Windows and Linux: install a release from https://github.com/OrcaSlicer/OrcaSlicer/releases. The command is orca-slicer; on Linux, run it from the AppImage or Flatpak.

Below, <orca> is that command.

Slice headless

OrcaSlicer's command line (https://www.orcaslicer.com/wiki/cli/cli_mode) needs complete presets: it doesn't fill in a preset's parent settings, and it slices only with a process whose compatible printers name the printer. scripts/orca_presets.py (Python 3, no dependencies) writes them from OrcaSlicer's presets, searching the user's own first, then OrcaSlicer's built-in profiles.

  1. Find the user's printer, process and filament presets. Prefer the presets the user prints with; never invent one, since a wrong bed size or temperature can damage the printer.

    bash
    python scripts/orca_presets.py --list machine --match "MK4S"
    python scripts/orca_presets.py --list process --match "@MK4S 0.4"
    python scripts/orca_presets.py --list filament --match "PLA @MK4S"
  2. Write the complete presets:

    bash
    python scripts/orca_presets.py --printer "Prusa MK4S 0.4 nozzle" \
      --process "0.20mm SPEED @MK4S 0.4" --filament "Prusa Generic PLA @MK4S" \
      --out presets
  3. Slice. Give --outputdir an absolute path:

    bash
    <orca> model.stl \
      --load-settings "presets/process.json;presets/printer.json" \
      --load-filaments presets/filament-1.json \
      --arrange 1 --slice 0 \
      --outputdir /absolute/path/to/out --export-3mf model.gcode.3mf

    This writes plate_1.gcode, the plain G-code, and model.gcode.3mf, the sliced 3MF, into that folder. The command line reads .stl, .3mf, .obj and .amf; export STEP to STL or 3MF with $cad first. Override one setting with --<setting>=<value>, using the setting's key with hyphens for underscores, such as --layer-height=0.16.

Show full SKILL.md (132 more words)Show less

Open in OrcaSlicer

When the user would rather pick presets and slice themselves, or no preset can be found, open the model in the app: open -a OrcaSlicer model.stl on macOS, Start-Process model.stl on Windows when OrcaSlicer opens that file type, or orca-slicer model.stl on Linux. The app also reads STEP.

Check before printing

  • <orca> model.stl --info prints the model's size; it has to fit the bed.

  • Check the slice's settings, which OrcaSlicer writes at the end of the G-code:

    bash
    grep -E '^; (printer_model|nozzle_diameter|filament_type|nozzle_temperature|hot_plate_temp|bed_temperature) =|printing time' out/plate_1.gcode

    Confirm they match the user's printer and material before anyone prints it.

Hand off

  • A Bambu Lab printer: $bambu-labs, with the .gcode.3mf.
  • Any other printer: the user prints the .gcode from their printer's app, its web interface (PrusaLink, OctoPrint, Mainsail, Fluidd) or an SD card.

© earthtojake, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts) in skills/gcode of earthtojake/text-to-cad.

  • SKILL.md
  • LICENSE
  • agents/openai.yaml
  • scripts/orca_presets.py

Open the folder on GitHubat commit af1e9aa

Compare with similar skills

OrcaSlicer G-code Slicing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

OrcaSlicer G-code Slicing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
OrcaSlicer G-code Slicing this skillearthtojake/text-to-cad18k—~989Automated safety check: PassMIT
Re Stegodslsdzc/rev-skills125—~1.2kAutomated safety check: PassApache-2.0
Env Doctorcat-xierluo/legal-skills713—~756Automated safety check: PassMIT
Tdoc DOCXLeoYeAI/openclaw-master-skills2.2k—~3.6kAutomated safety check: NotesMIT
Ppt CompressorLeoYeAI/openclaw-master-skills2.2k—~3.9kAutomated safety check: PassMIT
Apple Container Test RunnerRustPython/RustPython22k—~467Automated safety check: PassMIT

Similar skills

  • Re Stego

    dslsdzc/rev-skills

    隐写术检测与提取:文件尾附加、图片 LSB、音频与其他载体、提取验证. An agent skill from dslsdzc/rev-skills.

    125 GitHub stars~1.2k tokensUpdated 2 days ago
    SecurityAuto-check passed
  • Env Doctor

    cat-xierluo/legal-skills

    本机开发环境与全局包的体检、账本与安装纪律,覆盖所有包管理器(npm/npx、nvm、pip/pipx、uv、brew、bun)与运行时环境面(~/.local/bin 垫片、PATH、python 解释器版图、LaunchAgents、cron、shell rc 漂移对照)。当用户问「node/python 为什么是这个版本」「npm/pip…

    713 GitHub stars~756 tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Tdoc DOCX

    LeoYeAI/openclaw-master-skills

    Word 文档全能处理技能 | Complete Word Document Processing Skill. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~3.6k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check: notes
  • Ppt Compressor

    LeoYeAI/openclaw-master-skills

    This skill should be used when the user wants to compress a PowerPoint (.pptx) file by reducing the size of embedded videos and large images.

    2.2k GitHub stars~3.9k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Apple Container Test Runner

    RustPython/RustPython

    Runs RustPython tests inside a Linux container built with Apple's container CLI, so macOS users can compare Linux results with their local ones.

    22k GitHub stars~467 tokensUpdated today
    Testing & QAAuto-check passed
  • Reproduce macOS Nuitka issues across Python distributions and GitHub Actions Python packaging.

    15k GitHub stars~1.7k tokensUpdated today
    DevOps & CloudAuto-check passed

More from earthtojake/text-to-cad

All 12 skills in this repo
  • DfAM Printability Check

    earthtojake/text-to-cad

    Measures STL, OBJ, PLY or 3MF mesh files against additive manufacturing design limits and reports printability findings for each print process.

    18k GitHub starsUsed in 2 repos~1.5k tokens
    Auto-check passed
  • Step Parts

    earthtojake/text-to-cad

    Find, evaluate, and download common purchasable CAD parts from step.parts, including named off-the-shelf actuators, servos, motors, electronics boards, connectors, screws, bolts, nuts, washers…

    18k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Design for Manufacturing Review

    earthtojake/text-to-cad

    Guided DFM review of a part for sheet metal, CNC machining or injection molding, covering bends, tool access, draft and undercuts, with evidence-first measurement rules.

    18k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • URDF Robot Description Authoring

    earthtojake/text-to-cad

    Guides writing, editing and validating URDF robot description files, with a design ledger, exact frame semantics and computed inertials checked by a validator.

    18k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • DXF Drawing Generation

    earthtojake/text-to-cad

    Generates, regenerates and validates 2D DXF drawings from Python build123d sources for profiles, gaskets, panels and cut layouts, and reviews them in CAD Viewer.

    18k GitHub stars~4.3k tokensUpdated today
    Auto-check passed
  • SDFormat Model and World Authoring

    earthtojake/text-to-cad

    Authors, validates and reviews SDFormat XML for simulator models and worlds, with explicit frames, SI units and a design ledger.

    18k GitHub stars~2.6k tokensUpdated today
    Auto-check passed

Questions about OrcaSlicer G-code Slicing

What does OrcaSlicer G-code Slicing do?

Slices STL, 3MF or OBJ models into printer-ready G-code with OrcaSlicer, either headless from the command line or by opening the model in the app. gcode` file. It covers installing OrcaSlicer through Homebrew on macOS or from a release on Windows and Linux, where the command is `orca-slicer`.

When should I use OrcaSlicer G-code Slicing?

OrcaSlicer G-code Slicing fits situations like: slicing an STL or 3MF model for a specific FDM printer; producing a plain .gcode file to carry to a printer; opening a model in OrcaSlicer for the user to inspect; finding the right machine, process and filament presets for a printer.

How do I install OrcaSlicer G-code Slicing in Claude Code?

Run `npx skills add earthtojake/text-to-cad --skill gcode -a claude-code`. Or copy the skill folder (skills/gcode in earthtojake/text-to-cad) into .claude/skills/gcode in your project. Claude Code loads it when a task matches its description.

How do I install OrcaSlicer G-code Slicing in Codex?

Run `npx skills add earthtojake/text-to-cad --skill gcode -a codex`. Or copy the skill folder (skills/gcode in earthtojake/text-to-cad) into .agents/skills/gcode in your project. Codex loads it when a task matches its description.

Can I use OrcaSlicer G-code Slicing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add earthtojake/text-to-cad --skill gcode -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gcode, .gemini/skills/gcode, .github/skills/gcode and .opencode/skills/gcode in your project.

What does OrcaSlicer G-code Slicing need to run?

Going by SKILL.md and its folder, OrcaSlicer G-code Slicing needs Python for the scripts in its folder and the command-line tools its instructions call (python and brew). Our summary lists: OrcaSlicer installed; Python 3 for `scripts/orca_presets.py`.

Does OrcaSlicer G-code Slicing access the network?

SKILL.md names 2 domains. As links in the text: github.com and orcaslicer.com. This is read from the text; nothing was executed.

Is OrcaSlicer G-code Slicing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does OrcaSlicer G-code Slicing use?

OrcaSlicer G-code Slicing is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does OrcaSlicer G-code Slicing use?

About 989 tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to OrcaSlicer G-code Slicing?

Skills that share tags, products or a category with OrcaSlicer G-code Slicing: Re Stego (dslsdzc/rev-skills, 125 stars), Env Doctor (cat-xierluo/legal-skills, 713 stars), Tdoc DOCX (LeoYeAI/openclaw-master-skills, 2.2k stars) and Ppt Compressor (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains OrcaSlicer G-code Slicing?

earthtojake (a GitHub user) maintains it in earthtojake/text-to-cad, which has 18,314 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 8, 2026.

Source: earthtojake/text-to-cad on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.