clickhouse
ClickHouse is a real-time analytics database management system.
Skills from ClickHouse that guide AI agents on ClickHouse schemas, queries and configuration, and run SQL or pandas-style analysis with chDB, an in-process ClickHouse engine for Python. Works with open-source ClickHouse and ClickHouse Cloud.
Claude Code
> /plugin marketplace add clickhouse/agent-skills
Codex
$ npx skills add clickhouse/agent-skills --skill chdb-datastore chdb-sql clickhouse-architecture-advisor clickhouse-best-practices clickhouse-js-node-coding clickhouse-js-node-rowbinary clickhouse-js-node-troubleshooting clickhouse-managed-postgres-rca clickstack-otel-collector infra-clickhouse infra-postgres -a codex
Cursor
$ npx skills add clickhouse/agent-skills --skill chdb-datastore chdb-sql clickhouse-architecture-advisor clickhouse-best-practices clickhouse-js-node-coding clickhouse-js-node-rowbinary clickhouse-js-node-troubleshooting clickhouse-managed-postgres-rca clickstack-otel-collector infra-clickhouse infra-postgres -a cursor
Gemini CLI
$ npx skills add clickhouse/agent-skills --skill chdb-datastore chdb-sql clickhouse-architecture-advisor clickhouse-best-practices clickhouse-js-node-coding clickhouse-js-node-rowbinary clickhouse-js-node-troubleshooting clickhouse-managed-postgres-rca clickstack-otel-collector infra-clickhouse infra-postgres -a gemini-cli
GitHub Copilot
$ npx skills add clickhouse/agent-skills --skill chdb-datastore chdb-sql clickhouse-architecture-advisor clickhouse-best-practices clickhouse-js-node-coding clickhouse-js-node-rowbinary clickhouse-js-node-troubleshooting clickhouse-managed-postgres-rca clickstack-otel-collector infra-clickhouse infra-postgres -a github-copilot
OpenCode
$ npx skills add clickhouse/agent-skills --skill chdb-datastore chdb-sql clickhouse-architecture-advisor clickhouse-best-practices clickhouse-js-node-coding clickhouse-js-node-rowbinary clickhouse-js-node-troubleshooting clickhouse-managed-postgres-rca clickstack-otel-collector infra-clickhouse infra-postgres -a opencode
Windsurf
$ npx skills add clickhouse/agent-skills --skill chdb-datastore chdb-sql clickhouse-architecture-advisor clickhouse-best-practices clickhouse-js-node-coding clickhouse-js-node-rowbinary clickhouse-js-node-troubleshooting clickhouse-managed-postgres-rca clickstack-otel-collector infra-clickhouse infra-postgres -a windsurf
The official Agent Skills for ClickHouse. These skills help LLMs and agents to adopt best practices when working with ClickHouse and chdb (in-process ClickHouse for Python).
You can use these skills with open-source ClickHouse and managed ClickHouse Cloud. Try ClickHouse Cloud with $300 in free credits.
npx skills add clickhouse/agent-skills
The CLI auto-detects installed agents and prompts you to select where to install.
Use the ClickHouse CLI clickhousectl to install the agent skills:
clickhousectl skills
Agent Skills are packaged instructions that extend AI coding agents (Claude Code, Cursor, Copilot, etc.) with domain-specific expertise. This repository provides skills for ClickHouse databases and chdb — covering schema design, query optimization, data ingestion patterns, and in-process analytics with Python.
When an agent loads these skills, it gains knowledge of ClickHouse best practices and chdb APIs, and can apply them while helping you design tables, write queries, analyze data, or troubleshoot performance issues.
Skills follow the open specification at agentskills.io.
36 rules covering schema design, query optimization, native full-text search, and data ingestion—prioritized by impact.
| Category | Rules | Impact |
|---|---|---|
| Primary Key Selection | 4 | CRITICAL |
| Data Type Selection | 5 | CRITICAL |
| JOIN Optimization | 5 | CRITICAL |
| Insert Batching | 1 | CRITICAL |
| Mutation Avoidance | 2 | CRITICAL |
| Partitioning Strategy | 4 | HIGH |
| Secondary and Text Indices | 6 | HIGH |
| Materialized Views | 2 | HIGH |
| Async Inserts | 2 | HIGH |
| OPTIMIZE Avoidance | 1 | HIGH |
| JSON Usage | 1 | MEDIUM |
| Agent Connectivity, Discovery, and Safety | 3 | CRITICAL / HIGH |
Location: skills/clickhouse-best-practices/
For humans: Read SKILL.md for an overview, or AGENTS.md for the complete compiled guide.
For agents: The skill activates automatically when you work with ClickHouse—creating tables, writing queries, or designing data pipelines.
5 decision frameworks covering workload-aware architecture decisions for real-time ClickHouse deployments.
| Decision Area | Impact |
|---|---|
| Ingestion Strategy | CRITICAL |
| Join & Enrichment Patterns | CRITICAL |
| Late-Arriving Data & Upserts | CRITICAL |
| Time-Series Partitioning | HIGH |
| Real-Time Pre-Aggregation | HIGH |
Complements clickhouse-best-practices by answering when, why, and how — not just what. All recommendations are explicitly classified as official, derived, or field guidance.
Location: skills/clickhouse-architecture-advisor/
For humans: Read SKILL.md for an overview, or AGENTS.md for the compiled guide.
For agents: The skill activates during architecture design sessions — when choosing ingestion patterns, designing time-series schemas, selecting enrichment strategies, or handling mutable state.
Troubleshooting guide for the ClickHouse Node.js client (@clickhouse/client). Covers common failure modes including socket hang-up / ECONNRESET, Keep-Alive misconfiguration, data type mismatches, read-only user restrictions, proxy / pathname URL confusion, TLS certificate errors, compression issues, logging setup, and query parameter interpolation.
Location: skills/clickhouse-js-node-troubleshooting/
For agents: The skill activates when users report errors, unexpected behavior, or configuration questions involving the ClickHouse Node.js client — including vague symptoms like "my inserts keep failing" or "connection drops randomly" in a Node.js context. Not used for browser/Web client issues.
Pandas-compatible API for chdb — drop-in pandas replacement backed by ClickHouse. Write import chdb.datastore as pd and use the same pandas API, 10-100x faster. Supports 16+ data sources (MySQL, PostgreSQL, S3, MongoDB, Iceberg, Delta Lake, etc.) with cross-source joins.
Location: skills/chdb-datastore/
For agents: The skill activates when you analyze data with pandas-style syntax, speed up slow pandas code, query remote databases as DataFrames, or join data across different sources.
In-process ClickHouse SQL for Python — run SQL queries on local files, remote databases, and cloud storage without a server. Covers chdb.query(), Session, DB-API 2.0, parametrized queries, UDFs, streaming, and all ClickHouse table functions.
Location: skills/chdb-sql/
For agents: The skill activates when you write SQL queries against files, use ClickHouse table functions, build stateful analytical pipelines, or use advanced ClickHouse SQL features.
Local and cloud workflows for running ClickHouse with clickhousectl. The top-level SKILL.md is a decision tree that routes to the right reference: ref/local.md for local development (install ClickHouse, start a server, create schemas, seed data) and ref/cloud.md for ClickHouse Cloud (authenticate, create a service, migrate schemas, connect an application). The local workflow hands off to cloud when going to production. Supersedes clickhousectl-local-dev and clickhousectl-cloud-deploy.
Location: skills/infra-clickhouse/
For agents: The skill activates when a user wants to build an application with ClickHouse, set up a local development environment, deploy to production, or manage a ClickHouse Cloud service.
Local and cloud workflows for running Postgres with clickhousectl. The top-level SKILL.md is a decision tree that routes to the right reference: ref/local.md for local Docker-backed Postgres development (start, psql client, .env wiring, lifecycle) and ref/cloud.md for managed ClickHouse Cloud Postgres services (beta) — authentication, service creation, connections and TLS, runtime configuration, read replicas, failover, and point-in-time restore. ref/migrate.md migrates an existing Postgres (Neon, Supabase, RDS, ...) into ClickHouse Cloud Postgres with pg_dump/pg_restore. The local workflow hands off to cloud when going to production.
Location: skills/infra-postgres/
For agents: The skill activates when a user wants to set up a local Postgres for development, connect an application to Postgres, or create and manage a managed Postgres service in ClickHouse Cloud.
Step-by-step workflow for wiring an OpenTelemetry collector into a Managed ClickStack service on ClickHouse Cloud. Covers deploying a new local collector (Docker run or Docker Compose) or configuring an existing collector, creating a dedicated ingest SQL user, sending rich synthetic telemetry, and verifying the data is visible in ClickStack.
Location: skills/clickstack-otel-collector/
For agents: The skill activates when a user wants to connect an OpenTelemetry collector to a Managed ClickStack service, send telemetry (logs, traces, metrics) into ClickStack, or verify their observability data pipeline end-to-end.
After installation, your AI agent will reference these skills when:
CREATE TABLEORDER BY / PRIMARY KEY columnsclickhousectlclickhousectlExample prompts:
"Create a table for storing user events with fields for user_id, event_type, properties (JSON), and timestamp"
The agent will apply relevant ClickHouse best practices rules.
"Load this Parquet file and group by country, show top 10 by revenue"
The agent will use chdb DataStore or SQL to query the file directly.
"Join my MySQL customers table with this local orders.parquet file"
The agent will use chdb's cross-source join capabilities.
Skills are agent-agnostic—the same skill works across all supported AI coding assistants:
| Agent | Config Directory |
|---|---|
| Claude Code | .claude/skills/ |
| Cursor | .cursor/skills/ |
| Windsurf | .windsurf/skills/ |
| GitHub Copilot | .github/skills/ |
| Gemini CLI | .gemini/skills/ |
| Cline | .cline/skills/ |
| Codex | .codex/skills/ |
| Goose | .goose/skills/ |
| Roo Code | .roo/skills/ |
| OpenHands | .openhands/skills/ |
And 13 more including Amp, Kiro CLI, Trae, Zencoder, and others.
The installer detects which agents you have by checking for their configuration directories. If an agent isn't listed, either install it first or create its config directory manually (e.g., mkdir -p ~/.cursor).
Apache 2.0 — see LICENSE for details.
ClickHouse is a real-time analytics database management system.
Lets Claude Code inspect DBX-managed database connections, explore schemas, run bounded read-only queries, generate DBML or schema docs, and open tables in DBX Desktop.
Skills for maintainers of the googleapis/mcp-toolbox repo, covering docs link sweeps, failing test fixes, bug reproduction, pull request review, and stale issue triage. The toolbox connects AI agents to enterprise databases.
Skills for building with Convex, an open-source reactive database for app developers. They cover project setup, authentication, schema and data migrations, reusable components, and diagnosing performance problems.
Lets Claude Code users query databases in plain English, convert questions into SQL, design schemas and tables, and work with WhoDB hosts and projects through MCP tools.
Skills from ClickHouse that guide AI agents on ClickHouse schemas, queries and configuration, and run SQL or pandas-style analysis with chDB, an in-process ClickHouse engine for Python. Works with open-source ClickHouse and ClickHouse Cloud. Install it with the command on its page. It includes chdb-datastore, chdb-sql, clickhouse-architecture-advisor. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it