terrylica avatar

Clickhouse Architect

If you're designing ClickHouse schemas, this skill walks you through the critical decisions: ORDER BY key selection (3-5 columns, lowest cardinality first), compression codec matching (DoubleDelta for timestamps, Gorilla for floats, T64 for counters), and partition strategies for data lifecycle management. It's opinionated about what matters (ORDER BY is everything) and what doesn't (partitioning is for TTLs, not query speed). The anti-patterns checklist is especially useful since it notes what's actually been fixed in recent versions, like the 1700x improvement in mutations for v24.4+. Covers both ClickHouse Cloud and self-hosted deployments with concrete SQL examples throughout.

skills.sh installs
157
GitHub stars
2
last updated
Aug 21, 2026

Install

$ npx -y skills add terrylica/cc-skills --skill clickhouse-architect --agent claude-code

Installs into .claude/skills of the current project.

Files

ClickHouse Architect

Prescriptive schema design, compression selection, and performance optimization for ClickHouse (v24.4+). Covers both ClickHouse Cloud (SharedMergeTree) and self-hosted (ReplicatedMergeTree) deployments.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

Use this skill when:

  • Designing ClickHouse table schemas with ORDER BY key selection
  • Selecting compression codecs for column types
  • Configuring partition keys for data lifecycle management
  • Adding performance accelerators (projections, indexes, dictionaries)
  • Auditing and optimizing existing ClickHouse schemas

Core Methodology

Schema Design Workflow

Follow this sequence when designing or reviewing ClickHouse schemas:

Sponsors

Details

Repository
github.com/terrylica/cc-skills
Categories
Code Review & Quality, Design & UI/UX, Databases
First seen
Jun 3, 2026

More from terrylica/cc-skills

All 15
1dhruvanbhalara avatarflutter-architecturedhruvanbhalara/skillsEnforce Clean Architecture with BLoC pattern for Flutter applications. Use when scaffolding features, structuring data/domain/presentation layers, defining data153skills.sh installs
2shipshitdev avatarplasmo-extension-architectshipshitdev/libraryplasmo extension architect152skills.sh installs
3cloudflare avatarcode-reviewcloudflare/cloudflare-docsReviews Workers and Cloudflare Developer Platform code for type correctness, API usage, and configuration validity. Load when reviewing TypeScript/JavaScript us144skills.sh installs
4vudovn avatararchitecturevudovn/antigravity-kitarchitecture143skills.sh installs
5shipshitdev avatarhtml-styleshipshitdev/libraryhtml style141skills.sh installs
6absolutelyskilled avatarrefactoring-patternsabsolutelyskilled/absolutelyskilledrefactoring patterns140skills.sh installs