clickhouse-real-time-analytics

clickhouse-real-time-analytics is a skill for Claude Code, Codex from vaquarkhan/data-engineering-agent-skills. It costs 44 tokens per session (991 once invoked), scanned A, original, MIT.

A guide to using ClickHouse, a database built for fast analysis of large event datasets. It covers table design, data loading, precomputed results, and queries for dashboards or metrics.

In plain words
What is it for?
Use it to design event analytics, real-time dashboards, metric APIs, aggregations, and materialized views in ClickHouse.
Why use it?
It helps avoid slow analytical queries and poorly structured tables when data must be available within seconds or minutes. It also addresses freshness, traffic, and operating cost.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design event analytics, real-time dashboards, metric APIs, aggregations, and materialized views in ClickHouse.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vaquarkhan/data-engineering-agent-skills/clickhouse-real-time-analytics
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.

Any agent
npx skills add vaquarkhan/data-engineering-agent-skills --skill clickhouse-real-time-analytics
Clone the repo
git clone --depth 1 https://github.com/vaquarkhan/data-engineering-agent-skills

Made for: Claude Code, Codex.

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-real-time-analytics

README.md
[![agentmods](https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/clickhouse-real-time-analytics/github.svg)](https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/clickhouse-real-time-analytics)
Your own site
<a href="https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/clickhouse-real-time-analytics"><img src="https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/clickhouse-real-time-analytics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clickhouse-real-time-analytics

Your own site · 80×15
<a href="https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/clickhouse-real-time-analytics"><img src="https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/clickhouse-real-time-analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 991 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00044 $0.00991
Opus 5 $0.00022 $0.00495
Sonnet 5 $0.00009 $0.00198
Haiku 4.5 $0.00004 $0.00099

Measured 10d ago against content hash ee91c7005248, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

clickhouse-real-time-analytics 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 10d ago.

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-real-time-analytics/SKILL.md · 92 lines

How it starts

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

ClickHouse Real Time Analytics

Overview

Use this skill when ClickHouse is the target for low-latency analytical serving. It helps agents design ingestion, partitioning, materialized views, and query-ready schemas for fast reads while maintaining operational safety and cost control.

When to Use

  • designing or modifying ClickHouse tables for real-time analytics
  • building event-heavy analytical aggregation layers
  • creating materialized views for pre-computed metrics
  • optimizing low-latency dashboards and metric APIs
  • planning ingestion patterns for high-throughput event streams

Do not use this when the workload is better served by a transactional database or a batch-oriented warehouse with no latency requirement.

Workflow

  1. Define latency, freshness, and query access patterns. Include:

    • acceptable query latency targets (p50, p99)
    • data freshness requirements (seconds, minutes, eventual)
    • primary query patterns (point lookups, time-range scans, aggregations)
    • expected concurrent query load and user base
  2. Choose the right table engine and schema design.

    • MergeTree family for most analytical workloads
    • ReplacingMergeTree for deduplication on eventual consistency
    • AggregatingMergeTree for pre-aggregated rollups
    • CollapsingMergeTree or VersionedCollapsingMergeTree for mutable state
    • define sort keys aligned with primary query filters
    • choose partition keys for lifecycle management, not query speed
  3. Design ingestion for throughput and merge safety.

    • batch inserts over single-row writes (target 1000+ rows per insert)
    • avoid too many partitions — high partition counts cause merge pressure
    • use Buffer tables or async insert when write concurrency is high
    • define deduplication strategy if at-least-once delivery is the source guarantee
  4. Build materialized views with explicit contracts.

    • materialized views are insert-triggered, not retroactive
    • define what happens when the source schema changes
    • document the lag between source insert and view availability
    • test that view aggregations remain correct after merges

Read the full file on GitHub · 92 lines

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. 10d ago First seen · 92 lines · 44 tokens per session scan A ee91c7005248

Subscribe to this mod's changes

clickhouse-real-time-analytics is a skill published in the GitHub repository vaquarkhan/data-engineering-agent-skills (44 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 991 once invoked, about $0.0002 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.