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

optimizing-clickhouse-and-hogql-queries

Skill by PostHog

Workflow for optimizing ClickHouse and HogQL queries. Use when a HogQL query, query runner, insight, or report is too slow; when a hand-written ClickHouse query (via `sync_execute` or in a migration) is too slow; when ClickHouse times out or hits memory limits; when investigating a slow `system.query_log` row; or when reviewing a proposed HogQL printer change for performance. Covers extracting the ClickHouse SQL, common smells (`FROM ... FINAL`, `JSONExtract` over properties, missing skip indexes, self-joins, CTE blow-up), measuring against a real cluster, and applying the fix at the right layer (printer, query runner, or migration). Does NOT cover Postgres / Django ORM / app-database queries; for those use `profiling-slow-api-endpoints`.

  • Score 81
  • 41k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install optimizing-clickhouse-and-hogql-queries

Built from the published package, never by AI.

git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/.agents/skills/optimizing-clickhouse-and-hogql-queries ~/.claude/skills/optimizing-clickhouse-and-hogql-queries

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

Step-by-step: install optimizing-clickhouse-and-hogql-queries in Claude Code

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

Alternatives to optimizing-clickhouse-and-hogql-queries

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

optimizing-clickhouse-and-hogql-queries: common questions

How do I install optimizing-clickhouse-and-hogql-queries?

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

Is optimizing-clickhouse-and-hogql-queries free?

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

Is optimizing-clickhouse-and-hogql-queries safe to use?

It scores 81 of 100. Grades: maintenance A, licence F, quality A. The security check has not run for it yet. Review the code before you install. How grades work.

What are alternatives to optimizing-clickhouse-and-hogql-queries?

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

optimizing-clickhouse-and-hogql-queries Install

Add to stack

Loading.