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.
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-bundleRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install clickhouse-debug-bundle in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clickhouse-debug-bundle ~/.gemini/antigravity-cli/skills/clickhouse-debug-bundleAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clickhouse-debug-bundle in Antigravity CLI
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
ANo 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 →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
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.
