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-js-node-coding

Skill by ClickHouse

Guides an AI assistant to write application code with the ClickHouse Node.js client (@clickhouse/client). It covers client setup, inserts, selects, query parameters, sessions and data types. It is for Node.js runtimes only.

  • Score 84
  • 331 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clickhouse-js-node-coding

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ClickHouse/clickhouse-js /tmp/clickhouse-js && mkdir -p ~/.claude/skills && cp -r /tmp/clickhouse-js/skills/clickhouse-js-node-coding ~/.claude/skills/clickhouse-js-node-coding

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

Step-by-step: install clickhouse-js-node-coding in Claude Code

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

About

This skill is a set of coding references for the ClickHouse Node.js client, the @clickhouse/client package. A task index maps common requests, such as configuring the client, inserting rows, selecting results or binding query parameters, to a matching reference file. The assistant reads that file before writing code.

The guidance favors JSONEachRow for typical inserts and selects, and query_params for user-supplied values instead of template-literal SQL. It also covers ping, compression, async inserts, sessions with temporary tables, modern data types and custom JSON parsing. The source says it is for Node.js runtimes only and not for browser, Web Worker, Edge or Cloudflare Workers code, which should use @clickhouse/client-web. It is aimed at developers building applications against ClickHouse.

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

What it can do

  • Configure the clientCovers createClient calls, URL parameters, clickhouse_settings and custom HTTP headers.
  • Compress requests and responsesExplains gzip and zstd compression options and their Node version requirements.
  • Ping the serverShows health checks that return success or an error without throwing on connection failure.
  • Choose an insert formatCompares JSONEachRow, JSON and JSONObjectEachRow for inserting rows.
  • Insert into a subset of columnsCovers insert with columns, excluded columns, ephemeral columns and cross-database inserts.
  • Insert values and expressionsCovers INSERT with SQL functions, dates, decimals and INSERT SELECT.
  • Async insertsExplains server-side batching with async_insert and fire-and-forget versus waiting for acknowledgement.
  • Select and parse resultsCovers reading rows with JSONEachRow and JSON formats and picking a select format.
  • Parameterize queriesShows binding values with the native {name: Type} syntax to avoid SQL injection.
  • Sessions and temporary tablesCovers session_id, CREATE TEMPORARY TABLE and per-session SET commands.

What you need

  • Node.js runtime
  • @clickhouse/client package
  • ClickHouse server 25.6 or later for Time and Time64 types

Try asking

  • Write Node.js code to insert rows into ClickHouse with JSONEachRow
  • Show me how to bind query parameters safely with the ClickHouse Node client
  • Set up a ClickHouse Node.js client with compression and a ping health check

Good to know

  • Node.js runtime only. Not for browser, Web Worker, Edge or Cloudflare Workers code.
  • Browser and edge code should use @clickhouse/client-web instead.
  • Errors and troubleshooting are handled by a separate troubleshooting skill.
  • Streaming, Parquet and bulk performance topics are covered in external examples.

Security check

A

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

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

Inside the skill

  • SKILL.md11 KB
  • reference/async-insert.md4 KB
  • reference/client-configuration.md5 KB
  • reference/compression.md5 KB
  • reference/custom-json.md7 KB
Show all 13 files
  • reference/data-types.md11 KB
  • reference/insert-columns.md3 KB
  • reference/insert-formats.md6 KB
  • reference/insert-values.md6 KB
  • reference/ping.md5 KB
  • reference/query-parameters.md5 KB
  • reference/select-formats.md7 KB
  • reference/sessions.md7 KB

Alternatives to clickhouse-js-node-coding

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-js-node-coding: common questions

Can I use this skill for browser code with the ClickHouse client?

No. The source says this skill is for the Node.js runtime only. For browser and edge environments it names @clickhouse/client-web as the correct package.

How should I pass user values into ClickHouse queries?

The source says to use query_params for user-supplied values and never template-literal interpolation. It names interpolation as a SQL injection risk.

Which insert format does the skill recommend?

The source recommends JSONEachRow for typical row inserts and selects, unless the user has chosen another format or is streaming raw bytes such as CSV, TSV or Parquet.

How do I install clickhouse-js-node-coding?

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

Is clickhouse-js-node-coding free?

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

Is clickhouse-js-node-coding safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality B. 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-js-node-coding?

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

clickhouse-js-node-coding Install

Add to stack

Loading.