πΊπΈ English Β· π§π· PortuguΓͺs
Ask for a part. Your agent models it in Fusion or Blender, validates it, exports a multicolor .3mf, slices it and leaves it ready in Bambu Studio.
A skill for Claude, Codex, Gemini CLI and Antigravity that takes an idea from the chat to the print bed, with you approving every step that matters.
How it works β’ Demo β’ Installation β’ Usage β’ Design decisions β’ Limitations
This project started from a simple problem: I bought a 3D printer without knowing how to model in fine detail. I only had a basic idea, and the bottleneck was never the machine, it was modeling know-how.
The answer was to turn the process into a skill: a fixed six-step sequence that goes from a plain-language request to a sliced project in Bambu Studio. The agent handles the repetitive, technical part. The decisions that matter stay with you: you approve the shape before export and you confirm before printing.
Note
Constructed geometry (plates, signs, keychains, magnets, vases, boxes, brackets, gears, threaded or snap-fit parts) goes to Fusion. Stylized organic shapes (low-poly animals and figures) go to Blender. Realism is out of scope (see Limitations).
The skill itself speaks Portuguese (its instructions and messages are in pt-BR), but it triggers on requests in English as well.
flowchart LR
A["π¬ You ask for a part"] --> B["π§© 1. Model in Fusion or Blender"]
B --> C["β
Validate and show"]
C --> D{"π€ 2. Approved?"}
D -- "asks for changes" --> B
D -- "OK" --> E["π¦ 3. Export .3mf"]
E --> F["πͺ 4. Slice by script"]
F --> G["π 5. Open and check"]
G --> H["β±οΈ 6. Time and grams"]
H --> I["π€ You click Print plate"]
| # | Step | What happens |
|---|---|---|
| 1 | π§© Model, validate and show | The agent builds a parametric design in Fusion, by script. Each color is a separate body (slotN_description). An automatic validation runs and the part stays open in Fusion for you to rotate and inspect. |
| 2 | π€ Wait for the OK | Mandatory stop. If you ask for changes, the agent edits the parameters in the same document, validates again and saves a new version. |
| 3 | π¦ Export the .3mf |
Only after the OK. A single .3mf with one object per AMS slot, 0.12 mm layers. No STL, no ZIP, no folder of loose files. |
| 4 | πͺ Slice by script | scripts/fatiar.py uses the Bambu Studio CLI, with no clicks and no dialogs, and checks layer height, filaments and dimensions. Works in any agent with a terminal. |
| 5 | π Open and check | The sliced file opens in Bambu Studio already colored, for you to check. |
| 6 | β±οΈ Ready to print | Shows the estimated time and grams per filament. The skill never prints: you are the one who clicks Print plate. |
- Every body is solid and has the
slotN_prefix - Heights are multiples of the layer height (0.12 mm)
- The whole part fits in 250 Γ 250 Γ 250 mm (Bambu Lab A1)
- At most 4 color slots (AMS Lite)
- No interference between bodies and no default Fusion color
- Minimum thicknesses and overhangs checked against the A1 FDM rules
For the most common requests the agent doesn't start from scratch: modelos/ has five scripts already run and validated in Fusion (keychain, coaster, sign with text, vase, box with lid). It changes only the parameter block at the top and runs the file.
Note
Screenshots and a GIF of the full flow are on the way. Meanwhile, the flowchart in How it works shows each step. The list of captures still missing is in docs/images/CAPTURAS.md.
| Requirement | Detail |
|---|---|
| π€ Agent | Claude, Codex, Gemini CLI or Antigravity |
| π§© Autodesk Fusion | For exact-dimension parts. Installed, with the local MCP server enabled under Preferences β General β API β Fusion MCP Server (Apply, then OK) |
| π Blender | Optional, for stylized organic shapes. 5.1 or newer; runs from the terminal, MCP optional |
| π¨οΈ Printer | Bambu Lab A1 with AMS Lite (up to 4 colors) |
| π₯οΈ Bambu Studio | Installed (tested on 02.08.03.66) |
| π Python | 3.10 or newer, to slice through the CLI. Without it, use the click-based plan B |
| πͺ OS | Windows (paths and the Bambu Studio flow were tested on it) |
| π±οΈ Computer control | Optional, only for plan B. Never clicks Print plate |
Important
What changes between agents is in referencias/agentes.md.
Use only one channel per agent. Installing the plugin and copying the folder creates duplicate skills.
claude plugin marketplace add Grolla05/Generate-bambuclaude plugin install generate-bambu@grolla05-pluginsIn the desktop app, add Grolla05/Generate-bambu as a marketplace from the plugins screen. The direct call is /generate-bambu:generate-bambu.
The plugin does not ship the Fusion MCP: use the app's Autodesk Fusion extension, or run instalar.ps1 -McpClaude to register it in Claude Code.
codex plugin marketplace add Grolla05/Generate-bambucodex plugin add generate-bambu@grolla05-pluginsIn the app, the same marketplace shows up on the plugins screen. The plugin already ships the Fusion MCP.
gemini extensions install https://github.com/Grolla05/Generate-bambuThe extension already ships the Fusion MCP. Gemini CLI stopped serving individual accounts in June 2026: without an API key or an enterprise account, use Antigravity.
git clone https://github.com/Grolla05/Generate-bambuagy plugin install ./Generate-bambuThe plugin already ships the Fusion MCP.
Without a plugin, instalar.ps1 detects your agents, copies the skill into each one's folder and writes the MCP configuration. It skips any agent that already has the plugin or extension, shows the plan and asks for confirmation.
git clone https://github.com/Grolla05/Generate-bambupowershell -NoProfile -ExecutionPolicy Bypass -File .\Generate-bambu\instalar.ps1 -Simular| Option | What it does |
|---|---|
-Simular |
Only shows the plan (dry run) |
-Agentes codex,antigravity |
Limits to the listed agents: claude, codex, gemini, antigravity, agy |
-Sim |
Applies without asking |
-Desinstalar |
Removes only what the script installed |
-McpClaude |
Registers the Fusion MCP in Claude Code |
Note
The script backs up every file it changes (.bak-<date>), next to the original. These files contain tokens: don't share them. A file with comments or invalid JSON is left untouched, and the script asks you to add the MCP by hand. Close the Codex app before running it.
claude plugin details generate-bambucodex plugin listgemini extensions listagy plugin list --jsonIf you have version 1.0.0 installed, the same commands bring in the new structure.
claude plugin marketplace update grolla05-pluginsclaude plugin update generate-bambu@grolla05-pluginscodex plugin marketplace upgrade grolla05-pluginscodex plugin add generate-bambu@grolla05-pluginsgemini extensions update generate-bambuIn Antigravity, update the clone and run agy plugin install again. With the installer, update the clone and run the script again.
With the skill installed and Fusion open, just ask. It triggers on its own for any request to create, draw or model a part for 3D printing, in Portuguese or English.
Make a 60 x 30 mm rectangular keychain with the name "Felipe" raised,
blue base and white letters.
I need a round 90 mm coaster with a two-color raised crest.
Model an 80 mm tall vase with a 2 mm wall, in a single color.
Create a 70 x 50 mm party favor with the date "12/10" and a gold frame.
- The agent confirms what it is going to model and how many colors the part has.
- The part appears open in Fusion, with the final dimensions, the list of slots (color, height, layers) and any layer adjustments made.
- It asks whether you approve. Ask for changes as many times as you want.
- With the OK, it exports, slices and shows time and grams. Printing is up to you, in Bambu Studio.
- It asks "can I send it to print?" and waits for your answer.
| Decision | Why |
|---|---|
| π§© Modeling only in Fusion (or Blender) | No SVG, code-generated mesh or OpenSCAD. The part has to be truly editable: changing a dimension means editing a parameter, not redrawing. |
| π Heights in multiples of the layer | The slicer can't make 0.8 mm with 0.12 mm layers. The skill rounds (0.8 mm becomes 0.84 mm) and reports every adjustment, so you approve the part that will actually come out. |
| π¨ One body per color, one object per slot | The color is painted on the .3mf mesh, and each AMS slot becomes one object. Bambu Studio opens the project with the right colors. |
| π Two mandatory stops | Approve the shape (step 2) and authorize printing (step 6). Plastic and machine hours are only spent with your confirmation. |
| ποΈ Nothing "from memory" | If the agent talks about what is on screen in Fusion or Bambu Studio, it captured the screen and read it, or you told it. If it couldn't, it says so. |
| π One repository, many agents | The skill lives in skills/ and each agent has its own manifest. Tests check that name, version and MCP URL match across all of them. |
| π§ Capabilities, not tools | SKILL.md describes the action; referencias/agentes.md translates it into each agent's tool. |
| π Unit check | Dimensions in Bambu Studio must match Fusion. A part 1000Γ bigger or smaller means a unit error, and the fix is to redo the export, never to scale in the slicer. |
| βοΈ Third-party designs stay out | Characters, brands, cars and logos belong to other people. The skill offers an original design instead. |
| π§ͺ Stops are evaluated per agent | evals/ has standard requests and a scoring rubric to compare how each agent respects the stops, where models diverge the most. |
Generate-bambu/
βββ .agents/plugins/
β βββ marketplace.json # Codex: catalog
βββ .antigravity-plugin/
β βββ plugin.json # Antigravity: manifest
βββ .claude-plugin/
β βββ marketplace.json # Claude: catalog
β βββ plugin.json # Claude: manifest
βββ .codex-plugin/
β βββ plugin.json # Codex: manifest
βββ skills/
β βββ generate-bambu/
β βββ SKILL.md # the six-step flow
β βββ config.example.json # template for the local configuration
β βββ agents/
β β βββ openai.yaml # Codex: MCP dependency and invocation
β βββ referencias/
β β βββ agentes.md # capabilities, installation and MCP per agent
β β βββ fusion-api.md # tested recipes for scripting, validation and export
β β βββ blender-api.md # tested recipes for organic shapes
β β βββ bambu-cliques.md # click-based plan B
β β βββ fdm-a1.md # A1 thicknesses, clearances, orientation and overhangs
β β βββ limites.md # triage of what fits (or not) the method
β βββ modelos/ # base parts tested in Fusion, parameters at the top
β βββ helpers/
β β βββ agrupar_3mf.py # groups the 3MF into one object per slot
β β βββ blender_3mf.py # runs inside Blender: validates and exports
β βββ scripts/
β βββ config.py # local configuration and access code
β βββ diagnostico.py # what is ready on this machine
β βββ detectar_modeladores.py # which modeler to use
β βββ fatiar.py # slices through the Bambu Studio CLI
β βββ projeto_bambu.py # builds the native project
β βββ perfis.py # resolves the installed profiles
β βββ bambu_3mf.py # reads time and grams from the sliced file
β βββ registro.py # local log of every sliced part
β βββ status.py # printer status, read-only
βββ .github/
β βββ workflows/
β βββ ci.yml # CI: lint, skill validation, tests and installer
βββ evals/ # cases and rubric to compare agents
βββ tests/ # tests for the helper, docs, manifests and installer
βββ docs/
β βββ images/ # screenshots and GIFs for the demo
βββ gemini-extension.json # Gemini CLI: manifest
βββ instalar.ps1 # Windows installer
βββ mcp.json # Fusion MCP for Codex and Antigravity
βββ pyproject.toml # pytest and ruff configuration
βββ requirements-dev.txt # pytest and ruff
βββ LICENSE
βββ README.md # English
βββ README.pt-BR.md # Portuguese
The configuration lives in ~/.generate-bambu/config.json, outside the skill, because updating the plugin replaces its folder. The template is config.example.json:
python skills/generate-bambu/scripts/config.py definir pasta_saida "D:/Print3D"The printer access code is only needed for status.py. Run config.py codigo yourself, in the terminal, so it never goes through the chat.
| What | Default | Note |
|---|---|---|
Output folder for .3mf files |
asked on first use | Key pasta_saida |
| Bambu Studio profiles | A1, 0.12mm Fine, PLA Basic |
Section bambu_studio |
| Modeler | chosen per part | modelador.preferido breaks ties |
| Fusion project | generate-bambu |
Key fusion.projeto; created automatically if missing |
| Printer | A1 | config.py maquina "A1 mini" or "P1S" writes limits and profiles together; those two were checked only up to slicing |
| Layer height | 0.12 mm |
camada parameter at the start of the design |
| Profile | none | ~/.generate-bambu/perfil.md, with your own context. Template in perfil.example.md |
- Constructed geometry only. Fusion does booleans, fillets, chamfers, shells, threads and text. Faces, bodies and realistic animals don't fit the method.
- Up to 4 colors, from the 4 AMS Lite slots. Above 2 colors, filament purge cost goes up.
- 250 Γ 250 Γ 250 mm volume, the Bambu Lab A1 limit.
- The print profile doesn't travel inside the
.3mf. The 0.12 mm layer height is set in Bambu Studio for each project. - Screen control is optional and fragile. It only comes in as plan B, if script slicing fails. If a click has no effect, the skill stops and asks instead of retrying blindly. It never clicks Print plate.
- A multicolor part that covers almost the whole bed on both axes is refused: there is no room for the purge tower.
- Fusion license. With the Education license (non-commercial use), parts are fine for personal use and gifts. To sell what you print, review your Fusion license first.
On every push and pull request, GitHub Actions (ci.yml) runs:
| Job | What it checks |
|---|---|
| Lint | ruff check on all Python code and agentskills validate on the skill |
| Tests | compileall and pytest on Python 3.10, 3.11, 3.12 and 3.13 |
| Installer | instalar.ps1 on Windows PowerShell 5.1, against a fake user folder |
Tests cover agrupar_3mf.py with synthetic 3MFs (grouping by slot, volumes, closed meshes, colors, transforms and rejection of invalid input), the syntax of the Python snippets in the docs, the shape of the base parts, the evaluation cases, consistency of each agent's manifest, and the installer.
To run locally:
pip install -r requirements-dev.txt
ruff check .
pytest- Calibration plate to measure the machine's real process clearance
- Support for other Bambu Lab printers (A1 mini and P1S, checked only up to slicing)
- Print profile saved with the project
- Verify script export against real Fusion
- Library of base parts (keychain, coaster, sign, vase, box) as starting points
- Evaluations comparing how each agent respects the mandatory stops (
evals/) - English version of the documentation
- Demo screenshots and GIF
Ideas, fixes and new part types are welcome. Open an issue describing the case or send a pull request.
Distributed under the MIT license. See LICENSE.
Felipe Grolla, Control and Automation Engineering student at PUC-Campinas.
Made with π§© Fusion, π¨οΈ Bambu Lab and π€ Claude