Description
clickhouse-best-practices is an agent skill that gives a coding assistant a set of 28 validated rules for ClickHouse. The rules cover schema design, query optimization and data ingestion, and they are grouped by category and priority, from primary key selection to avoiding mutations. The skill is meant to be checked before the assistant answers a ClickHouse question or reviews database code. Its premise is that ClickHouse has specific behaviors around columnar storage and sparse indexes, where standard SQL habits lead to poor designs, and the rules encode ClickHouse-specific guidance that general database knowledge does not cover. Typical uses include reviewing a CREATE TABLE statement for column ordering mistakes before it is deployed, diagnosing slow SELECT queries caused by JOIN algorithm mismatches, replacing frequent ALTER TABLE UPDATE operations with ReplacingMergeTree patterns, and choosing the right numeric type when designing a new table. The skill is listed on officialskills.sh under the data category and is labeled official. Install it with npx skills add https://github.com/clickhouse/skills --skill clickhouse-best-practices.…
Highlights
- 28 validated ClickHouse rules
- Schema design, query optimization and ingestion guidance
- Rules grouped by category and priority
- Checks for CREATE TABLE, JOIN and mutation issues
Ratings & Reviews
No ratings yet
Be the first to rate clickhouse/clickhouse-best-practices.
People also visit

clickhouse-best-practices
MUST USE when reviewing ClickHouse schemas, queries, or configurations

clickhouse-js-node-coding
Write idiomatic application code with the ClickHouse Node.js client

clickhouse-js-node-troubleshooting
Troubleshoot and resolve common issues with the ClickHouse Node.js client
clickhouse/clickhouse-best-practices FAQ
What does this skill contain?
A set of 28 validated rules for ClickHouse covering schema design, query optimization and data ingestion.
When should I use it?
Before answering ClickHouse questions or reviewing database code, for example to check a table definition before it is deployed.
How are the rules organized?
By category and priority, from primary key selection to avoiding mutations.
How do I install it?
Run npx skills add https://github.com/ClickHouse/agent-skills --skill clickhouse-best-practices, or paste the GitHub link into your coding assistant and ask it to install the skill.
What are the best clickhouse/clickhouse-best-practices alternatives?
Popular alternatives to clickhouse/clickhouse-best-practices include clickhouse-best-practices, clickhouse-io and clickhouse-architecture-advisor. See all clickhouse/clickhouse-best-practices alternatives





