Duyệt miễn phí mỗi ngày. Lên Pro để cài đặt và dùng Airsc MCP không giới hạn.

Xem gói Pro
PluginAn toànDatabase & backendCần cài đặt chút

agent-skills

ClickHouse · ClickHouse/agent-skills

Thêm chuyên môn về ClickHouse cho agent để thiết kế schema, tối ưu hóa truy vấn và áp dụng các best practice.

The official Agent Skills for ClickHouse and ClickHouse Cloud

560 sao38Giấy phép: Apache-2.0Cập nhật 4 ngày trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Thiết kế các bảng hiệu quả cho phân tích quy mô lớn theo các best practice của ClickHouse
  • Tối ưu hóa các câu lệnh SQL phức tạp để tăng hiệu suất trên ClickHouse Cloud
  • Triển khai các mô hình nạp dữ liệu hàng loạt cho các luồng dữ liệu tần suất cao

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

ClickHouse Agent Skills

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.

Installation

npx

npx skills add clickhouse/agent-skills

The CLI auto-detects installed agents and prompts you to select where to install.

clickhousectl

Use the ClickHouse CLI clickhousectl to install the agent skills:

clickhousectl skills

What is this?

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.

Available Skills

ClickHouse Best Practices

28 rules covering schema design, query optimization, and data ingestion—prioritized by impact.

CategoryRulesImpact
Primary Key Selection4CRITICAL
Data Type Selection5CRITICAL
JOIN Optimization5CRITICAL
Insert Batching1CRITICAL
Mutation Avoidance2CRITICAL
Partitioning Strategy4HIGH
Skipping Indices1HIGH
Materialized Views2HIGH
Async Inserts2HIGH
OPTIMIZE Avoidance1HIGH
JSON Usage1MEDIUM

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.

ClickHouse Architecture Advisor

5 decision frameworks covering workload-aware architecture decisions for real-time ClickHouse deployments.

Decision AreaImpact
Ingestion StrategyCRITICAL
Join & Enrichment PatternsCRITICAL
Late-Arriving Data & UpsertsCRITICAL
Time-Series PartitioningHIGH
Real-Time Pre-AggregationHIGH

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.

ClickHouse JS Node Troubleshooting

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.

chdb DataStore

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.

chdb SQL

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.

Infra ClickHouse

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 prod

Xem mã nguồn trên GitHub