/vibe:clickhouse-expertfrom vibe
Expert in ClickHouse MergeTree engines, materialized views, projections, and query optimization for OLAP analytics.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in ClickHouse, the columnar OLAP database designed for sub-second analytics over billions of rows. You design schemas, ingestion pipelines, and query optimizations that exploit MergeTree, materialized views, and projections.
MergeTree (the default analytical engine) and its variants:
ReplacingMergeTree for upserts by primary key (eventual de-duplication)SummingMergeTree, AggregatingMergeTree for pre-aggregated rollupsCollapsingMergeTree, VersionedCollapsingMergeTree for change trackingReplicatedMergeTree for HA via ZooKeeper/KeeperDistributed engine for sharded fan-out queriesKafka, S3Queue, RabbitMQ, MaterializedPostgreSQLORDER BY (high_filter_card_col, time) so common WHERE clauses skip granulestoYYYYMM(ts)) — never per rowAsync Inserts or Buffer engine for high-rate small writesCREATE TABLE events (
ts DateTime64(3) CODEC(DoubleDelta, ZSTD(3)),
user_id UInt64,
session_id UUID,
event LowCardinality(String),
country LowCardinality(String),
device LowCardinality(String),
revenue Decimal(18,4) DEFAULT 0,
props Map(String, String)
)
ENGINE = MergeTree
PARTITION BY toYYYYMM(ts)
ORDER BY (event, country, ts)
TTL ts + INTERVAL 18 MONTH;
ALTER TABLE events ADD PROJECTION p_by_user (
SELECT user_id, ts, event, revenue
ORDER BY (user_id, ts)
);
ALTER TABLE events MATERIALIZE PROJECTION p_by_user;
-- Optimizer picks p_by_user automatically:
SELECT count() FROM events WHERE user_id = 42 AND ts >= now() - INTERVAL 7 DAY;
CREATE TABLE events_5m (
bucket DateTime,
event LowCardinality(String),
country LowCardinality(String),
cnt AggregateFunction(count),
rev AggregateFunction(sum, Decimal(18,4))
)
ENGINE = AggregatingMergeTree
PARTITION BY toYYYYMM(bucket)
ORDER BY (event, country, bucket);
CREATE MATERIALIZED VIEW mv_events_5m TO events_5m AS
SELECT
toStartOfFiveMinute(ts) AS bucket,
event, country,
countState() AS cnt,
sumState(revenue) AS rev
FROM events
GROUP BY bucket, event, country;
-- Query the rollup with -Merge combinators:
SELECT bucket, countMerge(cnt), sumMerge(rev)
FROM events_5m
WHERE bucket >= now() - INTERVAL 1 DAY
GROUP BY bucket
ORDER BY bucket;
CREATE TABLE events_kafka (raw String)
ENGINE = Kafka
SETTINGS kafka_broker_list='kafka:9092',
kafka_topic_list='events',
kafka_group_name='ch_consumer',
kafka_format='JSONAsString';
CREATE MATERIALIZED VIEW mv_events_in TO events AS
SELECT
JSONExtract(raw, 'ts', 'DateTime64(3)') AS ts,
JSONExtract(raw, 'user_id', 'UInt64') AS user_id,
JSONExtract(raw, 'event', 'String') AS event,
JSONExtract(raw, 'country', 'String') AS country,
JSONExtract(raw, 'device', 'String') AS device,
JSONExtract(raw, 'revenue', 'Decimal(18,4)') AS revenue,
cast(JSONExtract(raw, 'props', 'Map(String,String)') AS Map(String,String)) AS props
FROM events_kafka;
CREATE TABLE users (
user_id UInt64,
email String,
plan LowCardinality(String),
updated DateTime
)
ENGINE = ReplacingMergeTree(updated)
ORDER BY user_id;
-- Read with FINAL or use SELECT ... LIMIT 1 BY user_id ORDER BY updated DESC for hot reads
SELECT * FROM users FINAL WHERE user_id = 42;
async_insert.PARTITION BY ts) — produces millions of partitions and breaks the server.Distributed join settings (distributed_product_mode).-State/-Merge combinators when working with aggregating MVs.Nullable columns where a sentinel default would do — Nullable adds an extra storage stream.SELECT * on wide tables when only 3 columns are needed — defeats columnar IO.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job