Clickhouse Best Practices
MUST USE when reviewing ClickHouse schemas, queries, or configurations. Contains 28 rules that MUST be checked before providing…
- Type
- Skill
- Repository
- ClickHouse/agent-skills
- GitHub stars
- 541
- License
- Apache-2.0
- Repo last updated
- Sep 10, 2026
- Source file
- README.md
What Clickhouse Best Practices is
Clickhouse Best Practices is a skill published in the ClickHouse/agent-skills repository on GitHub, which has about 541 stars. The repository describes itself as: “The official Agent Skills for ClickHouse and ClickHouse Cloud”
A skill is a folder with a SKILL.md file: frontmatter with a name and a description, followed by instructions Claude follows. Claude loads a skill automatically when a task matches its description, and you can also run it directly with a slash and its name.
Skills work in Claude Code and in Claude Cowork, which makes Clickhouse Best Practices a portable way to give Claude the same method everywhere.
How to install Clickhouse Best Practices
Claude Code
- Download the clickhouse-best-practices folder from the repository.
- Save it as ~/.claude/skills/<skill-name>/SKILL.md for all projects, or .claude/skills/<skill-name>/SKILL.md for one project.
- Claude loads it automatically when a task matches; you can also run it with / and its name.
Claude Cowork
- Zip the skill folder so SKILL.md sits at the top level of the folder.
- Open Customize → Skills, click +, then upload the ZIP.
- Start a task that matches the description, or call it by name with /.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from README.md, shared under the repository's Apache-2.0 license. Read the full file on GitHub.
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-skillsThe 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 skillsWhat 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.
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.
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 production. Supersedes clickhousectl-local-dev and clickhousectl-cloud-deploy.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Clickhouse Best Practices?
Clickhouse Best Practices is a skill for Claude Code and Claude Cowork from the ClickHouse/agent-skills repository on GitHub. MUST USE when reviewing ClickHouse schemas, queries, or configurations. Contains 28 rules that MUST be checked before providing…
How do I install Clickhouse Best Practices in Claude Code?
Download the clickhouse-best-practices folder from the repository. Save it as ~/.claude/skills/<skill-name>/SKILL.md for all projects, or .claude/skills/<skill-name>/SKILL.md for one project. Claude loads it automatically when a task matches; you can also run it with / and its name.
Can I use Clickhouse Best Practices in Claude Cowork?
Zip the skill folder so SKILL.md sits at the top level of the folder. Open Customize → Skills, click +, then upload the ZIP. Start a task that matches the description, or call it by name with /.
Is Clickhouse Best Practices safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Video Assemble 合成视频解说最终成片:把旁白音频铺到源视频上,按旁白窗口压低原声,生成 SRT / ASS 字幕并可烧录, 最后做响度标准化。作为最终合成阶段使用。输入源视频、tts_meta.json 与旁白位置; 输出 recap 成片和字幕。触发词:视频合成、混音、字幕、压字幕、assemble video、mux、ducking、subtitles、成片。 Skill · zenstory-ai/video-recap-skills
- Swift Concurrency Pro Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls. Use when reading, writing, or reviewing… Skill · twostraws/Swift-Concurrency-Agent-Skill
- Alt Text Generate and improve accessible alt text for data visualizations and images in R packages and Quarto documents. Use when the user wants to… Skill · posit-dev/skills
- Ai Threat Testing Offensive AI security testing and exploitation framework. Systematically tests LLM applications for OWASP Top 10 vulnerabilities including prompt injection, model extraction, data poisoning, and supply chain attacks. Integrates with pentest workflows to discover and exploit AI-specific threats. Skill · transilienceai/communitytools
- Web Asset Generator Generate favicons, app icons (PWA), and social media Open Graph images from logos or text Skill · alonw0/web-asset-generator
- Article Extractor Extract full article text and metadata from web pages Skill · michalparkola/tapestry-skills
- Agentic System Design Prescriptive Q&A workflow for designing agentic pipelines, multi-model councils, sub-agent hierarchies, and tool-loop hardening for any… Skill · ooiyeefei/ccc
- Ash Framework Ash Framework — resources, actions, policies, aggregates, calculations, Skill · oliver-kriska/claude-elixir-phoenix