agentleFS
LeostrukaLeostruka/devin-bundle/skills/mesh-utils/SKILL.md

mesh-utils

Skill0 starsChanged 4 months agoMITView on GitHub

Use when the user asks to inspect, convert, clean, or validate mesh/3D scene files (OBJ, STL, GLB, FBX, USD) via trimesh, PyMeshLab, or pxr. Routes to extensions/mesh-utils/meshops.py. Lightweight stdlib CLI; deps are pip-installed only when needed.

  • Installs packages

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All output JSON; missing dependency -> {"ok": false, "hint": "pip install ..."} so the user can install explicitly.

    line 22
  2. Very specific:

    pxr (usd-core): read-only here; used to inspect USD scenes (prims, meshes, up-axis).

    line 42
  3. Distinctive:

    Never auto-install. Emit the hint, let the user run it.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Mesh Utilities

extensions/mesh-utils/meshops.py is a small JSON-on-stdout CLI that dispatches to whichever of trimesh, PyMeshLab, or OpenUSD (pxr) is installed. Use it for quick inspection/conversion/cleanup of assets produced by ai3d-gen, external files, or Blender exports.

Commands

python extensions/mesh-utils/meshops.py doctor          # which deps are present
python extensions/mesh-utils/meshops.py info file.glb   # verts, faces, bounds, watertight
python extensions/mesh-utils/meshops.py convert in.obj out.glb
python extensions/mesh-utils/meshops.py clean in.ply out_clean.ply

All output JSON; missing dependency -> {"ok": false, "hint": "pip install ..."} so the user can install explicitly.

Backend selection

Format / taskEngine chosen
.usd/.usda/.usdc/.usdzpxr (Usd.Stage introspection)
OBJ/STL/GLB/PLY/FBX (info/convert/clean)trimesh if present, else pymeshlab

pxr doesn't do mesh repair; for USD -> repair, convert via trimesh/pymeshlab first.

When to use what

  • trimesh: pure-Python, covers 90% of ops (load/export, basic cleaning, bounds, watertight check). pip install trimesh.
  • pymeshlab: richer repair filters (remeshing, decimation, self-intersection). pip install pymeshlab. Chosen automatically if it's the only backend.
  • pxr (usd-core): read-only here; used to inspect USD scenes (prims, meshes, up-axis). pip install usd-core.
  • open3d: probed by doctor but not yet wired; point-cloud ops can be added later.

Boundaries

  • Never auto-install. Emit the hint, let the user run it.
  • clean supports trimesh/pymeshlab only; USD stages -> convert first.
  • For heavy geometry work (boolean, sculpt, unwrap) use operate-blender instead; mesh-utils is the fast path.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.