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.
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-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install clickhouse-best-practices in Claude Code
git clone --depth 1 https://github.com/ClickHouse/agent-skills /tmp/agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills/skills/clickhouse-best-practices ~/.gemini/antigravity-cli/skills/clickhouse-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clickhouse-best-practices in Antigravity CLI
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
ANo 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 →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
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.
