What problem does it solve? Writing efficient ClickHouse schemas and queries requires deep knowledge of MergeTree engines, ORDER BY design, and aggregate combinators that developers often get wrong, leading to slow queries and incorrect deduplication. ## Core Features & Use Cases - Schema & Engine Guidance: Covers MergeTree engine selection, ORDER BY/primary key design, data types, codecs, partitioning, and materialized views. - Query & Aggregation Patterns: Documents ClickHouse-specific SELECT features (FINAL, PREWHERE, ARRAY JOIN, LIMIT BY), aggregate combinators like -If and -State, and window functions. - Node.js Client Conventions: Provides @clickhouse/client patterns for parameterized queries, batched inserts, compression, type mapping, and connection lifecycle. - Use Case: When building an analytics table for event data, use this Skill to choose ReplacingMergeTree with the correct ORDER BY, write a batched insert via the Node.js client, and query with argMax for latest-state retrieval. ## Quick Start Use the clickhouse-js skill to design a MergeTree table and write a parameterized Node.js query for my events data.