chdb-datastore
Use when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or…
Write idiomatic application code with the ClickHouse Node.js client (`@clickhouse/client`). Use this skill whenever a user is *building* against the Node.js client — configuring the client, pinging, inserting rows in JSON or raw formats, selecting and parsing results, binding
Claude Code
$ npx -y skills add clickhouse/agent-skills --skill clickhouse-js-node-coding --agent claude-code
Codex
$ npx skills add clickhouse/agent-skills --skill clickhouse-js-node-coding -a codex -y
Cursor
$ npx skills add clickhouse/agent-skills --skill clickhouse-js-node-coding -a cursor -y
Gemini CLI
$ npx skills add clickhouse/agent-skills --skill clickhouse-js-node-coding -a gemini-cli -y
GitHub Copilot
$ npx skills add clickhouse/agent-skills --skill clickhouse-js-node-coding -a github-copilot -y
OpenCode
$ npx skills add clickhouse/agent-skills --skill clickhouse-js-node-coding -a opencode -y
Windsurf
$ npx skills add clickhouse/agent-skills --skill clickhouse-js-node-coding -a windsurf -y
name: clickhouse-js-node-coding description: > Write idiomatic application code with the ClickHouse Node.js client (`@clickhouse/client`). Use this skill whenever a user is *building* against the Node.js client — configuring the client, pinging, inserting rows in JSON or raw formats, selecting and parsing results, binding query parameters, managing sessions and temporary tables, working with data types or customizing JSON parsing. Do NOT use for browser/Web client code.
Reference: https://clickhouse.com/docs/integrations/javascript
> **⚠️ Node.js runtime only.** This skill covers the `@clickhouse/client` > package running in a **Node.js runtime** exclusively — including **Next.js > Node runtime** API routes, React Server Components, Server Actions, and > standard Node.js processes. Do **not** apply this skill to browser client > components, Web Workers, **Next.js Edge runtime**, Cloudflare Workers, or > any usage of `@clickhouse/client-web`. For browser/edge environments, the > correct package is `@clickhouse/client-web`.
---
1. **Match the user's intent** to a row in the Task Index below and read the corresponding reference file before writing code. After reading it, scan any **Answer checklist** in that reference and make sure the final answer covers each relevant item; those checklists capture details users usually need but are easy to omit in short answers. 2. **Always import from `@clickhouse/client`** (never `@clickhouse/client-web`) and create a client with `createClient({ url })` or rely on supported defaults when appropriate. Close it with `await client.close()` preferably when it's no longer needed or during graceful shutdown for global resources. 3. **Prefer `JSONEachRow` for typical row inserts/selects** unless the user has already chosen another format or is streaming raw bytes (CSV / TSV / Parquet — see `examples/node/performance/`). **Note on `clickhouse_settings`:** settings passed to `createClient` are defaults for every request; they can be overridden per-call by passing `clickhouse_settings` directly to `insert()`, `query()`, or `command()`. Always mention this when the user configures settings at the client level. 4. **Always use `query_params` for user-supplied values** — never template- literal-interpolate them into SQL. See `reference/query-parameters.md`. **When answering a parameter-binding question, your response must explicitly name template-literal interpolation as a "SQL injection risk"** — even when the user only asked about syntax and did not raise security. The literal phrase "SQL injection" needs to appear; this is the most common mistake from PostgreSQL/MySQL users and the security framing is part of the correct answer, not an optional aside. 5. **Pick the right method for the job:**
rows that return data.
(`CREATE`, `DROP`, `TRUNCATE`, `ALTER`, `SET` in a session, etc.).
statement (rare in coding scenarios).
throws on connection failure. 6. **Note version constraints** when relevant. Examples:
`24.5` / `24.8` (no longer experimental since `25.3`).
---
Identify the user's task and read the matching reference file.
| Task | Triggers / symptoms | Reference file | | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | | **Configure / connect the client** | Building a `createClient` call, URL parameters, `clickhouse_settings`, default format, custom HTTP headers | `reference/client-configuration.md` | | **Compress requests / responses** | `compression`, gzip vs `zstd`, `{ codec }` option shape, Node version requirements, web limitations | `reference/compression.md` | | **Ping the server** | Health checks, readiness probes, "is ClickHouse up?" | `reference/ping.md` | | **Choose an insert format** | "Which format should I use to insert?", JSON vs raw, `JSONEachRow` vs `JSON` vs `JSONObjectEachRow`
The official Agent Skills for ClickHouse. These skills help LLMs and agents to adopt best practices when working with ClickHouse and chdb (in-process ClickHouse for Python). You can use these skills with open-source ClickHouse and managed ClickHouse Cloud.
Use when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or…
Use when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote…
MUST USE when designing ClickHouse architectures, selecting between ingestion or modeling patterns, or translating best practices…
MUST USE when reviewing ClickHouse schemas, queries, native full-text search, or configurations. Contains 36 rules that MUST be…
Generate TypeScript/JavaScript code that reads/decodes AND writes/encodes ClickHouse RowBinary streams for the ClickHouse HTTP…
Troubleshoot and resolve common issues with the ClickHouse Node.js client (@clickhouse/client). Use this skill whenever a user…
Sweep the googleapis/mcp-toolbox docs for broken and non-canonical links, report each finding with its cause, and apply the safe…
Create reusable Convex components with clear boundaries and a small app-facing API.