Logo Diagnose Clickhouse Clusters

Diagnose Clickhouse Clusters

Cộng đồng
FrankChen021
diagnose-clickhouse-clusters

Diagnose ClickHouse cluster health and provide concrete remediation.

Tổng quan

Nhà phát hànhFrankChen021
Kho mãdatastoria
Tên kỹ năngdiagnose-clickhouse-clusters
Sao
327
Bản fork
18
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được FrankChen021 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Diagnose Clickhouse Clusters trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/FrankChen021/datastoria/tree/master/resources/skills/diagnose-clickhouse-clusters
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân 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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Diagnose Clickhouse Clusters trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Diagnose Clickhouse Clusters ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Diagnose Clickhouse Clusters với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Câu hỏi thường gặp

Kỹ năng AI Diagnose Clickhouse Clusters làm được gì?

Diagnose ClickHouse cluster health and provide concrete remediation.

Vì sao nên dùng Diagnose Clickhouse Clusters trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Diagnose Clickhouse Clusters là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Diagnose Clickhouse Clusters trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/FrankChen021/datastoria/tree/master/resources/skills/diagnose-clickhouse-clusters. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Diagnose Clickhouse Clusters?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Diagnose Clickhouse Clusters với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Diagnose Clickhouse Clusters với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Diagnose Clickhouse Clusters có miễn phí không?

Kỹ năng này được FrankChen021 phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇