Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clickhouse-best-practices

Skill by ClickHouse

Provides ClickHouse best practice rules for reviewing schemas, queries, text search and configurations, plus guidance for AI agent connections. Built for developers and agents working with ClickHouse.

  • Score 89
  • 581 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clickhouse-best-practices

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ClickHouse/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/skills/clickhouse-best-practices ~/.claude/skills/clickhouse-best-practices

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clickhouse-best-practices in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

ClickHouse Best Practices is an agent skill published by ClickHouse Inc under the Apache-2.0 license. It gives guidance on ClickHouse schema design, query optimization, data ingestion, native full-text search and AI agent connectivity. The source contains 36 rules across four main categories: schema, query, insert and agent.

When reviewing ClickHouse work, the assistant is told to read the relevant rule files first and cite rule names in its answer. Rules cover primary keys, data types, JOINs, partitioning, text indexes, mutations and agent query safety. If no rule applies, the skill directs the assistant to general ClickHouse knowledge or documentation search. It is aimed at developers and AI agents working with ClickHouse databases.

Written from the project's SKILL.md and checked against it.

What it can do

  • Schema reviewChecks CREATE TABLE and ALTER TABLE statements against primary key, data type and partitioning rules.
  • Query reviewReviews SELECT and JOIN queries for filter alignment, JOIN algorithm choice and skipping indices.
  • Text search guidanceCovers native text index semantics, tokenizers, query plans and index lifecycle.
  • Insert strategy reviewChecks batch sizes, async inserts and alternatives to UPDATE, DELETE and OPTIMIZE.
  • Agent connection and discoveryDescribes MCP and CLI connection setup and a multi-step schema discovery workflow.
  • Agent query safetyCovers LIMIT use, timeouts and progressive exploration when agents query ClickHouse.
  • Structured review outputAsks for a rules checked list, violations with fixes, compliant items and recommendations.

What you need

  • Access to a ClickHouse instance via MCP, CLI or HTTP

Try asking

  • Review this ClickHouse CREATE TABLE statement against the best practice rules
  • Check my ClickHouse JOIN query and cite the relevant rules
  • Plan a safe schema discovery workflow for my ClickHouse agent

Good to know

  • The source states 36 rules in its metadata and body, while the declared description says 31.
  • Rules must be checked against version-specific official docs for evolving features.
  • The skill does not promise native BM25 or fuzzy ranking, or direct read for every predicate.
  • Text index behavior depends on the deployed ClickHouse version and build.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/clickhouse-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • AGENTS.md86 KB
  • README.md2 KB
  • SKILL.md13 KB
  • metadata.json758 B
  • references/text-search-feature-guide.md20 KB
Show all 44 files
  • references/text-search-versions.md5 KB
  • rules/_sections.md2 KB
  • rules/_template.md624 B
  • rules/agent-connect-mcp.md4 KB
  • rules/agent-discovery-schema.md6 KB
  • rules/agent-query-safety.md5 KB
  • rules/insert-async-small-batches.md2 KB
  • rules/insert-batch-size.md1 KB
  • rules/insert-format-native.md933 B
  • rules/insert-mutation-avoid-delete.md2 KB
  • rules/insert-mutation-avoid-update.md2 KB
  • rules/insert-optimize-avoid-final.md2 KB
  • rules/query-index-skipping-indices.md3 KB
  • rules/query-index-text-analysis.md5 KB
  • rules/query-index-text-lifecycle.md4 KB
  • rules/query-index-text-native.md3 KB
  • rules/query-index-text-plan.md4 KB
  • rules/query-index-text-semantics.md5 KB
  • rules/query-join-choose-algorithm.md2 KB
  • rules/query-join-consider-alternatives.md2 KB
  • rules/query-join-filter-before.md1 KB
  • rules/query-join-null-handling.md1 KB
  • rules/query-join-use-any.md1 KB
  • rules/query-mv-incremental.md2 KB
  • rules/query-mv-refreshable.md2 KB

And 14 more files on GitHub.

Alternatives to clickhouse-best-practices

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

clickhouse-best-practices: common questions

What does the ClickHouse best practices skill cover?

It covers schema design, query optimization, data ingestion, native full-text search and AI agent connectivity for ClickHouse. The source lists 36 rules in four main categories.

Does the skill tell the assistant which rules to follow?

Yes. The skill asks the assistant to check the matching rule files first and cite rule names in responses. If no rule applies, it falls back to general ClickHouse knowledge or documentation search.

Who published the ClickHouse best practices skill?

The skill is published by ClickHouse Inc and released under the Apache-2.0 license, version 0.5.0 according to its metadata.

How do I install clickhouse-best-practices?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clickhouse-best-practices free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is clickhouse-best-practices safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to clickhouse-best-practices?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

clickhouse-best-practices Install

Add to stack

Loading.