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-multi-env-setup

Skill by jeremylongshore

Configures ClickHouse across dev, staging and production with per-environment settings, secrets and schema migrations. Written for teams running separate ClickHouse instances per environment and wiring their secrets and CI/CD.

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

Install clickhouse-multi-env-setup

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-multi-env-setup ~/.claude/skills/clickhouse-multi-env-setup

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

Step-by-step: install clickhouse-multi-env-setup in Claude Code

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

About

This skill sets up separate ClickHouse instances for development, staging, and production. It describes a typed config module that picks the right instance from NODE_ENV, a lazily initialized client factory, and a migration runner that applies sorted SQL files. Secrets stay out of git: dev uses a git-ignored .env.local, while other tiers pull credentials from AWS Secrets Manager, GCP Secret Manager, or Vault.

Startup validation requires a password and HTTPS outside development. Environment guards block TRUNCATE and reset operations in production and catch cross-environment database names. A CI/CD workflow deploys staging automatically and gates production behind manual approval. It is aimed at developers and teams deploying ClickHouse to multiple environments. Monitoring is covered by a separate clickhouse-observability skill.

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

What it can do

  • Typed config moduleDefines one ClickHouse config per environment, keyed by NODE_ENV, with startup validation.
  • Client factoryBuilds a singleton client with getClient() once per process from the resolved config.
  • Per-environment secretsUses a git-ignored .env.local for dev and a secret manager for other tiers.
  • Schema migration runnerApplies sorted .sql files, failing hard in production and logging in dev and staging.
  • Environment guardsProvides requireNonProduction to block TRUNCATE and reset, and validateDatabaseName for cross-environment queries.
  • CI/CD deploy workflowAuto-deploys staging and gates production behind a needs step and manual approval.

What you need

  • ClickHouse Cloud account or self-hosted ClickHouse instances per environment
  • Secret manager: Vault, AWS Secrets Manager, or GCP Secret Manager
  • CI/CD pipeline with environment variables
  • Docker for the local development instance

Try asking

  • Set up dev, staging and production ClickHouse configs for my app
  • Wire ClickHouse credentials from AWS Secrets Manager per environment
  • Add a CI workflow that deploys ClickHouse schema to staging first

Good to know

  • Full code and the CI workflow live in separate reference files, not inline.
  • Production schema migrations fail hard, while dev and staging log and continue.
  • Monitoring and alerting are out of scope and handled by clickhouse-observability.

Security check

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

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

Inside the skill

Allowed tools: ReadWriteEditBash(aws:*)Bash(gcloud:*)Bash(vault:*)

  • SKILL.md6 KB
  • references/examples.md3 KB
  • references/implementation.md6 KB

Alternatives to clickhouse-multi-env-setup

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-multi-env-setup: common questions

Does it support ClickHouse Cloud?

Yes. The source uses ClickHouse Cloud tiers for staging and production and requires HTTPS for non-dev connections.

Which secret managers does it work with?

The source names AWS Secrets Manager, GCP Secret Manager, and HashiCorp Vault for non-dev environments.

Does it block destructive commands in production?

Yes. The requireNonProduction guard blocks TRUNCATE and reset operations in production.

How do I install clickhouse-multi-env-setup?

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

Is clickhouse-multi-env-setup free?

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

Is clickhouse-multi-env-setup 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-multi-env-setup?

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

clickhouse-multi-env-setup Install

Add to stack

Loading.