query-analyzer — community query-analyzer, go-ch-manager, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Database Analysis Agents needing advanced ClickHouse query optimization capabilities. An all-in-one tool to manage, monitor, and optimize ClickHouse databases with deep query and performance visibility.

rahmatrdn rahmatrdn
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The query-analyzer skill by rahmatrdn 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 Database Analysis Agents needing advanced ClickHouse query optimization capabilities.

Core Value

Empowers agents to analyze and optimize ClickHouse queries with deep performance visibility, utilizing tools like SHOW CREATE TABLE and DESCRIBE TABLE for schema assessment and identifying Partition Keys and Sorting Keys.

Capabilities Granted for query-analyzer

Analyzing query performance bottlenecks
Optimizing queries for better data retrieval
Identifying and leveraging Partition Keys for efficient data filtering

! Prerequisites & Limits

  • Requires access to ClickHouse databases
  • Limited to ClickHouse query analysis and optimization
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

query-analyzer

Install query-analyzer, 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 Query Analyzer Skill

This skill provides a structured workflow for analyzing and optimizing ClickHouse queries. When a user provides a query for analysis, follow these steps:

Step 1: Schema Assessment

Review the table definition to understand the physical data layout.

  • Tools: SHOW CREATE TABLE {table} or DESCRIBE TABLE {table}.
  • Checklist:
    • Identify Partition Key: Is the query filtering by it?
    • Identify Sorting Key (Primary Key): Is the query leveraging the prefix of the sorting key in WHERE/PREWHERE?
    • Check Data Types: Are there LowCardinality strings or Nullable columns that could be optimized?

Step 2: Query Plan Analysis

Use ClickHouse's built-in EXPLAIN to see how the engine intends to execute the query.

  • Commands:
    • EXPLAIN indexes=1 {query}: Check if any marks/parts are being skipped by indexes.
    • EXPLAIN actions=1 {query}: See the detailed execution steps.
    • EXPLAIN PIPELINE {query}: Check the level of parallelism.

Step 3: Runtime Performance Audit

If the query has been run, analyze its actual resource consumption.

  • Source: system.query_log.
  • Key Metrics to Inspect:
    • read_rows vs result_rows: High ratio indicates inefficient filtering.
    • read_bytes: Total I/O overhead.
    • memory_usage: Peak memory consumed (crucial for large JOINs or Aggregations).
    • query_duration_ms: Total latency.

Step 4: Common Optimization Strategies

Apply these patterns to improve performance:

  1. Leverage PREWHERE: Move filters on primary key columns or small columns to PREWHERE to prune data before reading large columns.
  2. **Avoid SELECT ***: Specify only necessary columns to minimize I/O in the columnar storage.
  3. Optimize Joins: ClickHouse prefers JOINs where the right-side table fits in memory. Consider using Dictionaries for high-performance lookups.
  4. Partition Pruning: Ensure filters on partition keys (usually time-based) are present to avoid scanning all data parts.
  5. Function Pushdown: Avoid wrapping columns in functions in the WHERE clause (e.g., use date >= '2023-01-01' instead of toYear(date) = 2023).

Analysis Report Format

When providing your analysis, structure it as follows:

  1. Summary: High-level assessment (e.g., "I/O bound", "Memory intensive").
  2. Schema Audit: Insights from table definition.
  3. Execution Plan: Insights from EXPLAIN.
  4. Bottlenecks: Specific causes of slowness.
  5. Recommendations: Numbered list of actionable SQL changes or schema improvements.

FAQ & Installation Steps

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

? Frequently Asked Questions

What is query-analyzer?

Perfect for Database Analysis Agents needing advanced ClickHouse query optimization capabilities. An all-in-one tool to manage, monitor, and optimize ClickHouse databases with deep query and performance visibility.

How do I install query-analyzer?

Run the command: npx killer-skills add rahmatrdn/go-ch-manager. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for query-analyzer?

Key use cases include: Analyzing query performance bottlenecks, Optimizing queries for better data retrieval, Identifying and leveraging Partition Keys for efficient data filtering.

Which IDEs are compatible with query-analyzer?

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 query-analyzer?

Requires access to ClickHouse databases. Limited to ClickHouse query analysis and optimization.

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 rahmatrdn/go-ch-manager. 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 query-analyzer immediately in the current project.

Related Skills

Looking for an alternative to query-analyzer 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