Logo di Diagnose Clickhouse Clusters

Diagnose Clickhouse Clusters

Community
FrankChen021
diagnose-clickhouse-clusters

Diagnose ClickHouse cluster health and provide concrete remediation.

Panoramica

Pubblicato daFrankChen021
Repositorydatastoria
Nome della skilldiagnose-clickhouse-clusters
Stelle
327
Fork
18
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da FrankChen021 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Diagnose Clickhouse Clusters in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/FrankChen021/datastoria/tree/master/resources/skills/diagnose-clickhouse-clusters
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Diagnose Clickhouse Clusters in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Diagnose Clickhouse Clusters non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Diagnose Clickhouse Clusters non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA Diagnose Clickhouse Clusters?

Diagnose ClickHouse cluster health and provide concrete remediation.

Perché usare Diagnose Clickhouse Clusters su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Diagnose Clickhouse Clusters è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Diagnose Clickhouse Clusters in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/FrankChen021/datastoria/tree/master/resources/skills/diagnose-clickhouse-clusters. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Diagnose Clickhouse Clusters?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Diagnose Clickhouse Clusters?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Diagnose Clickhouse Clusters: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Diagnose Clickhouse Clusters è gratuita?

È pubblicata su GitHub da FrankChen021. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇