cli-anything-3mf
What it does
This skill lets your agent check and fix 3D model files used for 3D printing, such as BambuStudio and PrusaSlicer files. It is for makers who want to adjust holes or repair a model before printing.
When to use it
- ✓When you want the round holes in a 3D printing file resized to a new diameter.
- ✓When a 3D model file has mesh problems and needs repair before printing.
- ✓When you want to compare two versions of a 3MF print file.
Skill link
https://github.com/HKUDS/CLI-Anything/blob/main/3MF/agent-harness/cli_anything/threemf/skills/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Find the round holes in my 3MF print file and make them 4.2 millimeters wide.”
5 new skills a week. 1 minute to read.
How it works
The skill uses a command-line tool to scan the model's geometry, find cylindrical holes, and adjust them. It keeps slicer settings in the file and writes the result to a new file you name.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
cli-anything-3mf
3MF mesh geometry editor for 3D printing files.
Installation
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=3MF/agent-harness
Commands
# Show mesh info (vertices, faces, bounding box, watertight status, volume)
cli-anything-3mf info <file.3mf>
# Detect cylindrical holes (center, diameter, confidence)
cli-anything-3mf inspect <file.3mf>
# Resize holes to target diameter
cli-anything-3mf resize <file.3mf> --hole 0 --hole 1 --diameter 4.2 -o output.3mf
# Fix mesh issues (degenerate faces, duplicate vertices, normals)
cli-anything-3mf repair <file.3mf> -o repaired.3mf
# Compare two 3MF files
cli-anything-3mf compare <file1.3mf> <file2.3mf>
JSON Output
All commands support --json for machine-readable output:
cli-anything-3mf --json inspect model.3mf
Key Features
- Detects cylindrical holes via multi-plane cross-section analysis
- Resizes holes by radial vertex scaling (preserves mesh topology)
- Preserves slicer metadata (BambuStudio, PrusaSlicer) during file repack
- Repairs degenerate faces and duplicate vertices after modification
- Works with any 3MF file conforming to the 3MF Core Specification
FAQ
Which slicer files does it support?
It works with 3MF files from BambuStudio and PrusaSlicer, and other files that follow the 3MF standard.
Does it change my original file?
The resize and repair commands write to an output file you name, so you can keep the original.
How does it find holes?
It checks cross-sections of the model to detect cylindrical holes and reports their center, diameter, and confidence.
Details
Original description by the author
3MF mesh geometry editor — detect and resize cylindrical holes, repair meshes, compare 3D printing files. Works with BambuStudio and PrusaSlicer 3MF files.
repo: HKUDS/CLI-Anything
Popularity
- GitHub stars
- 58k
- Ranking position
- #3179
- License
- Apache-2.0
- Updated
- 9/21/2026
Comments
- …
More skills from this repository
cli-anything-qgis
58kLets your agent open, edit, and export QGIS map projects from the terminal, including layers, features, print layouts, and processing tools.
cli-anything-adguardhome
58kLets your agent manage AdGuard Home, a network-wide ad blocker, including filters, DNS rewrites, clients, and query logs.
cli-anything-anygen
58kLets your agent generate slides, documents, websites, and diagrams from a written prompt using the AnyGen service.
cli-anything-audacity
58kLets your agent edit audio from the command line using Audacity, including managing audio projects and tracks.
Similar skills
gifgrep
394kLets your agent search GIF libraries, preview results, download a GIF, and pull out a still frame or a contact sheet of frames.
meme-maker
394kLets your agent pick a meme template, add your own captions, and create the meme as an SVG or PNG image.
ios-icon-gen
280kLets your agent generate icons for iOS apps. It uses Apple symbols or icons from other sources to create the correct files.