clickhouse-io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Skill by LuciferDono
Chalk Labs
Need help deploying clickhouse-io?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/luciferdono-clickhouse-io
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
clickhouse-io- Description
- ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
- License
- MIT
- Instructions
- 426 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# ClickHouse 分析パターン
高性能分析とデータエンジニアリングのためのClickHouse固有のパターン。
## 概要
ClickHouseは、オンライン分析処理(OLAP)用のカラム指向データベース管理システム(DBMS)です。大規模データセットに対する高速分析クエリに最適化されています。
**主な機能:**
- カラム指向ストレージ
- データ圧縮
- 並列クエリ実行
- 分散クエリ
- リアルタイム分析
## テーブル設計パターン
### MergeTreeエンジン(最も一般的)
```sql
CREATE TABLE markets_analytics (
date Date,
market_id String,
market_name String,
volume UInt64,
trades UInt32,
unique_traders UInt32,
avg_trade_size Float64,
created_at DateTime
) ENGINE = MergeTree()
PARTITION BY toYYYYMM(date)
ORDER BY (date, market_id)
SETTINGS index_granularity = 8192;
```
### ReplacingMergeTree(重複排除)
```sql
-- 重複がある可能性のあるデータ(複数のソースからなど)用
CREATE TABLE user_events (
event_id String,
user_id String,
event_type String,
timestamp DateTime,
properties String
) ENGINE = ReplacingMergeTree()
PARTITION BY toYYYYMM(timestamp)
ORDER BY (user_id, event_id, timestamp)
PRIMARY KEY (user_id, event_id);
```
### AggregatingMergeTree(事前集計)
```sql
-- 集計メトリクスの維持用
CREATE TABLE market_stats_hourly (
hour DateTime,
market_id String,
total_volume AggregateFunction(sum, UInt64),
total_trades AggregateFunction(count, UInt32),
unique_users AggregateFunction(uniq, String)
) ENGINE = AggregatingMergeTree()
PARTITION BY toYYYYMM(hour)
ORDER BY (hour, market_id);
-- 集計データのクエリ
SELECT
hour,
market_id,
sumMerge(total_volume) AS volume,
countMerge(total_trades) AS trades,
uniqMerge(unique_users) AS users
FROM market_stats_hourly
WHERE hour >= toStartOfHour(now() - INTERVAL 24 HOUR)
GROUP BY hour, market_id
ORDER BY hour DESC;
```
## クエリ最適化パターン
### 効率的なフィルタリング
```sql
-- ✅ 良い: インデックス列を最初に使用
SELECT *
FROM markets_analytics
WHERE date >= '2025-01-01'
AND market_id = 'market-123'
AND volume > 1000
ORDER BY date DESC
LIMIT 100;
-- ❌ 悪い: インデックスのない列を最初にフィルタリング
SELECT *
FROM markets_analytics
WHERE volume > 1000
AND market_name LIKE '%election%'
AND date >= '2025-01-01';
```
### 集計
```sql
-- ✅ 良い: ClickHouse固有の集計関数を使用
SELECT
toStartOfDay(created_at) AS day,
market_id,
sum(volume) AS total_volume,
count() AS total_trades,
uniq(trader_id) AS unique_traders,
avg(trade_size) AS avg_size
FROM trades
WHERE created_at >= today() - INTERVAL 7 DAY
GROUP BY day, market_id
ORDER BY day DESC, total_volume DESC;
-- ✅ パーセンタイルにはquantileを使用(percentileより効率的)
SELECT
quantile(0.50)(trade_size) AS median,From LuciferDono/LABS, MIT.
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 20, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/LuciferDono/LABS
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.406score
clickhouse-io
vibeeval
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillDFreshness: D★ 540Claude Code +9 - 0.397score
clickhouse-io
sharkrebel
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillAFreshness: A★ 73Claude Code +9 - 0.348score
clickhouse-io
Jamkris
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillCFreshness: C★ 91Claude Code +9 - 0.336score
clickhouse-io
sakuradairong
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillCFreshness: C★ 48Claude Code +9 - 0.307score
clickhouse-io
PatriotAgenticLLC
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillCFreshness: C★ 3Claude Code +9 - 0.299score
clickhouse-io
marshall0524
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillDFreshness: D★ 41Claude Code +9 - 0.294score
clickhouse-io
Luohaothu
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillDFreshness: D★ 26Claude Code +9 - 0.294score
clickhouse-io
Luohaothu
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillDFreshness: D★ 26Claude Code +9 - 0.261score
clickhouse-io
thekiwidev
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillDFreshness: D★ 2Claude Code +9 - 0.241score
clickhouse-io
Sraldon24
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillDFreshness: DClaude Code +9 - 0.231score
clickhouse-io
agent-skills-hub
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
SkillDFreshness: D★ 123Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get clickhouse-io running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
clickhouse-io skill. Agent Mart. https://agentmart.dev/skills/luciferdono-clickhouse-io (last updated 2026-10-24)