Skip to content
Back to skills

Clickhouse Io

ASecurity

Use when clickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads. Triggers on \"clickhouse-io\", \"clickhouse io\".

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentsgosqldatabaseperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add majinmagros/magros.ai-skills --skill clickhouse-io --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clickhouse Io?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clickhouse Io
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majinmagros-clickhouse-io/badge)](https://www.skillsdirectory.com/skills/majinmagros-clickhouse-io)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clickhouse-io
description: "Use when clickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads. Triggers on \"clickhouse-io\", \"clickhouse io\"."
metadata:
  origin: ECC
---

# ClickHouse Analytics Patterns

Column-oriented OLAP patterns: table design, query optimization, ingestion, materialized views, analytics queries. Detalhes em `references/`.

## When to Activate

- Designing ClickHouse table schemas (MergeTree engine selection)
- Writing analytical queries (aggregations, window functions, joins)
- Optimizing query performance (partition pruning, projections, materialized views)
- Ingesting large volumes of data (batch inserts, Kafka integration)
- Migrating from PostgreSQL/MySQL to ClickHouse for analytics
- Implementing real-time dashboards or time-series analytics

## Core Rules

Design tables for your query patterns, batch inserts, materialized views for real-time aggregations. Filter indexed columns first; batch, never loop single inserts.

```sql
CREATE TABLE markets_analytics (
    date Date, market_id String, volume UInt64
) ENGINE = MergeTree()
PARTITION BY toYYYYMM(date)
ORDER BY (date, market_id);
```

## References

- `references/table-design.md` — MergeTree, ReplacingMergeTree, AggregatingMergeTree
- `references/query-optimization.md` — filtering, aggregations, quantile, window functions
- `references/ingestion.md` — bulk/streaming inserts, ETL, CDC from PostgreSQL
- `references/views-monitoring.md` — materialized views, slow-query log, table sizes
- `references/analytics-queries.md` — time series, retention, funnel, cohorts

## Checklist

- [ ] Partition by time (month/day); avoid partition explosion
- [ ] ORDER BY filtered columns first; high cardinality first
- [ ] Smallest types (`UInt32` vs `UInt64`); `LowCardinality` strings; `Enum` categoricals
- [ ] No `SELECT *`, no `FINAL`, denormalize instead of JOINs
- [ ] Batch inserts only — never single inserts in a loop
- [ ] Track slow-query log, disk usage, merge operations

Files in this skill

  • SKILL.md2 KB
  • references/analytics-queries.md1.8 KB
  • references/ingestion.md2.5 KB
  • references/query-optimization.md1.4 KB
  • references/table-design.md1.5 KB
  • references/views-monitoring.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.