clickhouse-system-quer…
Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries. Use when the user mentions…
Diagnose ClickHouse cluster health and provide concrete remediation.
$ npx -y skills add FrankChen021/datastoria --skill diagnose-clickhouse-clusters --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/diagnose-clickhouse-clustersContext preview
The summary Claude sees to decide when to auto-load this skill.
Diagnose ClickHouse cluster health and provide concrete remediation.
name: diagnose-clickhouse-clusters description: Diagnose ClickHouse cluster health and provide concrete remediation.
1. Determine whether the user asks for status only, or root cause ("why", "root cause", "reason", "caused by", "explain"). 2. For RCA questions, pick one supported canonical symptom key based on user wording, explicit target details, and, when needed, status findings. 3. Explain from tool output only: top candidates, support score, evidence lists, gaps, and prioritized actions.
Do not hardcode parts thresholds in responses. Use the thresholds and severities returned by `collect_cluster_status`.
Use one of these two formats:
1. Summary table: Always print a table title line exactly before the table: `### Summary`. | Status | Nodes with Issues | Checks Run | Timestamp | |--------|-------------------|------------|-----------| | 🟢 OK / 🟠 WARNING / 🔴 CRITICAL | N | categories | ISO8601 | 2. Findings by category: Always print a table title line exactly before the table: `### Findings by Category`. Use a markdown table (not bullets) with one row per category. Required columns: | Category | Status | Key Metrics | Top Outlier / Scope | Notes | |----------|--------|-------------|----------------------|-------| | parts / errors / replication / ... | 🟢 OK / 🟠 WARNING / 🔴 CRITICAL | concise metric values with thresholds | node/table if present, else `-` | one short phrase |
Table rules:
3. Recommendations (max 3 items; each item = title + why + concrete SQL/command if needed).
Use compact structure only:
1. **RCA Verdict**: one sentence, max 30 words. 2. **Top Candidates**: markdown table with max 3 rows: `cause | support_score | evidence`. In `evidence`, render up to 3 `evidence_for` items prefixed with `✓` and up to 2 `evidence_against` items prefixed with `✗`, separated by `<br/>`. When `excluded_candidates` is non-empty, include at least one excluded reason as a `✗` item for the most relevant row. Evidence fidelity rules:
3. **Possible Actions**: max 3 numbered items, sorted by impact. Formatting rule: print the line `3. **Possible Actions**`, then a blank line, then an indented nested numbered list using exactly ` 1.`, ` 2.`, ` 3.`. Do not continue the outer top-level numbering for action items. 4. **Gaps / Next Checks**: max 2 bullets. Formatting rule: print the line `4. **Gaps / Next Checks**`, then a blank line, then indented bullets using exactly ` -`.
RCA brevity limits:
The AI-native ClickHouse console for your cluster diagnostics, query generation, evidence-based optimization, intelligent visualization.
Repo: FrankChen021/datastoria
Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries. Use when the user mentions…
Diagnose ClickHouse runtime query failures when the user wants database-level cause and fix guidance from an error or numeric error code, not source-code root…
Optimize slow queries, analyze SQL performance, and collect evidence for expensive workloads.
Investigate application or repository source code with search_file and read_file to explain behavior, trace root causes of runtime or query errors, and answer…
Expert system for generating, validating, and optimizing ClickHouse SQL. Use this when the user needs data, queries, or analysis.
Rules for charts and visualization. Use when the user asks for charts, graphs, plots, or visual representations (line, bar, pie, timeseries).