cli-anything-3mf

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-3mf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-3mf
Source: https://github.com/HKUDS/CLI-Anything/tree/main/3MF/agent-harness/cli_anything/threemf/skills
Command: npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-3mf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Editing 3D printing files often requires modifying mesh geometry—such as resizing holes for screws or fixing mesh defects—without access to the original CAD model. This Skill lets you inspect, modify, and repair 3MF files directly from the command line while preserving slicer metadata.

Core Features & Use Cases

  • Hole Detection & Resizing: Detect cylindrical holes via multi-plane cross-section analysis and resize them to a target diameter using radial vertex scaling that preserves mesh topology.
  • Mesh Repair: Fix degenerate faces, duplicate vertices, and normal issues after modification.
  • File Comparison & Inspection: Show mesh info (vertices, faces, bounding box, watertight status, volume) and compare two 3MF files.
  • Use Case: You downloaded a 3D model whose mounting holes are 3.8mm but your screws need 4.2mm. Run the resize command to enlarge the holes and repack the file while keeping BambuStudio or PrusaSlicer metadata intact.

Quick Start

Ask the agent to inspect the holes in your 3MF file and resize hole 0 to a 4.2mm diameter, saving the result to a new output file.

Frequently Asked Questions about cli-anything-3mf

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

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

Use the resize command with the hole indices and target diameter, for example: cli-anything-3mf resize model.3mf --hole 0 --diameter 4.2 -o output.3mf. It scales vertices radially around the detected hole axis while preserving mesh topology.

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

Run the inspect command on your 3MF file to detect cylindrical holes using multi-plane cross-section analysis. It reports each hole's center, diameter, and a confidence score, with optional JSON output for scripting.

Does this work with BambuStudio and PrusaSlicer 3MF files?

Yes, it works with BambuStudio and PrusaSlicer 3MF files and preserves their slicer metadata during file repacking. It supports any 3MF file conforming to the 3MF Core Specification.

Can I get machine-readable output from 3MF mesh inspection?

Yes, all commands support a --json flag that returns machine-readable output. For example, cli-anything-3mf --json inspect model.3mf returns structured data suitable for agent pipelines or scripts.

What mesh problems can be repaired in a 3MF file?

The repair command fixes degenerate faces, duplicate vertices, and normal issues that can appear after geometry modification. It writes the repaired mesh to a new output file without altering the original.