TDengine Root Cause Analysis
Use public MCP evidence to rank and validate fault hypotheses. Keep discovery,
data retrieval, statistical interpretation, and conclusions traceable. This is
a read-only skill: do not create, update, acknowledge, or delete resources.
Prohibited Tools
Do not call ask_idmp, recommendation tools, add_*, create_*, update,
acknowledgement, annotation, management, or deletion tools. Never call private
Java endpoints, query a database directly, or invent identifiers.
Workflow
- Establish the target, symptom, and time range. Use
search_elements,
get_element_by_path, or get_elements_by_ids when an ID is missing.
- Read
get_element_context and list_element_attributes. Separate static
tags from time-series metrics and record units and data types.
- Retrieve only the evidence needed with
get_attribute_history,
get_batch_attribute_data, list_events, search_events, get_event,
get_event_annotations, and get_notification_history.
- Compare the incident window with a representative baseline. Check data
quality before interpreting anomalies.
- Generate mutually distinguishable hypotheses, state expected evidence for
each, and run targeted checks.
- Rank hypotheses by evidence strength and produce an auditable report.
Ask one concise clarification question only when target, symptom, or time range
cannot be discovered safely. Do not silently select among matching elements.
Evidence Rules
- Preserve timestamps, units, element paths, attribute names, and event IDs.
- Treat correlation and lag correlation as association, not causation.
- Separate observed facts, derived statistics, interpretation, and assumptions.
- Record missing samples, irregular cadence, flat lines, resets, and outliers.
- Prefer a matched historical or peer-device baseline over global averages.
- Report sample count and coverage before claiming trend or periodicity.
- Keep rejected hypotheses in the report with their rejection evidence.
- State uncertainty when evidence is insufficient or contradictory.
Local Analysis Scripts
Bundled scripts are optional and operate only on data already returned by MCP.
They require Python 3 plus pandas, numpy, and, for charts, matplotlib.
Never pass credentials or service URLs to them.
scripts/data_prep.py: timestamp normalization and numeric cleaning.
scripts/analysis_methods.py: baseline-relative anomaly and drift, lag, and
correlation helpers.
scripts/plotting.py: incident-versus-baseline charts.
scripts/common_io.py: JSON-safe result output.
scripts/hypothesis_runner_template.py: reusable hypothesis runner.
Use scripts only when their dependencies are available. Otherwise perform the
same calculations in the agent runtime and disclose the method.
Normalize all incident and sample timestamps to timezone-aware UTC before
window slicing. Pass the chosen historical baseline explicitly to anomaly and
drift helpers; never estimate their reference distribution from the incident
window.
Output Contract
Return sections in this order:
- Scope: equipment, symptom, analysis window, baseline window.
- Evidence quality: coverage, cadence, missing data, known limitations.
- Findings: timestamped facts and derived metrics.
- Hypothesis table: hypothesis, supporting evidence, contradicting evidence,
confidence, and status.
- Most likely cause and contributing conditions.
- Recommended verification and operational actions, clearly separated.
Do not claim a definitive root cause without discriminating evidence. Do not
recommend writes through MCP as part of this read-only workflow.
References
- Clarification prompts
- Hypothesis generation
- Analysis methods
- Code templates
- Report template
1---2name: tdengine-rca3description: Use when diagnosing industrial equipment faults, performance anomalies, alert events, or unexplained metric changes with TDengine data and public MCP tools.4version: "0.6.0"5author: "TDengine"6metadata:7 source: https://skillmd.com/skills/infometa/tdengine-rca8---910# TDengine Root Cause Analysis1112Use public MCP evidence to rank and validate fault hypotheses. Keep discovery,13data retrieval, statistical interpretation, and conclusions traceable. This is14a read-only skill: do not create, update, acknowledge, or delete resources.1516## Prohibited Tools1718Do not call `ask_idmp`, recommendation tools, `add_*`, `create_*`, update,19acknowledgement, annotation, management, or deletion tools. Never call private20Java endpoints, query a database directly, or invent identifiers.2122## Workflow23241. Establish the target, symptom, and time range. Use `search_elements`,25 `get_element_by_path`, or `get_elements_by_ids` when an ID is missing.262. Read `get_element_context` and `list_element_attributes`. Separate static27 tags from time-series metrics and record units and data types.283. Retrieve only the evidence needed with `get_attribute_history`,29 `get_batch_attribute_data`, `list_events`, `search_events`, `get_event`,30 `get_event_annotations`, and `get_notification_history`.314. Compare the incident window with a representative baseline. Check data32 quality before interpreting anomalies.335. Generate mutually distinguishable hypotheses, state expected evidence for34 each, and run targeted checks.356. Rank hypotheses by evidence strength and produce an auditable report.3637Ask one concise clarification question only when target, symptom, or time range38cannot be discovered safely. Do not silently select among matching elements.3940## Evidence Rules4142- Preserve timestamps, units, element paths, attribute names, and event IDs.43- Treat correlation and lag correlation as association, not causation.44- Separate observed facts, derived statistics, interpretation, and assumptions.45- Record missing samples, irregular cadence, flat lines, resets, and outliers.46- Prefer a matched historical or peer-device baseline over global averages.47- Report sample count and coverage before claiming trend or periodicity.48- Keep rejected hypotheses in the report with their rejection evidence.49- State uncertainty when evidence is insufficient or contradictory.5051## Local Analysis Scripts5253Bundled scripts are optional and operate only on data already returned by MCP.54They require Python 3 plus `pandas`, `numpy`, and, for charts, `matplotlib`.55Never pass credentials or service URLs to them.5657- `scripts/data_prep.py`: timestamp normalization and numeric cleaning.58- `scripts/analysis_methods.py`: baseline-relative anomaly and drift, lag, and59 correlation helpers.60- `scripts/plotting.py`: incident-versus-baseline charts.61- `scripts/common_io.py`: JSON-safe result output.62- `scripts/hypothesis_runner_template.py`: reusable hypothesis runner.6364Use scripts only when their dependencies are available. Otherwise perform the65same calculations in the agent runtime and disclose the method.66Normalize all incident and sample timestamps to timezone-aware UTC before67window slicing. Pass the chosen historical baseline explicitly to anomaly and68drift helpers; never estimate their reference distribution from the incident69window.7071## Output Contract7273Return sections in this order:74751. Scope: equipment, symptom, analysis window, baseline window.762. Evidence quality: coverage, cadence, missing data, known limitations.773. Findings: timestamped facts and derived metrics.784. Hypothesis table: hypothesis, supporting evidence, contradicting evidence,79 confidence, and status.805. Most likely cause and contributing conditions.816. Recommended verification and operational actions, clearly separated.8283Do not claim a definitive root cause without discriminating evidence. Do not84recommend writes through MCP as part of this read-only workflow.8586## References8788- [Clarification prompts](references/clarification-prompts.md)89- [Hypothesis generation](references/hypothesis-generation.md)90- [Analysis methods](references/analysis-methods.md)91- [Code templates](references/code-templates.md)92- [Report template](references/report-template.md)