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-local-dev-loop

Skill by jeremylongshore

Sets up a local ClickHouse development loop using Docker Compose, with schema init, seed data, a client singleton and vitest integration tests. It is for developers who want to run and test ClickHouse on localhost.

  • Score 80
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clickhouse-local-dev-loop

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-local-dev-loop ~/.claude/skills/clickhouse-local-dev-loop

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

Step-by-step: install clickhouse-local-dev-loop in Claude Code

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

About

This skill scaffolds a local ClickHouse dev environment built on Docker Compose. The compose file exposes HTTP port 8123 and native port 9000, and mounts an init-db folder so schema SQL runs automatically on the container's first start. It also adds a seed script that batch-inserts synthetic rows, and a reusable client singleton that reads connection settings from environment variables with localhost fallbacks.

It includes a vitest integration harness that truncates tables between tests and closes the client afterward. Package.json scripts cover up, down, reset, seed, shell and test. It suits developers who want to run ClickHouse locally, write integration tests against it, or iterate on schema and queries. Everything runs on localhost, and the source states that no cloud account or network access is required.

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

What it can do

  • Docker Compose setupWrites a docker-compose.yml that runs the ClickHouse server with ports 8123 and 9000.
  • Init scriptAdds init-db/001-schema.sql, which ClickHouse runs automatically on first container start.
  • Seed dataCreates scripts/seed.ts to batch-insert synthetic rows through the client.
  • Client singletonProvides a memoized getClient() in src/db.ts that reads connection settings from env vars.
  • Integration testingSets up vitest tests that truncate tables in beforeEach and close the client in afterAll.
  • Package scriptsAdds db:up, db:down, db:reset, db:seed, db:shell and test scripts to package.json.

What you need

  • Docker or Docker Compose installed and running
  • Node.js 18 or later
  • The @clickhouse/client package
  • A local project directory

Try asking

  • Set up a local ClickHouse dev environment with Docker Compose
  • Write a vitest setup that truncates ClickHouse tables before each test
  • Create a seed script that inserts 1000 synthetic events into ClickHouse

Good to know

  • Local development setup only, with no ClickHouse Cloud service.
  • The dev_password credential is meant only for local development.
  • Large queries may need more memory for the Docker container.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

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

Inside the skill

Allowed tools: ReadWriteEditBash(docker:*)Bash(docker-compose:*)

  • SKILL.md6 KB
  • references/examples.md2 KB
  • references/implementation.md5 KB

Alternatives to clickhouse-local-dev-loop

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-local-dev-loop: common questions

Does this need a ClickHouse Cloud account?

No. The source says this is a local dev setup with no external ClickHouse Cloud service, and everything runs on localhost.

Where are the database credentials kept?

The container credentials are declared inline in docker-compose.yml. Per-developer overrides go in a git-ignored .env.local file, and only a .env.example is committed.

What runs when the container first starts?

ClickHouse automatically runs the SQL files mounted from ./init-db, such as 001-schema.sql, which creates the database and tables.

How do I install clickhouse-local-dev-loop?

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

Is clickhouse-local-dev-loop free?

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

Is clickhouse-local-dev-loop safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to clickhouse-local-dev-loop?

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

clickhouse-local-dev-loop Install

Add to stack

Loading.