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-common-errors

Skill by jeremylongshore

Diagnoses and fixes common ClickHouse errors such as query failures, insert problems, memory limits and merge issues. It is for engineers debugging ClickHouse exceptions or server-side errors in logs.

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

Install clickhouse-common-errors

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-common-errors ~/.claude/skills/clickhouse-common-errors

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

Step-by-step: install clickhouse-common-errors in Claude Code

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

About

This Claude Code skill helps classify a ClickHouse exception by its name and numeric code. It maps each error to a category such as Schema, Query, Resources or Insert pattern. The three highest-frequency errors have inline fixes: Too Many Parts (252), Memory Limit Exceeded (241) and Syntax Error (62).

For each error, the skill gives the SQL to run, such as a part count query, a SET for memory limits, or corrected identifier syntax. It then asks the assistant to confirm the fix with a system table query. The full catalog of further errors and diagnostic queries sits in a separate reference file. The skill is for engineers who hit ClickHouse exceptions through the native client or the HTTP interface.

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

What it can do

  • Error classificationMaps an exception name or numeric code to a category using a lookup table of eight codes.
  • Too Many Parts fixCounts active parts per table and raises parts_to_throw_insert as temporary relief.
  • Memory limit fixSuggests raising max_memory_usage or spilling large GROUP BY to disk.
  • Syntax error fixesShows correct identifier quoting and OFFSET usage for common MySQL-style mistakes.
  • Fix verificationRe-runs system table queries on system.parts, system.processes or system.query_log to confirm the fix.
  • Runaway query terminationFinds a stuck query in system.processes and stops it with KILL QUERY.

What you need

  • Access to a ClickHouse endpoint via clickhouse-client or the HTTP interface on port 8123
  • Permission to read the system.* introspection tables
  • The failing statement and the raw exception text

Try asking

  • Fix my ClickHouse Too Many Parts error on the events table
  • Why is my ClickHouse query throwing MEMORY_LIMIT_EXCEEDED?
  • Debug this ClickHouse syntax error: SELECT "user_id" FROM events

Good to know

  • Only three errors have inline fixes; the others are in a separate reference file.
  • The error table lists eight codes, although the description mentions a wider set.
  • Shell access is limited to curl in the allowed tools.

Security check

A

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

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

Inside the skill

Allowed tools: ReadGrepBash(curl:*)

  • SKILL.md6 KB
  • references/error-reference.md6 KB

Alternatives to clickhouse-common-errors

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-common-errors: common questions

Which ClickHouse errors does this skill cover?

The skill covers the three top errors inline: Too Many Parts (252), Memory Limit Exceeded (241) and Syntax Error (62). Its table also lists codes 16, 60, 159, 164 and 202, with the rest of the catalog in a reference file.

How does the assistant connect to ClickHouse?

The source says access can be through the native clickhouse-client or the HTTP interface on port 8123 using curl. It lists curl as the only allowed shell command.

Is there a tool for deeper debugging?

The source points to a separate clickhouse-debug-bundle skill for comprehensive debugging.

How do I install clickhouse-common-errors?

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

Is clickhouse-common-errors free?

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

Is clickhouse-common-errors 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-common-errors?

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

clickhouse-common-errors Install

Add to stack

Loading.