What problem does it solve?
PostHog endpoints can become slow, time out, or hit cost caps as data grows, and it is hard to know whether the fix is a cache TTL change, materialisation, or a query rewrite. This Skill walks a single named endpoint through a structured decision tree and produces one concrete, justified recommendation.
Core Features & Use Cases
- Cache TTL analysis: Inspects
data_freshness_seconds and call patterns to determine whether bumping the cache TTL is the cheapest fix.
- Materialisation evaluation: Checks eligibility via materialisation preview and status tools, explains rejection reasons, and flags which variables become required for callers.
- Query rewrite guidance: Maps materialisation rejection reasons (JOINs with variables, cohort breakdowns, unbounded scans) to concrete HogQL rewrites, with an optional feature-gated AI rewrite accelerator.
- Use Case: A user says "monthly_active_users is timing out." The Skill fetches the endpoint config, finds the TTL at the 15-minute floor and materialisation eligibility confirmed, then recommends bumping the TTL to 3600s or enabling materialisation.
Quick Start
Ask the agent to diagnose why your named PostHog endpoint is slow or hitting the cost cap and recommend a fix.