query-analyzer — how to use query-analyzer query-analyzer, go-ch-manager, rahmatrdn, community, how to use query-analyzer, ai agent skill, mcp server, agent automation, ClickHouse database optimization, query-analyzer setup guide, query-analyzer vs ClickHouse alternatives, what is query-analyzer

v1.0.0
GitHub

About this Skill

Perfect for Data Analysis Agents needing advanced ClickHouse query optimization capabilities. query-analyzer is a comprehensive tool for managing, monitoring, and optimizing ClickHouse databases with detailed query analysis and performance insights.

Features

Performs schema assessment using SHOW CREATE TABLE or DESCRIBE TABLE commands
Identifies Partition Key and Sorting Key (Primary Key) for query optimization
Analyzes queries for filtering by Partition Key
Provides checklist for query optimization
Supports ClickHouse database performance monitoring

# Core Topics

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

Quality Score

Top 5%
32
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add rahmatrdn/go-ch-manager/query-analyzer
Supports 18+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The query-analyzer MCP Server by rahmatrdn is an open-source community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use query-analyzer, ClickHouse database optimization, query-analyzer setup guide.

Ideal Agent Persona

Perfect for Data Analysis Agents needing advanced ClickHouse query optimization capabilities.

Core Value

Empowers agents to analyze and optimize ClickHouse queries, providing deep performance visibility and structured workflow through tools like SHOW CREATE TABLE and DESCRIBE TABLE, checking for Partition Key and Sorting Key optimization.

Capabilities Granted for query-analyzer MCP Server

Analyzing query performance bottlenecks
Optimizing queries for better data retrieval
Identifying and leveraging Partition Key and Sorting Key for efficient data access

! Prerequisites & Limits

  • Requires access to ClickHouse database
  • Limited to ClickHouse query analysis
Project
SKILL.md
2.5 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
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 Data Analysis Agents needing advanced ClickHouse query optimization capabilities. query-analyzer is a comprehensive tool for managing, monitoring, and optimizing ClickHouse databases with detailed query analysis and performance insights.

How do I install query-analyzer?

Run the command: npx killer-skills add rahmatrdn/go-ch-manager/query-analyzer. It works with Cursor, Windsurf, VS Code, Claude Code, and 15+ 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 Key and Sorting Key for efficient data access.

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 database. Limited to ClickHouse query analysis.

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/query-analyzer. 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 building a community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

linear

Logo of lobehub
lobehub

Linear is a workflow management system that enables multi-agent collaboration, effortless agent team design, and introduces agents as the unit of work interaction.

73.4k
0
Communication

testing

Logo of lobehub
lobehub

Testing is a process for verifying AI agent functionality using commands like bunx vitest run and optimizing workflows with targeted test runs.

73.3k
0
Communication

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication