Skip to main content
skill CX Codex

clickhouse-architecture-advisor — Claude Code skill: how to install

Provides workload-aware architectural guidance for ClickHouse, covering ingestion strategies and time-series schema design. Links recommendations directly to official documentation.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ClickHouse/agent-skills --skill clickhouse-architecture-advisor -a claude-code
Open on GitHub

What clickhouse-architecture-advisor does

The skill evaluates workload profiles before proposing architecture decisions. It maps project requirements against distinct patterns such as telemetry or product analytics. Using dedicated decision files in rules/, the assistant determines suitable approaches for streaming ingestion and schema partitioning.

Every recommendation receives an explicit provenance label: official for statements backed directly by documentation, derived for logical deductions, or field for situational heuristics. When giving field guidance, the skill must explicitly state that the advice is heuristic, link partially applicable documentation from mappings/doc_links.yaml, and explain operational tradeoffs. This prevents situational heuristics from passing as verified vendor standards.

Output follows a fixed structure. Responses include workload summaries, core decisions, and verification steps using SQL smoke tests or operational metrics. The skill builds directly on top of clickhouse-best-practices.

What it helps with

  • design streaming ingestion patterns for high-throughput event data
  • plan time-series partitioning and retention rules in ClickHouse
  • structure real-time preaggregation models for low-latency queries
  • configure dimension lookups and join enrichment without operational bottlenecks

Example prompts for the agent

  • Design a ClickHouse ingestion and partitioning strategy for IoT telemetry data
  • How should I structure real-time preaggregation for high-volume event logs?
  • Recommend an architecture pattern for handling late-arriving upserts in ClickHouse

How to install clickhouse-architecture-advisor

1Skills CLI (Vercel)

npx skills add ClickHouse/agent-skills --skill clickhouse-architecture-advisor -a claude-code

2Manually: put the files in place

~/.claude/skills/clickhouse-architecture-advisor/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/clickhouse-architecture-advisor/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about clickhouse-architecture-advisor

How do I install clickhouse-architecture-advisor in Claude Code?

Run npx skills add ClickHouse/agent-skills --skill clickhouse-architecture-advisor -a claude-code. The skill file is placed in ~/.claude/skills/clickhouse-architecture-advisor/SKILL.md.

What does clickhouse-architecture-advisor do?

It generates workload-specific system designs for ClickHouse, covering ingestion strategies, table modeling, and query patterns. Every output includes concrete SQL smoke tests and links to official documentation.

What do official, derived, and field labels mean?

The official label denotes advice directly backed by ClickHouse documentation. The derived label means the recommendation follows logically from documented system behavior, while field highlights heuristic guidance that depends on workload context.

Source text

SKILL.md · Apache-2.0
---
name: clickhouse-architecture-advisor
description: MUST USE when designing ClickHouse architectures, selecting between ingestion or modeling patterns, or translating best practices into workload-specific system designs. Complements clickhouse-best-practices with decision frameworks and explicit provenance labels.
license: Apache-2.0
metadata:
  author: ClickHouse Inc
  version: "0.1.0"
---

# ClickHouse Architecture Advisor

This skill adds workload-aware architecture decisioning on top of `clickhouse-best-practices`.

> **Official docs remain the source of truth.**
> This skill must always prefer official ClickHouse documentation when available.

## Required behavior

Before producing recommendations:

1. Identify the workload shape
   - observability
   - security / SIEM
   - product analytics
   - IoT / telemetry
   - market data / financial services
   - mixed OLAP with point-lookups
2. Read the relevant decision rule files in `rules/`
3. Use `mappings/doc_links.yaml` to attach official documentation
4. Classify every recommendation as:
   - `official`
   - `derived`
   - `field`
5. Never present field guidance as official guidance
6. If a recommendation is uncertain, say so explicitly

## Provenance rules

### `official`
Use this when the recommendation is directly backed by official docs.

### `derived`
Use this when the recommendation is not stated verbatim in docs but follows logically from documented ClickHouse behavior.

### `field`
Use this only for experience-based guidance that may be situational.
When using `field`, include:
- a disclaimer that the advice is heuristic
- a relevant official doc if one partially applies
- the reason the advice depends on workload context

## Read these rule files by scenario

### Real-time ingestion design
1. `rules/decision-ingestion-strategy.md`
2. `rules/decision-real-time-preaggregation.md`
3. Relevant best-practices insert rules

### Time-series and retention design
1. `rules/decision-partitioning-timeseries.md`
2. Relevant best-practices schema partition rules

### Enrichment and dimension lookups
1. `rules/decision-join-enrichment.md`
2. Relevant best-practices query join rules

### Mutable state / late-arriving events
1. `rules/decision-late-arriving-upserts.md`
2. Relevant best-practices mutation avoidance rules

## Output format

Structure responses like this:

```markdown
## Workload Summary
- workload:
- latency target:
- data shape:
- primary query patterns:
- operational constraints:

## Key Decisions
- ...
- ...

## Recommendations

### <Recommendation title>

**What**
...

**Why**
...

**How**
...

**Category**
official | derived | field

**Confidence**
high | medium | heuristic

**Source**
- doc link(s)

**Validation**
- concrete SQL, metric, or smoke test
```

## Architecture-specific guidance

Prefer decision frameworks over generic advice. Good responses should:
- explain tradeoffs
- identify the likely operating bottleneck
- separate immediate actions from structural redesign
- provide target architecture patterns, not just isolated settings

## Full reference

See `AGENTS.md` for the compiled version and `examples/` for sample outputs.

© ClickHouse Inc · Apache-2.0 · ClickHouse/agent-skills

Similar skills

All skills for Data and databases →

From the same set8

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor