olap-columnar-analytics-expert

olap-columnar-analytics-expert is a skill for Cursor from roedyrustam/vibes-plug. It costs 45 tokens per session (3,079 once invoked), scanned A, original, MIT.

A guide to analysing large event and business datasets with column-based storage and OLAP tools such as ClickHouse, DuckDB, and Apache Iceberg. OLAP means systems designed for fast summaries and reports rather than individual transaction updates.

In plain words
What is it for?
Use it for usage metering, time-series aggregation, high-volume telemetry, customer dashboards, and analytics over Parquet files or object storage.
Why use it?
It helps keep analytical queries from slowing down a transactional database such as PostgreSQL. It explains how to choose storage and processing options for dashboards, telemetry, and data lakes.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the vibes-plug plugin — 176 skills, 9 agents, 2 MCP servers shipped together

Good fit Use it for usage metering, time-series aggregation, high-volume telemetry, customer dashboards, and analytics over Parquet files or object storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roedyrustam/vibes-plug/olap-columnar-analytics-expert
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 roedyrustam/vibes-plug --skill olap-columnar-analytics-expert
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 176 skills, 9 agents, 2 MCP servers.

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 olap-columnar-analytics-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/olap-columnar-analytics-expert/github.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/olap-columnar-analytics-expert)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/olap-columnar-analytics-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/olap-columnar-analytics-expert/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 olap-columnar-analytics-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/olap-columnar-analytics-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/olap-columnar-analytics-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,079 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.00045 $0.03079
Opus 5.5 $0.00018 $0.01232
Sonnet 5.5 $0.00009 $0.00616
Haiku 4.5 $0.00005 $0.00308

Measured today against content hash 69f8e1ac55f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

olap-columnar-analytics-expert 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 today.

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/olap-columnar-analytics-expert/SKILL.md · 247 lines

How it starts

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

OLAP & Columnar Analytics Expert / Ahli Analitik Kolumnar & OLAP


English

Overview

You are a Staff Data & Analytics Systems Engineer specializing in sub-second OLAP engines (ClickHouse, DuckDB, Apache Iceberg). You prevent catastrophic OLTP PostgreSQL slowdowns by offloading high-cardinality telemetry, billing usage metering, and time-series aggregations to columnar storage with vectorized execution.

1. OLTP vs. OLAP Engine Selection Matrix

Workload Pattern Engine Storage Format Target Latency Why Not OLTP Postgres?
Real-Time SaaS Customer Dashboards (100M+ rows) ClickHouse (MergeTree / SummingMergeTree) Columnar compressed (ZSTD + LowCardinality) < 50ms Postgres B-Tree scans choke on multi-million row GROUP BY
In-Process / Edge / Browser Parquet Analytics DuckDB (Node.js / WASM) Parquet / Arrow zero-copy < 20ms Zero external server cost; runs vectorized SQL directly over S3/R2 Parquet
Multi-Engine Data Lakehouse & Time Travel Apache Iceberg on S3/R2 Parquet + Metadata JSON/Avro < 500ms Decouples compute from petabyte-scale object storage

2. ClickHouse Schema & Incremental Materialized Views

In ClickHouse, primary keys (ORDER BY) define physical sort order on disk (sparse index), not uniqueness:

  • Order keys from lowest cardinality to highest cardinality (e.g., (tenant_id, toStartOfDay(recorded_at), event_type, event_id)).
  • Use LowCardinality(String) for enums/status strings to achieve 10x compression and faster filtering.
  • Use Incremental Materialized Views (AggregatingMergeTree / SummingMergeTree) to compute rollups at ingest time rather than query time.
-- 1. Raw Wide-Event Ingestion Table
CREATE TABLE telemetry_events (
    tenant_id UUID,
    event_id UUID,
    event_type LowCardinality(String),
    model_tier LowCardinality(String),
    prompt_tokens UInt32,
    completion_tokens UInt32,
    cost_micros UInt64,
    latency_ms UInt32,
    recorded_at DateTime64(3, 'UTC')
)
ENGINE = MergeTree()
PARTITION BY toYYYYMM(recorded_at)
ORDER BY (tenant_id, toStartOfHour(recorded_at), event_type, event_id)
TTL toDateTime(recorded_at) + INTERVAL 180 DAY DELETE;

-- 2. Target Rollup Table for Sub-10ms Billing & Usage Dashboards
CREATE TABLE tenant_hourly_usage_rollup (
    tenant_id UUID,
    hour_bucket DateTime('UTC'),
    event_type LowCardinality(String),
    model_tier LowCardinality(String),
    total_events SimpleAggregateFunction(sum, UInt64),
    total_tokens SimpleAggregateFunction(sum, UInt64),
    total_cost_micros SimpleAggregateFunction(sum, UInt64),
    p95_latency_ms AggregateFunction(quantile(0.95), UInt32)
)
ENGINE = AggregatingMergeTree()
PARTITION BY toYYYYMM(hour_bucket)
ORDER BY (tenant_id, hour_bucket, event_type, model_tier);

-- 3. Real-Time Incremental Materialized View Triggered on Insert
CREATE MATERIALIZED VIEW mv_tenant_hourly_usage
TO tenant_hourly_usage_rollup
AS SELECT
    tenant_id,
    toStartOfHour(recorded_at) AS hour_bucket,
    event_type,
    model_tier,
    count() AS total_events,
    sum(prompt_tokens + completion_tokens) AS total_tokens,
    sum(cost_micros) AS total_cost_micros,
    quantileState(0.95)(latency_ms) AS p95_latency_ms
FROM telemetry_events
GROUP BY tenant_id, hour_bucket, event_type, model_tier;

Read the full file on GitHub · 247 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. today Changed · -26 tokens per session 69f8e1ac55f8
  2. 2d ago Changed · +71 lines 52a032c6a188
  3. 3d ago First seen · 176 lines · 71 tokens per session scan A 06d4f6ae24b2

Subscribe to this mod's changes

olap-columnar-analytics-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (114 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 3,079 once invoked, about $0.0002 per session on Opus 5.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-10-24.

Related

Other skills, from other repositories

postgresql-table-design

Design a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.

chidekina/aria-superpowers · 31 tokens

deprecation-and-migration

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset…

addyosmani/agent-skills · 69 tokens

schema

Designing database schemas, migrations, and multi-tenant architecture: RLS, tenant routing, provisioning, quotas, and isolation. Not for query-plan tuning (Tuner).

simota/agent-skills · 37 tokens

seek

Designing search engines and vector DBs for full-text, vector, and hybrid retrieval, including permission-aware retrieval for multi-tenant or per-role corpora. Use for search design, index optimization, the RAG retrieval layer, or deciding where ACL filtering belongs in the query path.

simota/agent-skills · 59 tokens

system-and-data-design

Decide whether the system will hold, and where the data lives: requirements and load first, then back-of-the-envelope numbers, building blocks (cache, queue, load balancer, CDN), and the data layer in depth — storage engines, indexes, replication, partitioning, transactions and consistency, batch vs stream. Use when…

AnastasiyaW/codex-claude-code-config · 217 tokens

tuner

Tuning database queries via EXPLAIN ANALYZE, query plan optimization, index recommendations, and slow query detection. Not for schema/migrations (Schema) or non-DB performance (Bolt).

simota/agent-skills · 43 tokens