clickhouse-managed-postgres-rca
Skill by ClickHouse
Guides an AI assistant through a root cause analysis workflow for slow ClickHouse-managed Postgres instances. It combines Prometheus system metrics with per-query Slow Query Patterns data and recommends fixes without applying them.
Install clickhouse-managed-postgres-rca
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ClickHouse/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/skills/clickhouse-managed-postgres-rca ~/.claude/skills/clickhouse-managed-postgres-rcaRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install clickhouse-managed-postgres-rca in Claude Code
git clone --depth 1 https://github.com/ClickHouse/agent-skills /tmp/agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills/skills/clickhouse-managed-postgres-rca ~/.gemini/antigravity-cli/skills/clickhouse-managed-postgres-rcaAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clickhouse-managed-postgres-rca in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides an AI assistant through a root cause analysis workflow for performance issues on a ClickHouse-managed Postgres instance. It reads system gauges from the Prometheus endpoint, such as cache hit ratio, active connections, memory use and filesystem use. It also pulls per-digest latency, IO and call statistics from the Slow Query Patterns API, which is in beta. The assistant first resolves the live API shape from the OpenAPI spec, then matches the signal to a heuristic such as full scan, hot loop or write congestion.
The skill ends with a written report covering symptom, evidence, hypothesis, short-term fix and long-term follow-ups. It recommends fixes but does not apply them. It never runs DDL or cancels or terminates backends. It is aimed at engineers investigating slowness, high CPU, low throughput or cache thrash on a ClickHouse-managed Postgres service.
Written from the project's SKILL.md and checked against it.
What it can do
- Discover API shapeFetches the OpenAPI spec and locates the Prometheus and slow query operations by operationId.
- Scrape system gaugesTakes one Prometheus scrape for current values such as cache hit ratio and active connections.
- Pull slow query patternsRetrieves per-digest call count, runtime, blocks and rows over a requested window.
- Triage the signalMatches combined metrics and query data to a full scan, hot loop or write congestion heuristic.
- Write RCA reportProduces symptom, evidence, hypothesis, short-term fix and long-term follow-ups.
What you need
- ClickHouse Cloud API key and secret pair
- ClickHouse Cloud organization ID
- Service ID of a ClickHouse-managed Postgres instance
Try asking
- Investigate high CPU on my ClickHouse Postgres service and find the cause
- Show the top slow query patterns for this Postgres instance
- Write an RCA report with a recommended fix, but do not apply it
Good to know
- Slow Query Patterns API is in beta and fields may change.
- Recommends fixes only. It never runs DDL or cancels or terminates backends.
- No query plans, per-table scan counters, or autovacuum and ANALYZE timestamps are available.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/clickhouse-managed-postgres-rca/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
AGENTS.md32 KB -
README.md1 KB -
SKILL.md5 KB -
metadata.json887 B -
rules/heuristic-full-scan.md2 KB
Show all 13 files
-
rules/heuristic-hot-loop.md2 KB -
rules/heuristic-write-congestion.md3 KB -
rules/openapi-discovery.md6 KB -
rules/output-template.md3 KB -
rules/prometheus-scrape.md4 KB -
rules/recommend-only.md2 KB -
rules/slow-query-patterns-fields.md5 KB -
rules/triage.md3 KB
Alternatives to clickhouse-managed-postgres-rca
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-managed-postgres-rca: common questions
Does this skill change my Postgres database?
No. The source says it recommends fixes but does not apply them, and it never runs DDL or calls pg_cancel_backend or pg_terminate_backend.
What inputs does it need from me?
The user must supply an organizationId, a serviceId and a ClickHouse Cloud API key and secret pair.
Can it show query execution plans?
No. The source states that EXPLAIN output and query plans are not available, so reasoning relies on IO and timing signals.
How do I install clickhouse-managed-postgres-rca?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clickhouse-managed-postgres-rca free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is clickhouse-managed-postgres-rca safe to use?
It scores 88 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-managed-postgres-rca?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
