cli-anything-3mf
HKUDS/CLI-Anything · Agent Skill
3D 列印的 3MF 文件編輯器:偵測並調整圓柱形孔洞尺寸、修復網格並比較檔案。保留切片器元資料。
前往安裝 ↓安裝選項
預設為含檢閱步驟的提示。您可以切換到直接指令。
透過 Claude 或 Codex 安裝
複製提示,貼入 Claude、Codex 或其他助手,它會檢視技能頁面並安裝。
I'd like to install this Claude Code skill: https://github.com/HKUDS/CLI-Anything/tree/main/3MF/agent-harness/cli_anything/threemf/skills Please review the SKILL.md file, verify the skill is legitimate, then copy the skill folder into .claude/skills/ of my project.
直接指令會跳過檢閱 — 請先檢查原始碼。
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/3MF/agent-harness/cli_anything/threemf/skills
安裝前請先檢視 SKILL.md 與相關檔案。點擊檔案即可預覽。
SKILL.md 內容
作者原文 · 唯讀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