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 runtime query failures when the user wants database-level cause and fix guidance from an error or numeric error code, not source-code root cause analysis.
$ npx -y skills add FrankChen021/datastoria --skill diagnose-clickhouse-errors --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/diagnose-clickhouse-errorsContext preview
The summary Claude sees to decide when to auto-load this skill.
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 cause analysis.
name: diagnose-clickhouse-errors description: 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 cause analysis. metadata: author: DataStoria
Do not use this skill when the user's primary goal is:
In those cases, prefer `source-code-inspection`. Do not start this skill's error-code intake flow unless the user is asking for database-level diagnosis.
1. Determine whether the user is asking for database-level diagnosis or source-code investigation. If the primary goal is source-code investigation or file-cited code analysis, stop and prefer `source-code-inspection`. 2. Extract the numeric ClickHouse error code from the conversation or error text (e.g. `Code: 60`). 3. If no numeric error code is detected and the user is asking for database-level diagnosis, call `ask_user_question` with exactly one question. Do NOT reply with natural-language text before the tool call.
4. Load `references/<code>.md` with `skill_resource` (e.g. `references/60.md`) and follow its workflow. 5. If the orchestrator provides database context facts, use them when they materially change the cause or fix. 6. If `skill_resource` returns nothing, use your ClickHouse knowledge to provide a best-effort response.
Heading rules:
Keep answers brief and action-first. Do not repeat the raw error verbatim. Do not add extra headings.
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 cluster health and provide concrete remediation.
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).