clickhouse-js-node-rowbinary

clickhouse-js-node-rowbinary is a skill for Claude Code, Codex from ClickHouse/agent-skills. It costs 74 tokens per session (1,233 once invoked), scanned A, original, Apache-2.0.

A guide for choosing how to design ClickHouse, a database built for fast analysis of large data sets. It matches the design to workloads such as monitoring, security analysis, product analytics, IoT, or financial data.

In plain words
What is it for?
Use it to plan ClickHouse data ingestion, table modeling, and broader system architecture for a particular workload.
Why use it?
It helps turn general database advice into workload-specific choices while separating official documentation from derived or experience-based guidance.

Skill for Claude CodeCodex

Part of the clickhouse-best-practices plugin — 11 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/clickhouse/agent-skills/clickhouse-js-node-rowbinary
Any agent
npx skills add ClickHouse/agent-skills --skill clickhouse-js-node-rowbinary
Clone the repo
git clone --depth 1 https://github.com/ClickHouse/agent-skills

Made for: Claude Code, Codex.

Or install clickhouse-best-practices, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clickhouse-js-node-rowbinary

README.md
[![agentmods](https://agentmods.dev/badge/skills/clickhouse/agent-skills/clickhouse-js-node-rowbinary.svg)](https://agentmods.dev/skills/clickhouse/agent-skills/clickhouse-js-node-rowbinary)
Your own site
<a href="https://agentmods.dev/skills/clickhouse/agent-skills/clickhouse-js-node-rowbinary"><img src="https://agentmods.dev/badge/skills/clickhouse/agent-skills/clickhouse-js-node-rowbinary.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,233 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00074 $0.01233
Opus 5 $0.00037 $0.00616
Sonnet 5 $0.00015 $0.00247
Haiku 4.5 $0.00007 $0.00123

Measured 4d ago against content hash b31dff97a6c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

clickhouse-js-node-rowbinary scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 44 executable files (src/examples/carts.ts, src/examples/events.ts, src/examples/iot.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/clickhouse-js-node-rowbinary/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ClickHouse JS RowBinary Codec Generator for Node.js

This skill generates both directions of the wire format: readers (decode bytes → values) and writers (encode values → bytes, the mirror). A given task normally needs only one side. This file is the shared entry point — the format gate plus the principles common to both directions; the per-direction decisions, guidance, and the per-type reference tables live in two sibling files.

Pick your side — read only the one you need:

  • Decoding a RowBinary* response from ClickHouse into JS values → reader.md. Streaming vs whole-buffer, row-objects vs columnar, fixed vs runtime schema, and the per-type reader reference.
  • Encoding JS values into a RowBinary payload to send to ClickHouse → writer.md. The Sink/writeX building blocks, writeRows streaming, and the per-type writer reference.

The per-type code is real, split by direction under src/readers/ and src/writers/.

First: is RowBinary even the right format?

RowBinary exists for throughput, but it is not automatically the fastest path — match the format to the shape of the data before committing to a bespoke parser.

Prefer a JSON* format (e.g. JSONEachRow) when the result is mostly strings / JSON-like values that you consume wholesale — randomly accessing essentially every field, running string/regexp methods on them, treating values as text. V8's native JSON.parse is heavily optimized C++ and builds JS strings and objects faster than a JS-level RowBinary decoder can; pair it with HTTP response compression (gzip / zstd, which crushes JSON's repetitive keys) and the wire cost shrinks too.

RowBinary clearly wins when the result is dominated by:

  • Wide numericsInt128/Int256/UInt128/UInt256, Decimal128/Decimal256.
  • Binary / fixed-width blobsIPv4, IPv6, UUID, FixedString.
  • High-volume fixed-width numeric columns generally, where each value is a single DataView read.

Read the full file on GitHub · 112 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 112 lines · 74 tokens per session scan A b31dff97a6c0

Subscribe to this mod's changes

clickhouse-js-node-rowbinary is a skill published in the GitHub repository ClickHouse/agent-skills (528 stars, last pushed 28d ago), licensed Apache-2.0. It adds 74 tokens to every session and 1,233 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

dbx

DBX CLI for database schema exploration and read-only queries. When the user needs to list connections, explore tables, describe schemas, run queries, or generate AI-friendly schema context from DBX-managed databases. Do NOT use for write operations unless the user explicitly confirms with --allow-writes.

t8y2/dbx · 61 tokens

Addax

Skill "Addax" from wgzhao/Addax, covering skill: addax 项目知识, 1. 项目整体认识, 1.1 项目定位, 1.2 核心价值 and 2. 概念与架构模型.

wgzhao/Addax · 0 tokens

dory

Use Dory as the official AI-native SQL workspace for agents. Use when the user asks to inspect or analyze databases, explore unknown schemas, debug data issues, run read-only SQL through Dory MCP, manage Dory Agent Runs, create or update SQL workspace tabs, work with saved queries, preserve query results, or hand SQL…

dorylab/dory · 80 tokens

clickhouse-analytics

Use when running a ClickHouse server for high-volume OLAP: choosing a MergeTree engine and ORDER BY/PARTITION BY keys, ingesting billions of event/log/metric rows, pre-aggregating with materialized views, or fixing a query that scans instead of pruning. NOT in-process file analytics (that is duckdb), NOT OLTP CRUD…

ericrisco/rsc-harness · 86 tokens

clickhouse-pydantic-config

Generate DBeaver config from Pydantic ClickHouse models. TRIGGERS - DBeaver config, ClickHouse connection, database client config.

terrylica/cc-skills · 38 tokens

ml-data-pipeline-architecture

Patterns for efficient ML data pipelines using Polars, Arrow, and ClickHouse. TRIGGERS - data pipeline, polars vs pandas, arrow format.

terrylica/cc-skills · 38 tokens