clickhouse

clickhouse is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 37 tokens per session (1,289 once invoked), scanned A, original, MIT.

A guide to ClickHouse, a database built for fast analysis of large, append-heavy datasets. It explains tables, time partitions, data ingestion, and analytical SQL queries.

In plain words
What is it for?
Use it to design ClickHouse tables, load data in batches, tune queries and indexes, and build dashboards over high-volume records.
Why use it?
It helps avoid slow scans, inefficient small writes, and poor table layouts when working with event or metrics data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the major-ai-skills plugin — 147 skills, 8 plugins shipped together

Good fit Use it to design ClickHouse tables, load data in batches, tune queries and indexes, and build dashboards over high-volume records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/clickhouse
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alivirgo/Major-AI-Skills --skill clickhouse
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 8 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clickhouse

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/clickhouse/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/clickhouse)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/clickhouse"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/clickhouse/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clickhouse

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/clickhouse"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/clickhouse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,289 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01289
Opus 5.5 $0.00015 $0.00516
Sonnet 5.5 $0.00007 $0.00258
Haiku 4.5 $0.00004 $0.00129

Measured 1mo ago against content hash ce39e8d23f76, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clickhouse scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/clickhouse/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ClickHouse OLAP AI Skill Guide

Overview & Engine Architecture

ClickHouse is a columnar OLAP DBMS: data lives in parts merged in the background; ORDER BY (primary key order) enables sparse indexing—not a traditional PK uniqueness guarantee. PARTITION BY prunes scans; tiny inserts create too many parts (merge storms). Replication uses ZooKeeper/ClickHouse Keeper; Kafka engine tables buffer ingest.

Batch inserts / Kafka engine / S3 insert
    -> MergeTree parts on disk
        -> background merges
        -> SELECT with partition + primary-key pruning
        -> optional projections / materialized views

When to use / when not to

Use when

  • High-volume event/analytics, append-heavy facts, sub-second aggregations over billions of rows
  • Denormalized wide tables and pre-aggregated rollups (MVs)

Do not use when

  • Frequent row-level updates/deletes are core (@postgresql)
  • You need multi-row transactional OLTP
  • Someone wants single-row INSERT loops from app servers—redesign to batches

Operational Capabilities & Agent Directives

  1. Schema: ORDER BY matches filter + group keys; partition by time (month/week), never high-cardinality IDs alone.
  2. Ingest backpressure: Insert batches (thousands–millions of rows); async_insert/buffer tables where appropriate; monitor parts_to_merge and Too many parts.
  3. Indexes: Data skipping indexes and projections for alternate sort paths—measure with EXPLAIN indexes = 1.
  4. Mutations: ALTER UPDATE/DELETE are heavy—prefer append-only + ReplacingMergeTree/CollapsingMergeTree patterns; use FINAL sparingly.
  5. Auth/TLS: RBAC users with row policies in multi-tenant setups; TLS between clients and cluster.
  6. Backup/restore: BACKUP/RESTORE (version-dependent) or freeze + object storage; restore to new tables/clusters first; verify parts on all replicas.
  7. Exactly-once myth: Kafka engine + MV pipelines are at-least-once; dedupe with version columns or downstream idempotent sinks.

Read the full file on GitHub · 147 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +46 lines · +14 tokens per session ce39e8d23f76
  2. 2mo ago Changed · -1 tokens per session 6121bc45f4ca
  3. 2mo ago First seen · 101 lines · 24 tokens per session scan A 226a4e6eb7bf

Subscribe to this mod's changes

clickhouse is a skill published in the GitHub repository alivirgo/Major-AI-Skills (6 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 1,289 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

clickhouse compared with skills from other repositories

clickhouse next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clickhousealivirgo/Major-AI-SkillsSkill6yesterdayMITA37Claude Code
clickhouse-analyticsericrisco/rsc-harnessSkill701yesterdayMITA86Claude Code, Codex
analytical-databases-expertpersonamanagmentlayer/pclSkill471mo agoApache-2.0A100Claude Code
accounting-software-selectionsickn33/agentic-awesome-skillsSkill51ktodayMITA37Claude Code
access-matrixsickn33/agentic-awesome-skillsSkill51ktodayMITA41Claude Code
admin-access-registersickn33/agentic-awesome-skillsSkill51ktodayMITA49Claude Code
accounting-audit-system-buildersickn33/agentic-awesome-skillsSkill51ktodayMITA41Claude Code