Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clickhouse-debug-bundle

Skill by jeremylongshore

Collects ClickHouse diagnostic data from system tables, query logs, merge status and server metrics. Built for support tickets and troubleshooting persistent issues.

  • Score 79
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clickhouse-debug-bundle

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clickhouse-debug-bundle ~/.claude/skills/clickhouse-debug-bundle

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clickhouse-debug-bundle in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The clickhouse-debug-bundle skill collects diagnostic data from ClickHouse system.* tables. It runs a graduated set of queries covering server health, disk and table health, query performance, and merge and mutation status. The output can be packaged into a single artifact to attach to a support ticket.

It can run interactively, returning query results directly, or through an automated bash or Node.js collector that writes a timestamped tar.gz file. It reads connection settings from CLICKHOUSE_HOST, CLICKHOUSE_USER and CLICKHOUSE_PASSWORD. It is intended for engineers investigating persistent issues or preparing evidence for ClickHouse support. The skill requires SELECT permission on system tables and is licensed under MIT.

Written from the project's SKILL.md and checked against it.

What it can do

  • Server health overviewConfirms server version, uptime and current database, and snapshots key gauges.
  • Disk and table healthFinds the largest tables and tables with too many active parts.
  • Query performance analysisPulls slow, failed and normalized queries from system.query_log over 24 hours.
  • Merge and mutation statusInspects running merges, pending mutations and replica status.
  • Automated collectorProduces a timestamped tar.gz bundle with one file per diagnostic area.

What you need

  • ClickHouse server with SELECT permission on system.* tables
  • curl or clickhouse-client
  • CLICKHOUSE_HOST, CLICKHOUSE_USER and CLICKHOUSE_PASSWORD environment variables
  • log_queries = 1 enabled on the server for query-log analysis
  • Node.js and @clickhouse/client for the application-code collector

Try asking

  • Run the ClickHouse debug bundle collector and prepare the tar.gz for my ticket
  • Find tables with more than 100 active parts on my ClickHouse server
  • Show the slowest queries from the last 24 hours in system.query_log

Good to know

  • Query log analysis returns nothing unless log_queries = 1 is enabled.
  • Requires SELECT permission on system.* tables.
  • Bundle size grows with history; narrow the INTERVAL window to reduce it.
  • system.replicas errors are expected on tables that are not replicated.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/.curated/clickhouse-debug-bundle/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadBash(curl:*)Bash(tar:*)

  • SKILL.md7 KB
  • references/collectors.md4 KB
  • references/diagnostic-queries.md4 KB

Alternatives to clickhouse-debug-bundle

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

clickhouse-debug-bundle: common questions

What data does the ClickHouse debug bundle collect?

It collects server version and uptime, system.metrics and system.events snapshots, per-table parts and size, running merges, last-hour exceptions, and replication status.

How does the skill handle database credentials?

It reads the host, user and password from environment variables so no credentials are hardcoded.

Can I use this bundle from application code?

Yes. The source describes a collectDebugBundle function that takes an authenticated @clickhouse/client handle and returns a JSON object.

How do I install clickhouse-debug-bundle?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clickhouse-debug-bundle free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is clickhouse-debug-bundle safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to clickhouse-debug-bundle?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

clickhouse-debug-bundle Install

Add to stack

Loading.