AGENTS.md · ClickHouse/agent-skills
AGENTS.md from ClickHouse/agent-skills: 212 lines covering Repository Overview, Repository Structure, Creating a New Skill, Contributing Guidelines and more.
Template by ClickHouse
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/ClickHouse/agent-skills/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 212 lines
- File
AGENTS.md
Sections
- Repository Overview
- Repository Structure
- Creating a New Skill
- Contributing Guidelines
- Impact Levels
First lines (shown under the repo's Apache-2.0 license)
# AGENTS.md
This file provides guidance to AI coding agents (Claude Code, Cursor, Copilot, etc.) when working with code in this repository.
## Repository Overview
A collection of skills for AI agents working with ClickHouse databases and chdb (in-process ClickHouse for Python). Skills are packaged instructions and guidelines that extend agent capabilities for database design, query optimization, operational best practices, and in-process data analytics.
## Repository Structure
```
agent-skills/
├── skills/
│ ├── clickhouse-best-practices/ # ClickHouse optimization guidelines
│ │ ├── SKILL.md # Skill definition (overview)
│ │ ├── AGENTS.md # Full compiled guide (generated)
│ │ ├── metadata.json # Version, organization, abstract
│ │ ├── README.md # Maintainer guide
│ │ └── rules/ # Individual rule files
│ │ ├── _sections.md # Section metadata
│ │ ├── _template.md # Template for new rules
│ │ └── *.md # Rule files (e.g., query-use-prewhere.md)
│ ├── chdb-datastore/ # chdb pandas-compatible DataStore API
│ │ ├── SKILL.md # Skill definition and quick-start
│ │ ├── metadata.json # Version, organization, abstract
│ │ ├── README.md # Maintainer guide
│ │ ├── references/ # API reference docs
│ │ │ ├── api-reference.md # DataStore method signatures
│ │ │ └── connectors.md # All data source connection methods
│ │ ├── examples/
│ │ │ └── examples.md # Runnable examples
│ │ └── scripts/
│ │ └── verify_install.py # Environment verification
│ └── chdb-sql/ # chdb SQL API
│ ├── SKILL.md # Skill definition and quick-start
│ ├── metadata.json # Version, organization, abstract
│ ├── README.md # Maintainer guide
│ ├── references/ # SQL reference docs
│ │ ├── api-reference.md # query/Session/connect signatures
│ │ ├── table-functions.md # ClickHouse table functions
│ │ └── sql-functions.md # Commonly used SQL functions
│ ├── examples/
│ │ └── examples.md # Runnable examples
│ └── scripts/
│ └── verify_install.py # Environment verification
├── packages/
│ └── clickhouse-best-practices-build/ # Build tooling
│ ├── package.json # Bun scripts
│ ├── tsconfig.json # TypeScript config
│ └── src/
│ ├── config.ts # Path configuration
│ ├── types.ts # Type definitions
│ ├── parser.ts # Markdown parser
│ ├── build.ts # Build script
│ ├── validate.ts # Rule validator
│ ├── validate-sql.ts # SQL syntax validator
│ └── check-links.ts # Internal link checker
└── .github/
└── workflows/
└── clickhouse-best-practices-ci.yml # CI workflow
```
## Creating a New Skill
### Directory Structure
```
skills/
{skill-name}/ # kebab-case directory name
SKILL.md # Required: skill definition
AGENTS.md # Generated: full compiled guide
metadata.json # Required: version, organization, abstract
README.md # Required: maintainer guide
rules/ # Required: rule files
_sections.md # Section metadata
_template.md # Template for new rules
*.md # Individual rules
```
### Naming Conventions
- **Skill directory**: `kebab-case` (e.g., `clickhouse-best-practices`)
- **SKILL.md**: Always uppercase, always this exact filename
- **Rule files**: `{section-prefix}-{descriptive-name}.md` (e.g., `query-use-prewhere.md`)
- **Section prefixes**: Match the section IDs defined in `_sections.md`
### SKILL.md Format
```markdown
---
name: {skill-name}
description: {One sentence describing when to use this skill. Include trigger phrases.}
license: MIT
metadata:
author: {organization}
version: "{version}"
---
# {Skill Title}
{Brief description of what the skill does.}
## When to Apply
Reference these guidelines when:
- {Use case 1}
- {Use case 2}
## Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|----------|----------|--------|--------|
| 1 | {Category} | {Impact} | `{prefix}-` |
## Quick Reference
{Brief overview of each category and key rules}
## How to Use
{Instructions on reading individual rule files}
## Full Compiled Document
For the complete guide with all rules expanded: `AGENTS.md`
```
### Rule File Format
Use the template in `rules/_template.md`. Each rule file must have:
1. **YAML frontmatter**:
```yaml
---
title: Rule Title
impact: CRITICAL | HIGH | MEDIUM-HIGH | MEDIUM | LOW-MEDIUM | LOW
impactDescription: Optional (e.g., "10-100× query speedup")
tags: skill, category, specific-tags
---
```
2. **Rule structure**:
- Brief explanation of why it matters
- **Incorrect:** code example showing the anti-pattern
- **Correct:** code example showing the best practice
- Additional context, trade-offs, or when to apply
- Reference links (optional)
### Best Practices for Context Efficiency
Skills are loaded on-demand — only the skill name and description are loaded at startup. The full `SKILL.md` loads into context only when the agent decides the skill is relevant. To minimize context usage:
- **Keep SKILL.md under 500 lines** — put detailed reference material in separate files
- **Write specific descriptions** — helps the agent know exactly when to activate the skill
- **Use progressive disclosure** — reference supporting files that get read only when needed
- **Individual rule files** — allows agents to read only relevant rules on-demand
- **File references work one level deep** — link directly from SKILL.md to supporting files
### Build System RequirementsSignals
- Stars
- 560
- Forks
- 38
- Open issues
- 1
- Last commit (this folder)
- Apr 14, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/ClickHouse/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ClickHouse
- 0.806score
clickhouse-js-node-rowbinary
ClickHouseOfficial
Generate TypeScript/JavaScript code that reads/decodes AND writes/encodes ClickHouse RowBinary streams for the ClickHouse HTTP server.
SkillAFreshness: A★ 560Claude Code +9 - 0.781score
ClickHouse
ClickHouseOfficial
Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.
ConnectorAFreshness: ALocal★ 892↓ 71.4K/wkClaude Code +5 - 0.706score
clickhouse-js-node-coding
ClickHouseOfficial
Write idiomatic application code with the ClickHouse Node.js client (`@clickhouse/client`).
SkillCFreshness: C★ 560Claude Code +9 - 0.706score
clickhouse-js-node-troubleshooting
ClickHouseOfficial
Troubleshoot and resolve common issues with the ClickHouse Node.js client (@clickhouse/client).
SkillCFreshness: C★ 560Claude Code +9 - 0.544score
docs-drift-reviewer
ClickHouse
Subagent "docs-drift-reviewer" from ClickHouse/mcp-clickhouse: Checks whether README.md, server.json, fastmcp.json, and CHANGELOG.md still match the code on…
TemplateBFreshness: B★ 892Claude Code - 0.544score
AGENTS.md · ClickHouse/mcp-clickhouse
ClickHouse
AGENTS.md from ClickHouse/mcp-clickhouse: 158 lines covering Role, Project Map, Working Rules, Architecture And MCP Contract and more.
TemplateBFreshness: B★ 892Codex +5
Cite this page
AGENTS.md · ClickHouse/agent-skills. Agent Mart. https://agentmart.dev/templates/clickhouse-agent-skills-agents-md (last updated 2026-10-24)