Skip to content
Skillpedia
Images & icons58k · #3179

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.md

Copy 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

Use this skill to help me: https://github.com/HKUDS/CLI-Anything/blob/main/3MF/agent-harness/cli_anything/threemf/skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills