Logo: Diagnose Clickhouse Clusters

Diagnose Clickhouse Clusters

Communautéit
FrankChen021
diagnose-clickhouse-clusters

Diagnose ClickHouse cluster health and provide concrete remediation.

Iwwersiicht

EditeurFrankChen021
Repositorydatastoria
Skill-Nummdiagnose-clickhouse-clusters
Stären
327
Forks
18
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    FrankChen021 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Diagnose Clickhouse Clusters an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/FrankChen021/datastoria/tree/master/resources/skills/diagnose-clickhouse-clusters
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/FrankChen021/datastoria.git /tmp/datastoria
mkdir -p .claude/skills
cp -r /tmp/datastoria/resources/skills/diagnose-clickhouse-clusters .claude/skills/diagnose-clickhouse-clusters
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Diagnose Clickhouse Clusters an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Diagnose Clickhouse Clusters automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Diagnose Clickhouse Clusters net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Tool Usage Rules

  • Call collect_cluster_status before health conclusions about current cluster health.
  • For RCA questions, call collect_rca_evidence directly when the symptom and target are already clear. Use collect_cluster_status first only when you need current health context, severity/outliers, or help choosing the RCA symptom/scope.
  • Use only supported Phase 1 RCA symptoms: high_part_count and unknown.
  • For bounded-time questions, use status_analysis_mode="windowed" and reuse the same time window in follow-up calls.
  • If user asks for a chart, use the visualization skill. Do not emit chart specs directly from this skill.
  • Do not invent custom health-check SQL. Use tool outputs as the source of truth.

Workflow (MANDATORY)

  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.

Severity Thresholds (Guidance)

  • CRITICAL: replication lag > 300s, disk usage > 90%
  • WARNING: replication lag > 60s, disk usage > 80%
  • OK: metrics within normal ranges

Do not hardcode parts thresholds in responses. Use the thresholds and severities returned by collect_cluster_status.

Output Format (MANDATORY)

Use one of these two formats:

A) Status-only question

  1. Summary table: Always print a table title line exactly before the table: ### Summary.

    StatusNodes with IssuesChecks RunTimestamp
    🟢 OK / 🟠 WARNING / 🔴 CRITICALNcategoriesISO8601
  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:

    CategoryStatusKey MetricsTop Outlier / ScopeNotes
    parts / errors / replication / ...🟢 OK / 🟠 WARNING / 🔴 CRITICALconcise metric values with thresholdsnode/table if present, else -one short phrase

    Table rules:

    • Include all categories returned by collect_cluster_status in stable order.
    • Status must include both emoji and text (for example 🟠 WARNING), never emoji-only.
    • Markdown table cells do not reliably support line breaks in this UI. Do not try to render multi-line bullets in a cell.
    • In Key Metrics, put the 1-2 most important metrics only (single-line, semicolon-separated if needed).
    • Put additional metrics in Notes as compact key/value items (single-line).
    • Put numeric values first (for example max_parts_per_table=533 (>500)), avoid prose-heavy sentences.
    • Always wrap database/table identifiers in backticks (for example `db.table` or `db`) in all table cells.
    • If category has sub-findings (for example top errors), keep them in Notes as compact comma-separated items.
    • If no outlier exists, set Top Outlier / Scope to -.
  3. Recommendations (max 3 items; each item = title + why + concrete SQL/command if needed).

B) RCA question ("why", "cause", "reason", "explain")

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:
    • Use only candidate.evidence_for and candidate.evidence_against from collect_rca_evidence for that row.
    • Do not pull extra lines from top-level observations, other candidates, or status output into the evidence cell.
    • Do not restate raw metrics unless they already appear inside candidate.evidence_for or candidate.evidence_against.
    • Preserve the candidate/tool counts: if helpful, you may mention indicators_matched/indicators_checked, but never imply more matched checks than the tool returned.
  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:

  • Keep total RCA response under 220 words (excluding SQL command blocks).
  • Do not add long background/theory paragraphs.
  • Use direct statements and numeric evidence.

Critical Rules

  • ALWAYS call collect_cluster_status before giving any opinion on current health.
  • Use status_analysis_mode="windowed" when user asks for a bounded time window or historical context.
  • For RCA questions, MUST call collect_rca_evidence. collect_cluster_status is optional unless current health context is needed.
  • Do NOT state root causes without RCA evidence output.
  • If gaps[] is non-empty, explicitly state what evidence is missing.
  • If all candidates have support_score < 0.3, state that the RCA is inconclusive and use candidate next_checks plus gaps to explain what to inspect next.
  • If best candidate is weak (0.30-0.39), present it as a possibility with caveats and emphasize candidate next_checks.
  • Never fabricate or merge evidence lines across candidates. Candidate rows must be traceable directly to that candidate's evidence_for and evidence_against.
  • If collect_rca_evidence.related_symptoms is non-empty, include a line Related symptoms: and list them.
  • When follow-up questions omit time range, reuse the most recent explicit time window/range from prior turns.
  • Never assume schema or table names; use only what tools return.
  • Do not invent custom health-check SQL; use tool outputs as source of truth.
  • Be concise and focus on remediation, not theory.

Heefeg gestallte Froen

Wat mécht de KI-Skill Diagnose Clickhouse Clusters?

Diagnose ClickHouse cluster health and provide concrete remediation.

Firwat Diagnose Clickhouse Clusters op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Diagnose Clickhouse Clusters besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Diagnose Clickhouse Clusters an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/FrankChen021/datastoria/tree/master/resources/skills/diagnose-clickhouse-clusters an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Diagnose Clickhouse Clusters benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Diagnose Clickhouse Clusters benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Diagnose Clickhouse Clusters domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Diagnose Clickhouse Clusters gratis?

FrankChen021 huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇