clickhouse — community clickhouse, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Data Analysis Agents needing high-performance analytics queries with ClickHouse Context layer for your product. Connect your agents and chat to 1st and 3rd party MCP servers!

speakeasy-api speakeasy-api
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The clickhouse skill by speakeasy-api is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Data Analysis Agents needing high-performance analytics queries with ClickHouse

Core Value

Empowers agents to construct dynamic queries using the squirrel query builder, enabling advanced data visualization and high-performance analytics with ClickHouse, while avoiding auto-generated SQLc queries

Capabilities Granted for clickhouse

Constructing dynamic ClickHouse queries for telemetry data
Analyzing high-performance analytics queries
Building custom query pipelines with squirrel

! Prerequisites & Limits

  • Requires ClickHouse database connection
  • Squirrel query builder only permitted for ClickHouse queries
  • Not compatible with PostgreSQL queries
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

clickhouse

Install clickhouse, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

ClickHouse Queries (Telemetry Package)

The server/internal/telemetry package uses ClickHouse for high-performance analytics queries. Unlike PostgreSQL queries, ClickHouse queries are NOT auto-generated by SQLc (SQLc doesn't support ClickHouse). We use the squirrel query builder for dynamic query construction.

CRITICAL: The squirrel query builder is ONLY permitted for ClickHouse queries in the telemetry package. DO NOT use squirrel for PostgreSQL queries - all PostgreSQL queries MUST use SQLc-generated code. This is the only acceptable exception to our "no query builders" policy.

File Structure

  • queries.sql.go: Query implementations using squirrel
  • pagination.go: Cursor pagination helpers (withPagination, withOrdering, etc.)
  • README.md: Detailed documentation and patterns specific to ClickHouse

Adding ClickHouse Queries

When asked to add a new ClickHouse query to the telemetry package:

  1. Create a params struct for query inputs

  2. Build the query using squirrel (the sq var in queries.sql.go is pre-configured for ClickHouse):

    go
    1type GetMetricsParams struct { 2 ProjectID string 3 DeploymentID string // optional 4 Limit int 5} 6 7func (q *Queries) GetMetrics(ctx context.Context, arg GetMetricsParams) ([]Metric, error) { 8 sb := sq.Select("id", "value", "timestamp"). 9 From("metrics"). 10 Where("project_id = ?", arg.ProjectID) 11 12 // Optional filters - explicit conditionals for clarity 13 if arg.DeploymentID != "" { 14 sb = sb.Where(squirrel.Eq{"deployment_id": arg.DeploymentID}) 15 } 16 17 sb = sb.Limit(uint64(arg.Limit)) 18 19 query, args, err := sb.ToSql() 20 if err != nil { 21 return nil, fmt.Errorf("building query: %w", err) 22 } 23 24 rows, err := q.conn.Query(ctx, query, args...) 25 // ... handle rows 26}
  3. Use pagination helpers from pagination.go:

    • withPagination(sb, cursor, sortOrder) - cursor pagination
    • withOrdering(sb, sortOrder, primaryCol, secondaryCol) - ORDER BY

Testing ClickHouse Queries

  • Use testenv.Launch() in TestMain for infrastructure setup
  • Add time.Sleep(100 * time.Millisecond) after inserts (ClickHouse eventual consistency)
  • Use table-driven tests with descriptive "it" prefix names
  • Create helper functions for test data insertion

See server/internal/telemetry/README.md for comprehensive documentation.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is clickhouse?

Perfect for Data Analysis Agents needing high-performance analytics queries with ClickHouse Context layer for your product. Connect your agents and chat to 1st and 3rd party MCP servers!

How do I install clickhouse?

Run the command: npx killer-skills add speakeasy-api/gram/clickhouse. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for clickhouse?

Key use cases include: Constructing dynamic ClickHouse queries for telemetry data, Analyzing high-performance analytics queries, Building custom query pipelines with squirrel.

Which IDEs are compatible with clickhouse?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for clickhouse?

Requires ClickHouse database connection. Squirrel query builder only permitted for ClickHouse queries. Not compatible with PostgreSQL queries.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add speakeasy-api/gram/clickhouse. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use clickhouse immediately in the current project.

Related Skills

Looking for an alternative to clickhouse or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI