Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clickhouse-reference-architecture

Skill by jeremylongshore

Gives an AI assistant production reference patterns for ClickHouse analytics applications, covering project layout, data flow, schema design, and multi-tenancy. Intended for teams designing a new ClickHouse system or reviewing an existing one.

  • Score 77
  • 2.9k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clickhouse-reference-architecture

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clickhouse-reference-architecture ~/.claude/skills/clickhouse-reference-architecture

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clickhouse-reference-architecture in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The ClickHouse Reference Architecture skill gives an AI assistant a set of production patterns for ClickHouse-backed analytics applications. It covers project layout, a one-way data flow from sources through batched ingestion into ClickHouse, a three-layer schema of raw events and hourly and daily aggregates, and multi-tenant isolation options. The skill points to reference files for full DDL, tenancy trade-offs, and client code.

The skill works through five steps and ends with an architecture decision record table covering engine, tenancy, ingestion, aggregation, format, and compression. It is intended for teams designing a new ClickHouse system, reviewing an existing analytics architecture, or setting standards for ClickHouse integrations. It uses Read and Grep to inspect existing code, and its client examples use a TypeScript or Node.js project.

Written from the project's SKILL.md and checked against it.

What it can do

  • Project layoutLays out a ClickHouse project with SQL DDL as the source of truth.
  • Data flow designDescribes a one-way flow from sources through batched ingestion into ClickHouse.
  • Three-layer schemaOutlines raw MergeTree events and hourly and daily aggregates fed by materialized views.
  • Multi-tenant patternsCompares a shared table with tenant_id, database-per-tenant, and row policies.
  • Client moduleSets out a singleton @clickhouse/client with parameterized queries on aggregate tables.
  • Architecture decision recordProvides a table of engine, tenancy, ingestion, aggregation, format, and compression choices.
  • Integration reviewGreps for createClient( and raw-table SELECTs to flag queries against events_raw.
  • Common issue fixesMaps problems such as cross-tenant leaks and slow dashboards to suggested solutions.

What you need

  • Understanding of ClickHouse fundamentals
  • TypeScript or Node.js project
  • Claude Code

Try asking

  • Design a multi-tenant ClickHouse analytics platform for my SaaS app
  • Review my ClickHouse API layer and flag queries hitting the raw table
  • Suggest a ClickHouse project layout with schemas, queries and ingestion

Good to know

  • Allowed tools are Read and Grep only.
  • Client examples use @clickhouse/client.
  • Multi-environment configuration is covered by a separate clickhouse-multi-env-setup skill.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/.curated/clickhouse-reference-architecture/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadGrep

Alternatives to clickhouse-reference-architecture

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

clickhouse-reference-architecture: common questions

Which isolation strategy does this skill recommend for multi-tenant ClickHouse?

It defaults to a shared table with tenant_id first in ORDER BY, which the source says scales to 10K+ tenants. Database-per-tenant and row-level security are listed as alternatives with trade-offs.

Should dashboards query the raw events table?

No. The source says the API should read only aggregate tables, and querying raw events is listed as a cause of slow dashboard queries.

What knowledge is needed before using this skill?

The source expects understanding of ClickHouse table engines, ORDER BY sort keys, and partitioning. It also assumes a TypeScript or Node.js project for the client examples.

How do I install clickhouse-reference-architecture?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clickhouse-reference-architecture free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is clickhouse-reference-architecture safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to clickhouse-reference-architecture?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

clickhouse-reference-architecture Install

Add to stack

Loading.