cli-anything-threemf

Detect, resize, and repair cylindrical holes in 3MF mesh files for 3D printing.

48.8k|4.5k|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-threemf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-threemf
Source: https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-threemf
Command: npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-threemf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Editing 3D printing files often requires adjusting hole diameters or fixing mesh defects, which normally demands manual work in CAD software. This Skill lets you inspect, modify, and repair 3MF mesh geometry directly from the command line with machine-readable output.

Core Features & Use Cases

  • Hole Detection and Resizing: Detect cylindrical holes via multi-plane cross-section analysis and resize them by radial vertex scaling while preserving mesh topology.
  • Mesh Repair and Comparison: Fix degenerate faces, duplicate vertices, and normals, and compare two 3MF files to spot differences.
  • Slicer Compatibility: Preserves BambuStudio and PrusaSlicer metadata when repacking modified files.
  • Use Case: You downloaded a 3D model whose mounting holes are 4.0mm but your screws are 4.2mm. Run the resize command targeting the detected holes to produce a corrected file ready for slicing.

Quick Start

Ask the agent to inspect the holes in your 3MF file and resize them to your target diameter, saving the result as a new file.

Frequently Asked Questions about cli-anything-threemf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resize holes in a 3MF file?

Run the resize command with the hole indices from the inspect output and a target diameter, for example: cli-anything-3mf resize model.3mf --hole 0 --diameter 4.2 -o output.3mf. The tool scales vertices radially while preserving mesh topology.

How to detect cylindrical holes in a 3D printing mesh?

Use the inspect command, which detects cylindrical holes through multi-plane cross-section analysis. It reports each hole's center, diameter, and a confidence score, with JSON output available via the --json flag.

Does this work with BambuStudio and PrusaSlicer 3MF files?

Yes, the tool preserves slicer metadata from BambuStudio and PrusaSlicer when repacking modified 3MF files. It works with any file conforming to the 3MF Core Specification.

Can I repair broken meshes in 3MF files?

Yes, the repair command fixes degenerate faces, duplicate vertices, and normal issues, writing the result to a new file. It is also useful for cleaning up meshes after hole modification.

How do I compare two 3MF files for differences?

Run the compare command with both file paths: cli-anything-3mf compare file1.3mf file2.3mf. It reports geometric differences between the two meshes, useful for verifying modifications.