vibration-fault-diagnosis

vibration-fault-diagnosis is a skill for Claude Code, Codex from LGDiMaggio/claude-stwinbox-diagnostics. It costs 117 tokens per session (2,126 once invoked), scanned A, original, Apache-2.0.

A workflow for diagnosing rotating-machine faults from vibration data, either from the STWIN.box sensor board or from files. It uses frequency and envelope measurements to investigate issues such as imbalance, misalignment, bearing damage, and looseness.

In plain words
What is it for?
Use it to collect or load signals, calculate FFT and power spectra, find frequency peaks, analyse bearing-related patterns, and calculate bearing fault frequencies.
Why use it?
It turns raw vibration recordings into frequency-based evidence that can help distinguish common mechanical problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to collect or load signals, calculate FFT and power spectra, find frequency peaks, analyse bearing-related patterns, and calculate bearing fault frequencies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lgdimaggio/claude-stwinbox-diagnostics/vibration-fault-diagnosis
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.

Any agent
npx skills add LGDiMaggio/claude-stwinbox-diagnostics --skill vibration-fault-diagnosis
Clone the repo
git clone --depth 1 https://github.com/LGDiMaggio/claude-stwinbox-diagnostics

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vibration-fault-diagnosis

README.md
[![agentmods](https://agentmods.dev/badge/skills/lgdimaggio/claude-stwinbox-diagnostics/vibration-fault-diagnosis/github.svg)](https://agentmods.dev/skills/lgdimaggio/claude-stwinbox-diagnostics/vibration-fault-diagnosis)
Your own site
<a href="https://agentmods.dev/skills/lgdimaggio/claude-stwinbox-diagnostics/vibration-fault-diagnosis"><img src="https://agentmods.dev/badge/skills/lgdimaggio/claude-stwinbox-diagnostics/vibration-fault-diagnosis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vibration-fault-diagnosis

Your own site · 80×15
<a href="https://agentmods.dev/skills/lgdimaggio/claude-stwinbox-diagnostics/vibration-fault-diagnosis"><img src="https://agentmods.dev/badge/skills/lgdimaggio/claude-stwinbox-diagnostics/vibration-fault-diagnosis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,126 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.1 $0.00117 $0.02126
Opus 5.5 $0.00047 $0.00850
Sonnet 5.5 $0.00023 $0.00425
Haiku 4.5 $0.00012 $0.00213

Measured 2mo ago against content hash 94bab9c18a01, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vibration-fault-diagnosis 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/classify_fault.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.

skills/vibration-fault-diagnosis/SKILL.md · 194 lines

How it starts

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

Vibration Fault Diagnosis

You are a vibration analysis expert helping the user diagnose faults in rotating machinery based on vibration data from the STWIN.box or loaded from files.

Available MCP Tools

Sensor Server (stwinbox-sensor-mcp)

  • datalog2_connect — Connect to STWIN.box via USB-HID
  • datalog2_start_acquisition(duration_s=N) — Acquire for exactly N seconds (server-side timer)
  • datalog2_stop_acquisition — Stop manual-mode acquisition
  • datalog2_get_device_info — Device and firmware info
  • datalog2_list_sensors — List active sensors with ODR/FS
  • datalog2_configure_sensor — Enable/disable sensors, set ODR/FS

Analysis Server (vibration-analysis-mcp)

  • load_signal — Load data from CSV/DAT file or DATALOG2 acquisition folder
  • compute_fft_spectrum — FFT magnitude spectrum
  • find_spectral_peaks — Detect dominant frequency peaks
  • compute_power_spectral_density — PSD via Welch method
  • compute_envelope_spectrum — Hilbert envelope for bearing analysis
  • check_bearing_fault_peak — Check for a specific bearing fault frequency in spectrum
  • calculate_bearing_frequencies — Compute BPFO/BPFI/BSF/FTF from bearing geometry
  • lookup_bearing_and_compute — Lookup bearing by designation + compute frequencies
  • assess_vibration_severity — ISO 10816 severity classification
  • diagnose_vibration — Full automated diagnosis pipeline (RPM is optional)

Diagnostic Methodology

Always follow this structured diagnostic workflow:

Step 1 — Gather Context

Ask or determine:

  • Machine type (pump, motor, fan, compressor, etc.)
  • Shaft speed in RPM — ask the operator; do not guess values
  • Bearing type if known (designation like 6205, 6306, etc.)
  • Symptom description (noise, temperature, vibration increase)
  • Machine group for ISO 10816 (group1–group4)

Step 2 — Acquire or Load Data

Option A — Live acquisition from STWIN.box (preferred):

  1. datalog2_connect to the board
  2. datalog2_start_acquisition(duration_s=5) — timed mode prevents overshoot
  3. load_signal(file_path="<acquisition_folder>", sensor_name="iis3dwb_acc")
    • The acquisition folder path is returned by the start tool
    • The SDK decodes .dat binary format automatically
    • Sample rate is auto-detected from device config

Read the full file on GitHub · 194 lines

Files

What ships with it

3 files 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. 2mo ago First seen · 194 lines · 117 tokens per session scan A 94bab9c18a01

Subscribe to this mod's changes

vibration-fault-diagnosis is a skill published in the GitHub repository LGDiMaggio/claude-stwinbox-diagnostics (10 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 117 tokens to every session and 2,126 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

vibration-fault-diagnosis compared with skills from other repositories

vibration-fault-diagnosis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vibration-fault-diagnosisLGDiMaggio/claude-stwinbox-diagnosticsSkill107mo agoApache-2.0A117Claude Code, Codex
bearing-diagnosisLGDiMaggio/predictive-maintenance-mcpSkill109yesterdayMITA93Claude Code
prognosticsLGDiMaggio/predictive-maintenance-mcpSkill109yesterdayMITA154Claude Code
signal-managementLGDiMaggio/predictive-maintenance-mcpSkill109yesterdayMITA91Claude Code
multi-gmsl-3d-reconstructionSeeed-Projects/Seeed-Jetson-DevelopToolSkill56yesterdayMITB71Claude Code, Codex
ruview-applicationsruvnet/RuViewSkill103kyesterdayMITA79Claude Code
lab-hardware-cadK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA108Claude Code