clickhouse
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, debug, configure, migrate, teach, or plan ClickHouse analytics work from TypeScript with current docs and a full usage guide. Use for @clickhouse/client, @clickhouse/client-web, createClient, query, insert, command, exec, JSONEachRow, query_params, streaming, MergeTree family, ORDER BY/PARTITION BY, materialized views, projections, async_insert, FINAL, lightweight deletes, ClickHouse Cloud HTTPS, system.query_log, and TS schema/ingest patterns. TypeScript/Node SDKs only — not Python/Go/Java clients.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- speakeasy-api/gramtheir own version, first seen Nov 26, 2026
- MMACABRE/SKILLStheir own version, first seen Nov 8, 2026
- base58ed/claude_code_filestheir own version, first seen Oct 20, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
- nc9/skillstheir own version, first seen Sep 19, 2026
- muxammadmamajonov/dot-claudetheir own version, first seen Jul 6, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- speakeasy-api/gram★ 281same name
- cline/plugins★ 36same name
- cline/skills★ 35same name
- G1Joshi/Agent-Skills★ 15same name
- nc9/skills★ 4same name
- base58ed/claude_code_files★ 1same name
- MMACABRE/SKILLS★ 1same name
- muxammadmamajonov/dot-claude★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- base-uiSkill
- better-authSkill
- brainstormSkill
- bullmqSkill
- bunSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- drizzle-ormSkill
- effectSkill
- elysia-architectureSkill
- elysiaSkill
- evlogSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- intlayerSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- storybookSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- tanstack-chartsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 2 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill for ClickHouse OLAP work driven from TypeScript/Node: official JS clients, SQL the app runs, table design, ingest, Cloud vs …
- Very specific: line 25
Prefer official @clickhouse/client over unscoped/clickhouse community packages.
- Very specific: line 26
Verify with focused query/insert smokes, part-count awareness for ingest, and consume/close every ResultSet.
- Very specific: line 32
Default to MergeTree + strong ORDER BY.
- Very specific: line 33
Prefer batched insert({ format: 'JSONEachRow' }).
- Very specific: line 35
Prefer insert-only / RMT / MVs over chatty ALTER UPDATE/DELETE mutations.
- Very specific: line 37
Always consume or close() ResultSets — dangling streams cause ECONNRESET.
- Very specific: line 40
Prefer bun / bunx in command examples.
- Distinctive: line 44
Prefer repository-owned commands.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ClickHouse (TypeScript)
Use this skill for ClickHouse OLAP work driven from TypeScript/Node: official JS clients, SQL the app runs, table design, ingest, Cloud vs self-hosted, and ops the app can query.
Workflow
- Inspect the local surface:
- Packages:
@clickhouse/client(Node) and/or@clickhouse/client-web(browser/Workers). Snapshot 1.23.1. Node>=20. Server target 24.8+ for modern clients. - Connection:
url(HTTPS Cloud:8443vs local HTTP:8123), auth (password vs Cloud JWTaccess_token),database, TLS. - Schema: engine (MergeTree family),
ORDER BY,PARTITION BY, MVs/projections. - Ingest path:
insert()batches vsasync_insert, streams, empty-array no-op.
- Packages:
- For day-to-day how-to, follow usage-guide.md first.
- Refresh docs when versions drift. Start from source-map.md.
- Route deeper detail:
- Client API, formats, streams, settings: client-ts.md.
- Engines, keys, MVs, projections, indexes: sql-engines-modeling.md.
- Insert/select SQL patterns, FINAL, JOINs, mutations: ingest-query-patterns.md.
- Types, Cloud, system tables, errors: types-cloud-ops.md.
- Testcontainers + SQL migrations: testing-migrations.md.
- Prefer official
@clickhouse/clientover unscoped/clickhousecommunity packages. Never interpolate user input into SQL — use{name: Type}+query_params. - Verify with focused
query/insertsmokes, part-count awareness for ingest, and consume/close everyResultSet.
Core Judgment
- ClickHouse is columnar OLAP, not OLTP. Optimize for batched analytics, not high-QPS point lookups.
- JS clients speak HTTP(S) only (not native TCP 9000).
- Default to MergeTree + strong
ORDER BY; partitions are for data management (TTL/DROP), not a substitute for the sort key. - Prefer batched
insert({ format: 'JSONEachRow' }); tiny sync inserts →TOO_MANY_PARTS. Useasync_insert=1+wait_for_async_insert=1when clients cannot batch. - Specialized engines (Replacing/Summing/Aggregating/Collapsing) need correctness SQL (
FINALor merge-aware aggregation) — merges are eventual. - Prefer insert-only / RMT / MVs over chatty
ALTER UPDATE/DELETEmutations; lightweightDELETE FROMfor row deletes. - Type traps: UInt64 → string in JSON; Decimal as string; Date as
'YYYY-MM-DD'; always setformat: 'JSONEachRow'for object rows (insert default is JSONCompactEachRow). - Always consume or
close()ResultSets — dangling streams causeECONNRESET. - One shared client per process;
close()/await usingon shutdown. Sessions →max_open_connections: 1. - Cloud: HTTPS
:8443, managed replication, no app-levelDistributed(...)— useremoteSecurewhen needed. - Prefer
bun/bunxin command examples.
Verification
Prefer repository-owned commands. For meaningful ClickHouse work, cover the relevant subset:
bun pm ls @clickhouse/clientand Node ≥20.- Smoke:
ping({ select: true }), DDL viacommand,insert+querywithJSONEachRow. - Ingest: batch size / async_insert settings; watch for error 252 too many parts.
- Streaming: full consume or
close(); backpressure on insert streams. - Cloud: TLS URL, credentials/JWT, keep-alive idle TTL < server timeout (~2500 ms client default).
- Schema:
ORDER BYmatches filter patterns; RMT/MV correctness underFINALor merge aggs. - Tests:
@testcontainers/clickhouse+getClientOptions()when integration tests exist.
Report which checks ran, which did not, and version/Cloud assumptions that remain.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

