clickhouse-system-querโฆ
Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries.โฆ
Diagnose ClickHouse cluster health and provide concrete remediation.
Claude Code
$ npx -y skills add FrankChen021/datastoria --skill diagnose-clickhouse-clusters --agent claude-code
Codex
$ npx skills add FrankChen021/datastoria --skill diagnose-clickhouse-clusters -a codex -y
Cursor
$ npx skills add FrankChen021/datastoria --skill diagnose-clickhouse-clusters -a cursor -y
Gemini CLI
$ npx skills add FrankChen021/datastoria --skill diagnose-clickhouse-clusters -a gemini-cli -y
GitHub Copilot
$ npx skills add FrankChen021/datastoria --skill diagnose-clickhouse-clusters -a github-copilot -y
OpenCode
$ npx skills add FrankChen021/datastoria --skill diagnose-clickhouse-clusters -a opencode -y
Windsurf
$ npx skills add FrankChen021/datastoria --skill diagnose-clickhouse-clusters -a windsurf -y
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.
Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries.โฆ
Diagnose ClickHouse runtime query failures when the user wants database-level cause and fix guidance from an error or numericโฆ
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โฆ
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,โฆ
Use this skill to extract structured Markdown/JSON from PDFs and document imagesโtables with cell-level precision, formulas asโฆ
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,โฆ