clickhouse avatar

Clickhouse Best Practices

Skill-review rulebook for ClickHouse schemas, queries, text search, and configs, citing 36 prioritized rules and version-aware guidance.

CCM score
72 of 100
skills.sh installs
23.5K
GitHub stars
574
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers schema, query, insert, and agent connectivity workflows, with per-category rule files for primary keys, types, JOINs, partitions, indices, and mutations
  • Includes a review checklist for each area and an output format that lists rules checked, violations, and compliant findings
  • Enforces a rule-first answer order: check rules/, cite the matching rule, then fall back to general ClickHouse guidance or documentation
  • Designed for agents reviewing ClickHouse DDL, queries, native full-text search setups, or insert pipelines before recommending changes

Install

$ npx -y skills add clickhouse/agent-skills --skill clickhouse-best-practices -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

ClickHouse Best Practices

Comprehensive guidance for ClickHouse covering schema design, query optimization, data ingestion, and AI agent connectivity. Contains 36 rules across 4 main categories (schema, query, insert, agent), prioritized by impact.

Official docs: ClickHouse Best Practices

IMPORTANT: How to Apply This Skill

Before answering ClickHouse questions, follow this priority order:

  1. Check for applicable rules in the rules/ directory
  2. If rules exist: Apply rules that match the deployed ClickHouse version and cite them using "Per rule-name...". Verify evolving features against version-specific official documentation; do not override newer authoritative evidence with an older rule.
  3. If no rule exists: Use the LLM's ClickHouse knowledge or search documentation
  4. If uncertain: Use web search for current best practices
  5. Always cite your source: rule name, "general ClickHouse guidance", or URL

Details

Repository
github.com/clickhouse/agent-skills
Categories
Databases, Code Review & Quality

More from clickhouse/agent-skills

All 8

Similar to Clickhouse Best Practices

More Databases