/predictive-maintenance:bearing-diagnosisfrom predictive-maintenance
Guides bearing fault diagnosis using vibration analysis and the predictive-maintenance-mcp server. Follows ISO 13374 workflow from signal discovery through spectral analysis.
Ships in predictive-maintenance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Evidence-based bearing fault detection using vibration signals. Orchestrate MCP tools in a precise diagnostic sequence (ISO 13374 blocks 1-4) with decision gates at each step. This workflow supports the judgment of a qualified vibration engineer — it never replaces it.
Prerequisite: The predictive-maintenance-mcp MCP server must be connected.
Never infer a fault from a signal id or filename — "OuterRaceFault" in an id is not evidence. Base every conclusion exclusively on tool outputs.
Call list_signals(scope="memory") to check which signal_ids are already
loaded, or list_signals(scope="disk") to browse loadable files under the
data/signals/ directory. If the target signal is not loaded, load it:
Call load_signal(filepath="<file>", signal_unit="g")
signal_id (derived from the relative path:
<folder>/<name>.csv becomes <folder>_<name>) is the single handle for
every later call..bin/.raw/.dat), also declare sample_format and
sampling_rate (or provide a companion <stem>_metadata.json) — see the
signal-management skill.signal_unit ("g", "m/s2", "mm/s", or "m/s") if you know it — the
ISO severity verdict in Step 6 is REFUSED without a declared unit. Units are
never guessed. Ask the user; do not invent one.get_signal_info(signal_id="<id>"): sampling rate, duration,
declared unit, and any companion metadata (rpm, reference frequencies).Values in angle brackets in the calls below, such as <rpm>,
<bearing designation> or <reference frequencies>, are placeholders, not
your machine's values: fill them only from what get_signal_info reports for
this signal or from what the user states, and ask when neither gives them.
rpm is the shaft speed in revolutions per minute. Reference frequencies the
signal declares (BPFO, BPFI, BSF, FTF) can be passed as frequencies.
If the sampling rate is missing, STOP and ask the user — do not guess.
Call analyze_statistics(signal_id="<id>").
Report RMS, crest factor and kurtosis (excess, Fisher convention) as the numbers returned. They are screening context only: they name no fault type or source, are not a health verdict, never raise the bearing claim of Step 5 and never stop the workflow. Low values do not rule out a bearing defect.
Call analyze_fft(signal_id="<id>").
Identify:
If the operating speed is unknown, ask the user for the RPM — it is required for Steps 4 and 5.
Establish the expected BPFO/BPFI/BSF/FTF frequencies by ONE of these routes:
search_bearing_catalog(bearing_id="<bearing designation>") — returns verified
geometry with its source citation, plus per-RPM fault frequency multipliers.calculate_bearing_characteristic_frequencies(num_balls=<n>, ball_diameter_mm=<mm>, pitch_diameter_mm=<mm>, contact_angle_deg=<deg>, rpm=<rpm>)extract_manual_specs(file_name="pump_manual.pdf") to
pull the bearing designation from documentation, then route 1.If the bearing is not in the catalog and no geometry is available, ask the user. Never fabricate geometry or frequencies.
Expected frequencies:
outer_race)inner_race)ball)cage)The check tests the line at each expected frequency against the local noise floor of one envelope spectrum, then the further lines its kinematics predict. Its result, never your own matching of envelope peaks, decides what may be said about a fault type.
Call check_bearing_faults(signal_id="<id>", rpm=<rpm>, bearing_id="<bearing designation>")
or, when frequencies came from geometry, from the signal's declaration or from the user:
Call check_bearing_faults(signal_id="<id>", rpm=<rpm>, frequencies=<reference frequencies>)
frequencies maps each label (BPFO, BPFI, BSF, FTF) to its frequency in Hz. A BSF value is the ball spin frequency: the rolling-element line is tested
at twice it (line_frequency_hz).
Report the result in the server's words:
claim.level | What to report |
|---|---|
single_spectrum_evidence | Quote overall_assessment: "the envelope evidence of this single spectrum is consistent with [type]", with its levels and its stated assumption; it is not a confirmed fault and asks for confirmation (a comparable earlier measurement, an independently established reference or other independent evidence; without such a measurement or reference, the current one is recorded as an initial reference that may already contain the observed line and cannot corroborate itself), never a replacement |
qualified | Quote overall_assessment verbatim: it names every reading the claim cannot exclude; single out none |
withheld | Name no fault type; quote overall_assessment verbatim: it says why no fault type is assessed |
no_indication, inconclusive, indicated
or several_types. claim.level, not outcome, decides whether a fault
type is named: an indicated outcome can carry a qualified claim.outcome_reason and next_step describe the evidence outcome before the
claim: when claim.level is not single_spectrum_evidence, do not relay
them to name a fault type or a single element.no_indication as "healthy" or "no fault": quote its
overall_assessment verbatim; no_indication is not evidence that the
bearing is free of defects.evidence_strength (none, low, moderate, high) grades
lines of one envelope spectrum: it is not a probability. Statistics and
harmonics you read elsewhere never raise the claim.check_bearing_faults result, or a non-null bearing_faults block of
a diagnose_vibration result, has no claim field, the server predates
the bearing claim: infer or relay no bearing fault type or bearing
assessment from it (its overall_assessment, most_likely_fault,
fault_checks, bearing sentence or Bearing recommendations), and tell the
user that this bearing guidance needs a server whose check_bearing_faults
returns claim. The evidence_strength of such a diagnose_vibration
result, and its "Fault evidence strength" sentence, also count the bearing
finding, so neither is relayed; results that do not rest on the bearing
check, such as the ISO 20816-3 zone and its action, are relayed as usual.Call assess_severity(signal_id="<id>", machine_group=<group>, support_type="<support type>")
machine_group: 1 (large, >300 kW) or 2 (medium, 15-300 kW);
support_type: rigid or flexible. Confirm with the user; pass
machine_power_kw if known (< 15 kW is out of ISO scope and is refused).assess_severity does not read a declared measurement point
(diagnose_vibration does). When the user has not stated the group or the
support type, leave it out and say that the zone uses the default group 2 /
rigid.load_signal(filepath="<file>", signal_unit="g", overwrite=True)
after confirming the unit with the user.One-call alternative: diagnose_vibration(signal_id="<id>")
runs FFT + PSD + STFT + bearing checks + ISO severity in one pass and degrades
to a structured ISO refusal (reason + remedy) when the unit is undeclared.
It takes rpm, bearing_id, machine_group and support_type from the
signal's declared measurement and measurement point when they are omitted,
and an explicit value overrides the declaration: pass one only when the user
states it, as rpm=<rpm>, bearing_id="<bearing designation>",
machine_group=<group> or support_type="<support type>". If no RPM is
supplied and neither the signal's measurement nor its measurement point
declares a speed, diagnose_vibration refuses the call and returns remedies.
Ask the user for the operating speed or follow the declared-data remedies.
Relay
parameter_sources, which says where each value came from; when it gives
default for machine_group or support_type, say that the zone uses the
default group 2 / rigid. A result without parameter_sources comes from a
server that does not read a declared point: there, pass the values the user
states, and say that an omitted group or support type uses the default group
2 / rigid.
A null bearing_faults block is not a clean bearing check: when a bearing was
given, the check did not run, and the result says nothing about the bearing.
When the result has a bearing_check block, quote its status, and its
reason and remedy when the status is not_computed; only assessed says
anything about the bearing.
Its overall_diagnosis contains the claim's sentence
("Bearing analysis: ..."), and the "Bearing" entries of its recommendations
are the claim's actions: quote them when its bearing_faults block carries a
claim. Its evidence_strength (none, weak, moderate, strong)
counts the findings of every analysis that ran, the ISO zone among them: it
is not a probability and not the strength of a bearing finding.
The rule of Step 5 for a result without a claim field applies to this
result too.
Call generate_envelope_report(signal_id="<id>", bearing_freqs=<reference frequencies>, rpm=<rpm>)
and generate_fft_report(signal_id="<id>", rpm=<rpm>), with the same
reference frequencies and shaft speed as the line test of Step 5. Pass rpm
to generate_envelope_report only when the connected server's schema for
that tool lists an rpm parameter. If it does not list rpm, omit it there,
and do not say that the report used the line test's speed or performed the
shaft-order and sideband checks that a speed enables.
Optionally generate_diagnostic_report_docx(signal_id="<id>", sections={"summary": "..."})
for a Word document. Report the returned file paths to the user.
The envelope report's bearing_matches and bearing_assessment are not the
bearing evidence: report the claim of check_bearing_faults, and with a
server whose check returns no claim, relay neither.
The check returns no_indication: quote overall_assessment. Do not
re-run the check with another tolerance_pct or frequency set to get a
different outcome: a repeated check is a new test. Change a declared value
(speed, bearing data) only when the user corrects it.
Unknown bearing type: Ask for the designation (e.g. "6205") and call
search_bearing_catalog(bearing_id="<bearing designation>"). If it is not in the catalog, the
result says so with a suggestion — ask the user for geometry; never invent it.
Kurtosis high but the claim names no fault type: the statistics do not identify a source; bearing and non-bearing sources (for example gear mesh or electrical) both remain possible. Suggest the gear-diagnosis skill or check for line-frequency harmonics.
ISO verdict refused: The signal has no declared unit. Confirm the unit
with the user and re-load with load_signal(filepath="<file>", signal_unit="mm/s", overwrite=True).
check_bearing_faults nor the bearing block of diagnose_vibration
confirms a bearing defect: never write "confirmed", "damage detected" or
"fault present" for a bearing claim, however many indicators agree. If the
results do not answer a question (for example whether the bearing is
damaged), say that the analysis does not answer itWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lgdimaggio/predictive-maintenance-mcp --plugin predictive-maintenance9 skills in this plugin
/anomaly-detectionML-based anomaly detection and model training for vibration signals using the predictive-maintenance-mcp server. Use this skill when the user says "anomaly detection", "train model", "detect anomalies", "outlier detection", "normal vs abnormal", "machine learning", "one-class SVM", "LOF", "local outlier factor", "train anomaly model", "predict anomalies", "PCA visualization", "clustering", or wants to build or use anomaly detection models on vibration data.
/documentation-searchSearch machine manuals, bearing catalogs, and technical documentation using RAG-based retrieval via the predictive-maintenance-mcp server. Use this skill when the user says "search documentation", "find in manual", "bearing catalog", "look up bearing", "machine manual", "extract specs", "find bearing specs", "SKF bearing", "technical documentation", "datasheet", "manual search", "what bearing", or needs to find technical information from stored documents.
/gear-diagnosisGear fault diagnosis workflow using vibration analysis via the predictive-maintenance-mcp server. Use this skill when the user says "gear fault", "gear diagnosis", "gear mesh", "gearbox analysis", "gear vibration", "tooth damage", "gear defect", "diagnose gear", "gear mesh frequency", "sideband analysis", or wants to detect gear faults from vibration signals.
Other plugins' skills for the same job