clickhouse-incident-runbook
Skill by jeremylongshore
Guides on-call engineers through ClickHouse incident response. It covers triage with system tables, a severity decision tree, and remediation steps such as killing stuck queries and recovering from disk-full or OOM failures.
Install clickhouse-incident-runbook
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-incident-runbook ~/.claude/skills/clickhouse-incident-runbookRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install clickhouse-incident-runbook 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-incident-runbook ~/.gemini/antigravity-cli/skills/clickhouse-incident-runbookAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clickhouse-incident-runbook in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
ClickHouse Incident Runbook is an agent skill that provides an on-call playbook for ClickHouse incidents. It covers cases where ClickHouse is slow, unresponsive, OOM-killed, out of disk, backing up merges, or producing errors in production. The skill starts with a quick triage that uses curl checks on the HTTP interface and queries on system tables. It then assigns a severity from P1 to P4, walks a decision tree, and points to matching remediation procedures for server outages, disk pressure, stuck queries, too many parts, memory pressure, and replication lag.
After mitigation, the skill covers evidence collection and status communication. It describes exporting the error window with INTO OUTFILE and includes templates for updates and a postmortem. The source describes it as a Claude Code skill, version 1.7.0, under the MIT license. It is aimed at engineers and on-call staff who need step-by-step procedures to respond to ClickHouse problems in production.
Written from the project's SKILL.md and checked against it.
What it can do
- Quick triageChecks whether ClickHouse responds to ping and queries, and takes a server health snapshot.
- Decision treeClassifies a failure as server down, query failure, or slow performance before choosing a fix.
- Severity levelsAssigns P1 to P4 severity with response targets from 15 minutes to next business day.
- Server down and OOM recoveryCovers host-level checks with dmesg, journalctl, restart, and verification for P1 outages.
- Disk full recoveryFinds the largest tables, drops old partitions, and checks system.disks to restore writes.
- Stuck query handlingInspects system.processes and uses KILL QUERY by query id, user, or elapsed time.
- Too many parts and memory pressureChecks part counts, adjusts insert limits, ranks queries by memory usage, and caps memory.
- Replication lag checkInspects system.replicas for queue and replica gaps.
- Evidence and commsExports the error window and provides status update and postmortem templates.
What you need
- Network access to the ClickHouse HTTP interface (default port 8123) or clickhouse-client
- A ClickHouse user with rights to read system tables and run KILL QUERY or ALTER
- Shell access to the host or container for P1 restarts (systemctl, docker, or kubectl)
- Claude Code
Try asking
- Run the ClickHouse incident triage and tell me the severity.
- Find and kill the longest-running ClickHouse query using too much memory.
- Walk me through the disk-full procedure for ClickHouse on-call.
Good to know
- The runbook is a set of manual procedures and SQL and shell commands, not an automated fix.
- If the server does not respond to ping, the skill says to move to host-level checks before issuing SQL.
- Some remediation steps, such as dropping partitions, change data on the server.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/.curated/clickhouse-incident-runbook/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadBash(kubectl:*)Bash(curl:*)
-
SKILL.md7 KB -
references/evidence-and-comms.md1 KB -
references/remediation-procedures.md3 KB
Alternatives to clickhouse-incident-runbook
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-incident-runbook: common questions
What does the ClickHouse incident runbook skill do?
It gives step-by-step triage, diagnosis, and remediation procedures for ClickHouse incidents such as outages, OOM kills, full disks, and merge backlogs. It uses ClickHouse system tables and SQL commands.
When should I use this skill?
The source says to use it when ClickHouse is slow, unresponsive, OOM-killed, out of disk, backing up merges, or producing errors in production, and you need an on-call playbook.
Which trigger phrases activate it?
The source lists the phrases "clickhouse incident", "clickhouse outage", "clickhouse down", "clickhouse emergency", "clickhouse on-call", and "clickhouse broken".
How do I install clickhouse-incident-runbook?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clickhouse-incident-runbook free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clickhouse-incident-runbook safe to use?
It scores 80 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-incident-runbook?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
