원클릭으로
parts-diagnosis
Diagnose part/partition health of a MergeTree table — too many parts, slow/stuck merges, bad partition key.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Diagnose part/partition health of a MergeTree table — too many parts, slow/stuck merges, bad partition key.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Rules and strategies for exploring databases, tables, schemas, and searching metadata.
Complex rules for calling render_chart, inferring axes, and choosing chart types based on user intent.
Diagnose a ClickHouse server error (code/name/exception) and give a concrete, actionable fix.
Rules for using explain/analyze/optimize tools to help the user tune their queries.
Diagnose a column/table schema issue — Nullable overhead, oversized integer, or weak compression — and propose an ALTER.
Strict rules on outputting ClickHouse syntax, limiting rows, and rendering SQL in markdown.
SOC 직업 분류 기준
| name | parts-diagnosis |
| description | Diagnose part/partition health of a MergeTree table — too many parts, slow/stuck merges, bad partition key. |
The user is worried about a specific table's part/partition health: too many parts, merge pressure, TOO_MANY_PARTS on insert, or a partition key that may be too fine. Investigate that one table read-only, then give a concrete fix.
get_table_ddl — engine (is it MergeTree-family?), PARTITION BY, ORDER BY.run_select_query on system.parts for active part count + sizes per partition: SELECT partition, count() AS parts, sum(rows) AS rows, sum(bytes_on_disk) AS bytes FROM system.parts WHERE database='<db>' AND table='<t>' AND active GROUP BY partition ORDER BY parts DESC. Many small active parts in a partition (e.g. >300) = merge pressure / tiny inserts; hundreds/thousands of partitions = key too fine.run_select_query on system.merges / system.mutations filtered to the table — are merges running or stuck?get_table_size — overall scale context.system-table-reference reference skill — exact system.parts / system.merges / system.mutations columns.clickhouse-playbook reference skill — the mutations/merges + partition-cardinality guidance.PARTITION BY (e.g. toYYYYMM not toYYYYMMDD); let merges catch up or find why they're stuck (memory); the parts_to_throw_insert / max_parts_in_total context; when (and when NOT) to OPTIMIZE TABLE … FINAL.FORMAT clause. A human applies any change.