LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/ClickHouse/agent-skills --skill clickhouse-best-practices
or paste the link and ask your coding assistant to install it
https://github.com/ClickHouse/agent-skills
View on GitHub

What This Skill Does

A set of 28 validated rules for ClickHouse covering schema design, query optimization, and data ingestion. Rules are grouped by category and priority, from primary key selection to mutation avoidance. Meant to be checked against before answering ClickHouse questions or reviewing database code.

ClickHouse has specific behaviors around columnar storage and sparse indexes where standard SQL intuition leads to bad designs, and these rules encode validated ClickHouse-specific guidance that general database knowledge won't cover.

When to use it

  • Reviewing a CREATE TABLE statement for column ordering mistakes before deploying
  • Diagnosing slow SELECT queries caused by JOIN algorithm mismatches
  • Replacing frequent ALTER TABLE UPDATE operations with ReplacingMergeTree patterns
  • Choosing the right numeric type when designing a new ClickHouse schema
  • Configuring async inserts for a high-frequency small-batch ingestion pipeline