mesh-analysis

A tool for examining STL files, a common format for 3D models used in printing and scanning. It reads the mesh, finds connected pieces, calculates volume, and extracts material information stored in the file.

In plain words
What is it for?
Use it to measure the volume of an STL model, find its largest connected part, filter scan debris, or read material IDs from the file.
Why use it?
It helps separate the main object from stray fragments in noisy 3D scans and avoids treating debris as part of the model. It provides the measurements and identifiers needed for further calculations.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/benchflow-ai/benchflow/mesh-analysis
Any agent
npx skills add benchflow-ai/benchflow --skill mesh-analysis
Clone the repo
git clone --depth 1 https://github.com/benchflow-ai/benchflow

Made for: Claude Code, Codex.

Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 520 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.00520
Opus 5 $0.00022 $0.00260
Sonnet 5 $0.00009 $0.00104
Haiku 4.5 $0.00004 $0.00052

Measured 3d ago against content hash b0c908a5e74b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mesh-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/mesh_tool.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to mesh-analysis — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

docs/examples/task-md/real-skillsbench/3d-scan-calc/environment/skills/mesh-analysis/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mesh Analysis

This skill provides the MeshAnalyzer tool for robustly processing 3D STL files. It handles Binary STL parsing and connected component analysis.

When to Use

Use this skill for:

  1. Geometric Analysis: Calculating volume of complex or noisy meshes.
  2. Noise Filtering: Isolating the largest connected component from "dirty" scan data.
  3. Attribute Extraction: Extracting metadata (e.g. material IDs) stored in the STL file attribute bytes.

Usage

The tool is provided as a Python module in the scripts/ directory.

Basic Workflow

import sys
# Add skill path to sys.path
sys.path.append('/root/.claude/skills/mesh-analysis/scripts')

from mesh_tool import MeshAnalyzer

# Initialize with file path
analyzer = MeshAnalyzer('/path/to/your/file.stl')

# Analyze specific components
# Automatically identifies the largest component (main part)
report = analyzer.analyze_largest_component()

volume = report['main_part_volume']
mat_id = report['main_part_material_id']

print(f"Volume: {volume}")
print(f"Material ID: {mat_id}")

Calculating Mass

The tool provides the Volume and Material ID. To calculate Mass:

  1. Read the Material ID from the analysis report.
  2. Consult your provided material reference data (e.g. density tables) to find the density.
  3. Calculate: Mass = Volume * Density.

Critical Note on Units:

  • The Volume returned is in the same units as the STL file's coordinates (cubed).
  • Do not assume millimeters or inches. Check your task instructions for the coordinate system units (e.g., if coordinates are in cm, volume is in cm³).
  • If your density table uses the same unit (e.g., g/cm³ and cm³), multiply directly. No unit conversion is needed.

Critical Notes

  • Binary Support: The tool automatically handles Binary STL files.
  • Attribute extraction: The tool extracts the 2-byte attribute stored in the binary STL format (often used for color or material ID).

Read the full file on GitHub · 60 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 60 lines · 43 tokens per session scan A b0c908a5e74b

Subscribe to this mod's changes

mesh-analysis is a skill published in the GitHub repository benchflow-ai/benchflow (335 stars, last pushed 3d ago), licensed Apache-2.0. It adds 43 tokens to every session and 520 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to mesh-analysis, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

pubchem-database

Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.

benchflow-ai/skillsbench · 49 tokens

rdkit

Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom…

benchflow-ai/skillsbench · 80 tokens

Multimodal Fusion for Speaker Diarization

Combine visual features (face detection, lip movement analysis) with audio features to improve speaker diarization accuracy in video files. Use OpenCV for face detection and lip movement tracking, then fuse visual cues with audio-based speaker embeddings. Essential when processing video files with multiple visible…

benchflow-ai/skillsbench · 74 tokens

routing-subtour-elimination

Subtour-elimination methods for TSP, VRP, pickup/dropoff routing, and routing MIPs with binary arc variables. Use when route-continuity constraints may permit disconnected cycles and the model needs MTZ constraints, flow-based connectivity constraints, DFJ subset cuts, or lazy/iterative subtour cuts.

benchflow-ai/skillsbench · 70 tokens

scip-opt

SCIP optimization with PySCIPOpt. Use when facing an optimization problem with an objective, hard constraints, soft penalties, integer decisions, routing, assignment, scheduling, allocation, packing, capacity, inventory, or service-level rules. Prefer modeling and solving the problem with PySCIPOpt when it is…

benchflow-ai/skillsbench · 67 tokens

Voice Activity Detection (VAD)

Detect speech segments in audio using VAD tools like Silero VAD, SpeechBrain VAD, or WebRTC VAD. Use when preprocessing audio for speaker diarization, filtering silence, or segmenting audio into speech chunks. Choose Silero VAD for short segments, SpeechBrain VAD for general purpose, or WebRTC VAD for lightweight…

benchflow-ai/skillsbench · 79 tokens