cli-anything-threemf — Claude Code skill: 3MF files
The cli-anything-threemf skill inspects and edits 3MF geometry, including cylindrical holes, mesh repairs, and file comparison for 3D printing workflows.
Apache-2.0 366 installs ★ 62,125 updated 2026-09-22
npx skills add HKUDS/CLI-Anything --skill cli-anything-threemf -a claude-codeWhat cli-anything-threemf does
The skill gives the agent the cli-anything-3mf command line tool for 3MF files. info reports vertices, faces, bounds, watertight status, and volume. inspect detects cylindrical holes and returns their centers, diameters, and confidence values. resize changes selected hole diameters, repair fixes mesh defects, and compare checks two 3MF files.
Hole resizing uses radial vertex scaling while keeping mesh topology intact. The repair command handles degenerate faces, duplicate vertices, and normals after edits. Repacking keeps BambuStudio and PrusaSlicer metadata, and every command can emit machine-readable output with --json.
The skill handles files that follow the 3MF Core Specification, so a file from another format cannot be processed.
What it helps with
- inspect a 3MF model’s geometry
- detect cylindrical holes and their diameters
- resize selected holes in a print file
- repair damaged mesh elements
- compare two 3MF files
Example prompts for the agent
- Use
cli-anything-3mf infoto inspectmodel.3mfand report its mesh details. - Find the holes in
model.3mf, set holes 0 and 1 to diameter4.2, and save the result asoutput.3mf. - Compare
file1.3mfwithfile2.3mfand return machine-readable JSON.
How to install cli-anything-threemf
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-threemf -a claude-code2Manually: put the files in place
~/.claude/skills/cli-anything-threemf/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cli-anything-threemf/
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-threemf -a codex2Manually: put the files in place
.agents/skills/cli-anything-threemf/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-threemf -a cursor2Manually: put the files in place
.cursor/skills/cli-anything-threemf/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install HKUDS/CLI-Anything skills/cli-anything-threemf2Manually: put the files in place
.github/skills/cli-anything-threemf/SKILL.md1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-threemf -a gemini-cli2Platform CLI
gemini skills install https://github.com/HKUDS/CLI-Anything --path skills/cli-anything-threemfManually: put the files in place
.devin/skills/cli-anything-threemf/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-threemf -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cli-anything-threemf
How do I install cli-anything-threemf in Claude Code?
Run npx skills add HKUDS/CLI-Anything --skill cli-anything-threemf -a claude-code, then check ~/.claude/skills/cli-anything-threemf/SKILL.md.
What does cli-anything-threemf do?
It lets an agent inspect 3MF meshes, detect and resize cylindrical holes, repair mesh problems, and compare files. Commands also support --json output.
Does it preserve BambuStudio and PrusaSlicer data?
Yes. Metadata from BambuStudio and PrusaSlicer is retained when the 3MF file is repacked.
Source text
SKILL.md · Apache-2.0
--- name: "cli-anything-threemf" description: "3MF mesh geometry editor — detect and resize cylindrical holes, repair meshes, compare 3D printing files. Works with BambuStudio and PrusaSlicer 3MF files." --- # cli-anything-3mf 3MF mesh geometry editor for 3D printing files. ## Installation ```bash pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=3MF/agent-harness ``` ## Commands ```bash # 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: ```bash 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
© HKUDS · Apache-2.0 · HKUDS/CLI-Anything