gcode
できること
このスキルは、OrcaSlicerを使って3Dモデルのファイルを印刷の指示にスライスします。3Dプリンターで印刷するためにモデルを準備したい人向けです。
使う場面
- ✓STLや3MFのモデルを、3Dプリンター用にスライスしたいとき。
- ✓印刷に使う、スライス済みの.gcode.3mfまたは通常の.gcodeファイルが必要なとき。
- ✓OrcaSlicerでモデルを開き、自分でスライスしたいとき。
スキルのリンク
https://github.com/earthtojake/text-to-cad/blob/main/skills/gcode/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このSTLを、Prusa MK4向けにOrcaSlicerでスライスして、G-codeのファイルをください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、OrcaSlicerのプリセットを使います。そのとき、あなたがすでに印刷に使っているものを優先します。スライサーを実行しますが、ファイルをプリンターに送ることは決してありません。Bambu Labのプリンターの場合は、結果はBambu Connectを通ります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
G-code
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, the result is sent through Bambu Connect; 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.
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.
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"Write the complete presets:
python scripts/orca_presets.py --printer "Prusa MK4S 0.4 nozzle" \ --process "0.20mm SPEED @MK4S 0.4" --filament "Prusa Generic PLA @MK4S" \ --out presetsSlice. Give
--outputdiran absolute path:<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.3mfThis writes
plate_1.gcode, the plain G-code, andmodel.gcode.3mf, the sliced 3MF, into that folder. The command line reads.stl,.3mf,.objand.amf; export STEP to STL or 3MF first (for a text-to-cad model,cad export <id> part.3mf, orcad export part.step part.3mf). Override one setting with--<setting>=<value>, using the setting's key with hyphens for underscores, such as--layer-height=0.16.
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 --infoprints 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:
grep -E '^; (printer_model|nozzle_diameter|filament_type|nozzle_temperature|hot_plate_temp|bed_temperature) =|printing time' out/plate_1.gcodeConfirm they match the user's printer and material before anyone prints it.
Hand off
- A Bambu Lab printer: Bambu Connect, with the
.gcode.3mf. - Any other printer: the user prints the
.gcodefrom their printer's app, its web interface (PrusaLink, OctoPrint, Mainsail, Fluidd) or an SD card.
よくある質問
印刷をプリンターに送りますか?
いいえ。Bambu Lab以外のプリンターでは、使うためのG-codeファイルを渡すだけです。
どのプリンターに対応していますか?
OrcaSlicerに組み込みのプロファイルがある、ほとんどのFDMプリンターに対応しています。
プリンターの設定を勝手に作りますか?
いいえ。間違った値はプリンターを壊すおそれがあるため、設定を作り出すことは避けます。
詳細
作者による元の説明
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.
repo: earthtojake/text-to-cad
人気
- GitHubのスター
- 25k
- ランキング
- #10072
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
bambu-labs
25kエージェントが、Bambu ConnectまたはBambu Studioを通じて、スライス済みまたは未スライスの3Dモデルを、Bambu Labのプリンターに送れるよう支援します。
cad
25kエージェントが、Python の build123dスクリプトとして3Dのパーツやアセンブリをデザインし、STEPやSTLのファイルとして書き出し、寸法を確認できるよう支援します。
dfam-check
25kエージェントが、3Dメッシュファイルが十分に印刷できるかを確かめ、オーバーハング、壁の厚さ、サポートの必要性を報告できるよう支援します。
dfm
25kエージェントが、板金、CNC加工、射出成形のためにパーツをレビューし、それが作れるか、何を変えるべきかを確認できるよう支援します。