gear-diagnosis

gear-diagnosis is a skill for Claude Code from LGDiMaggio/predictive-maintenance-mcp. It costs 83 tokens per session (1,314 once invoked), scanned A, original, MIT.

A workflow for diagnosing gear and gearbox faults from vibration data, including gear-mesh and sideband patterns. Gear mesh is the repeated contact between gear teeth; sidebands are nearby frequency patterns that can indicate a fault.

In plain words
What is it for?
Use it for gear-fault diagnosis, gearbox analysis, gear-mesh-frequency checks, tooth-damage detection, and sideband analysis.
Why use it?
It helps connect vibration patterns with problems such as damaged gear teeth or other gear defects.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the predictive-maintenance plugin — 9 skills, 3 commands, 2 agents shipped together

Good fit Use it for gear-fault diagnosis, gearbox analysis, gear-mesh-frequency checks, tooth-damage detection, and sideband analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lgdimaggio/predictive-maintenance-mcp/gear-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/predictive-maintenance-mcp --skill gear-diagnosis
Clone the repo
git clone --depth 1 https://github.com/LGDiMaggio/predictive-maintenance-mcp

Made for: Claude Code.

Or install predictive-maintenance, the plugin that ships this one along with the rest of its 9 skills, 3 commands, 2 agents.

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 gear-diagnosis

README.md
[![agentmods](https://agentmods.dev/badge/skills/lgdimaggio/predictive-maintenance-mcp/gear-diagnosis/github.svg)](https://agentmods.dev/skills/lgdimaggio/predictive-maintenance-mcp/gear-diagnosis)
Your own site
<a href="https://agentmods.dev/skills/lgdimaggio/predictive-maintenance-mcp/gear-diagnosis"><img src="https://agentmods.dev/badge/skills/lgdimaggio/predictive-maintenance-mcp/gear-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 gear-diagnosis

Your own site · 80×15
<a href="https://agentmods.dev/skills/lgdimaggio/predictive-maintenance-mcp/gear-diagnosis"><img src="https://agentmods.dev/badge/skills/lgdimaggio/predictive-maintenance-mcp/gear-diagnosis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,314 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.00083 $0.01314
Opus 5.5 $0.00033 $0.00526
Sonnet 5.5 $0.00017 $0.00263
Haiku 4.5 $0.00008 $0.00131

Measured 18d ago against content hash b970138d42aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gear-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 18d ago.

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.

plugin/skills/gear-diagnosis/SKILL.md · 137 lines

How it starts

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

Gear Fault Diagnosis

Detect gear faults through spectral analysis of vibration signals, focusing on gear mesh frequency (GMF) harmonics, sidebands, and modulation patterns. This workflow supports expert judgment — it never replaces it.

Prerequisite: The predictive-maintenance-mcp MCP server must be connected.

Background

Gear faults produce characteristic vibration patterns:

  • Gear Mesh Frequency (GMF) = number_of_teeth x shaft_RPM / 60
  • Healthy gears show GMF and low-level harmonics
  • Faulty gears show increased GMF harmonics, sidebands spaced at the shaft frequency, and broadband noise

Workflow

Step 1 — Signal Selection and Parameters

Load the signal with load_signal(filepath="gearbox_run1.csv", signal_unit="g") or pick a loaded one from list_signals(scope="memory"). Verify sampling rate and metadata with get_signal_info(signal_id="<id>"). For raw binary files (.bin/.raw/.dat), also declare sample_format and sampling_rate (or provide a companion <stem>_metadata.json) — see the signal-management skill.

Gather from the user (do NOT guess):

  • Shaft RPM (or shaft frequency in Hz)
  • Number of teeth on the gear of interest
  • Gear ratio (if analyzing a gear pair)

Calculate:

  • GMF = teeth x RPM / 60
  • Shaft frequency = RPM / 60

Step 2 — Statistical Screening

Call analyze_statistics(signal_id="<id>").

Gear fault indicators (screening only, never diagnostic alone):

  • Kurtosis > 3: impulsive content (possible tooth damage)
  • Crest Factor > 5: localized damage
  • RMS increase: overall vibration energy rise

Step 3 — FFT Analysis

Call analyze_fft(signal_id="<id>").

Inspect the spectrum for:

Pattern Indicates
GMF with low harmonics, no sidebands Normal gear operation
Increased GMF harmonics (2x, 3x, 4x GMF) Gear wear or misalignment
Sidebands around GMF at shaft frequency spacing Localized tooth damage
Broadband noise increase Advanced wear or pitting
Ghost frequencies (non-harmonic peaks) Manufacturing defects

Read the full file on GitHub · 137 lines

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. 18d ago Changed · +8 lines · +5 tokens per session b970138d42aa
  2. 3mo ago First seen · 129 lines · 78 tokens per session scan A cc894ab2d2b6

Subscribe to this mod's changes

gear-diagnosis is a skill published in the GitHub repository LGDiMaggio/predictive-maintenance-mcp (122 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 1,314 once invoked, about $0.0003 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-30.

Related

gear-diagnosis compared with skills from other repositories

gear-diagnosis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gear-diagnosisLGDiMaggio/predictive-maintenance-mcpSkill122yesterdayMITA83Claude Code
offensive-wifiSnailSploit/Claude-RedSkill12k15d agoMITA183Claude Code, Codex
offensive-lorawan-sub-ghzSnailSploit/Claude-RedSkill12k15d agoMITA163Claude Code, Codex
offensive-wifi-reconSnailSploit/Claude-RedSkill12k15d agoMITA130Claude Code, Codex
offensive-zigbee-thread-matterSnailSploit/Claude-RedSkill12k15d agoMITA126Claude Code, Codex
offensive-z-waveSnailSploit/Claude-RedSkill12k15d agoMITA113Claude Code, Codex
offensive-iotSnailSploit/Claude-RedSkill12k15d agoMITB196Claude Code, Codex