Diagnose Clickhouse Clustersのロゴ

Diagnose Clickhouse Clusters

コミュニティ
FrankChen021
diagnose-clickhouse-clusters

Diagnose ClickHouse cluster health and provide concrete remediation.

概要

公開者FrankChen021
リポジトリdatastoria
スキル名diagnose-clickhouse-clusters
スター
327
フォーク
18
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    FrankChen021がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Diagnose Clickhouse Clusters」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/FrankChen021/datastoria/tree/master/resources/skills/diagnose-clickhouse-clusters
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDiagnose Clickhouse Clustersを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDiagnose Clickhouse Clustersを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Diagnose Clickhouse Clustersは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「Diagnose Clickhouse Clusters」では何ができますか?

Diagnose ClickHouse cluster health and provide concrete remediation.

TypingMindでDiagnose Clickhouse Clustersを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Diagnose Clickhouse Clustersはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDiagnose Clickhouse Clustersをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/FrankChen021/datastoria/tree/master/resources/skills/diagnose-clickhouse-clustersを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Diagnose Clickhouse Clustersを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Diagnose Clickhouse Clustersで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDiagnose Clickhouse Clustersを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Diagnose Clickhouse Clusters」は無料ですか?

FrankChen021がGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇