Clickhouse Architecture Advisor

作者 ClickHouse2f6ec4b17a81Apache-2.0544 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫9 天前更新

MUST USE when designing ClickHouse architectures, selecting between ingestion or modeling patterns, or translating best practices into workload-specific system designs. Complements clickhouse-best-practices with decision frameworks and explicit provenance labels.

僅含說明Data & Analytics
AI 產生的概覽

針對特定工作負載指導 ClickHouse 架構決策,並將每項建議標註為官方、推導或經驗。

功能
此技能為設計 ClickHouse 架構提供工作負載感知的決策框架,涵蓋擷取策略、即時預聚合、時間序列分區、聯結擴充和延遲更新。它要求代理辨識工作負載形態、閱讀相關規則檔案、附上官方文件連結,並依來源對每項建議分類。輸出採用結構化格式,包含工作負載摘要、關鍵決策和建議,並附有信賴度、來源和驗證步驟。
適用情境
適用於設計 ClickHouse 架構、在擷取或建模模式之間選擇,或將最佳實務轉化為特定工作負載的系統設計。適合可觀測性、SIEM、產品分析、IoT 遙測和金融市場資料等情境。
執行需求
無需指令碼,僅為說明性內容。它引用隨附的規則檔案、對應檔案和範例,並預期能存取 ClickHouse 官方文件。

ClickHouse Architecture Advisor

This skill adds workload-aware architecture decisioning on top of clickhouse-best-practices.

Official docs remain the source of truth. This skill must always prefer official ClickHouse documentation when available.

Required behavior

Before producing recommendations:

  1. Identify the workload shape
    • observability
    • security / SIEM
    • product analytics
    • IoT / telemetry
    • market data / financial services
    • mixed OLAP with point-lookups
  2. Read the relevant decision rule files in rules/
  3. Use mappings/doc_links.yaml to attach official documentation
  4. Classify every recommendation as:
    • official
    • derived
    • field
  5. Never present field guidance as official guidance
  6. If a recommendation is uncertain, say so explicitly

Provenance rules

official

Use this when the recommendation is directly backed by official docs.

derived

Use this when the recommendation is not stated verbatim in docs but follows logically from documented ClickHouse behavior.

field

Use this only for experience-based guidance that may be situational. When using field, include:

  • a disclaimer that the advice is heuristic
  • a relevant official doc if one partially applies
  • the reason the advice depends on workload context

Read these rule files by scenario

Real-time ingestion design

  1. rules/decision-ingestion-strategy.md
  2. rules/decision-real-time-preaggregation.md
  3. Relevant best-practices insert rules

Time-series and retention design

  1. rules/decision-partitioning-timeseries.md
  2. Relevant best-practices schema partition rules

Enrichment and dimension lookups

  1. rules/decision-join-enrichment.md
  2. Relevant best-practices query join rules

Mutable state / late-arriving events

  1. rules/decision-late-arriving-upserts.md
  2. Relevant best-practices mutation avoidance rules

Output format

Structure responses like this:

markdown
## Workload Summary- workload:- latency target:- data shape:- primary query patterns:- operational constraints:
## Key Decisions- ...- ...
## Recommendations
### <Recommendation title>
**What**...
**Why**...
**How**...
**Category**official | derived | field
**Confidence**high | medium | heuristic
**Source**- doc link(s)
**Validation**- concrete SQL, metric, or smoke test

Architecture-specific guidance

Prefer decision frameworks over generic advice. Good responses should:

  • explain tradeoffs
  • identify the likely operating bottleneck
  • separate immediate actions from structural redesign
  • provide target architecture patterns, not just isolated settings

Full reference

See AGENTS.md for the compiled version and examples/ for sample outputs.

來源與署名

來源:ClickHouse/agent-skills位於skills/clickhouse-architecture-advisor提交2f6ec4b

授權條款: Apache-2.0

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 ClickHouse/agent-skills 的技能

Clickhouse Managed Postgres Rca

ClickHouse

針對 ClickHouse 代管 Postgres 執行個體效能問題、以證據為基礎的根因分析工作流程。

DevOps & Cloud5449 天前更新

Clickhouse Js Node Troubleshooting

ClickHouse

排查並解決 ClickHouse Node.js 客戶端(@clickhouse/client)的常見錯誤與設定問題。

Software Development5449 天前更新

Clickhouse Best Practices

ClickHouse

依據 31 條最佳實務規則審查 ClickHouse 的結構定義、查詢與寫入策略。

Data & Analytics5449 天前更新

Chdb Sql

ClickHouse

Use when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake) without setting up a server. Provides chDB — embedded ClickHouse SQL in Python with 1000+ functions, Session for stateful multi-step pipelines, parametrized queries, and cross-source joins via `s3()`, `mysql()`, `postgresql()`, `iceberg()`, `deltaLake()`, `remoteSecure()` table functions. TRIGGER when: user wants SQL on parquet/csv/files or across remote analytical sources; uses ClickHouse SQL features (window functions, windowFunnel, geoToH3, JSON path ops, Session, parametrized queries); imports `chdb` or calls `chdb.query()`. SKIP this skill for pandas-style DataFrame method-chaining (use chdb-datastore instead) or ClickHouse server administration.

包含腳本
待分類5449 天前更新

Chdb Datastore

ClickHouse

使用 chdb DataStore 作為 pandas 的替代方案,以 ClickHouse 為底層查詢、合併與彙總表格資料。

包含腳本
Data & Analytics5449 天前更新