What problem does it solve?
Writing new ClickHouse queries or designing tables for PostHog products without performance guidance leads to slow queries, missing indexes, and poor schema choices that are costly to fix later.
Core Features & Use Cases
- Query Runner Guidance: Directs engineers writing or reviewing QueryRunner subclasses in posthog/hogql_queries/ or products/*/backend/ to the authoritative performance documentation.
- Schema Design Support: Covers adding ClickHouse tables or ALTERs via migrations, choosing row ID formats, and adding materialized columns, skip indexes, or projections.
- Skill Routing: Distinguishes new-query authoring from optimizing existing slow queries, customer-facing HogQL, and migration mechanics, pointing to the right skill for each.
- Use Case: When adding a new product feature that needs a ClickHouse table, use this Skill to load the handbook guidance on table design, materialized columns, and skip indexes before writing the migration.
Quick Start
Ask the agent to help you write a performant ClickHouse query or design a new table for a PostHog product feature.