Diagnosing Endpoint Performance

Diagnose why a PostHog endpoint is slow or expensive and propose a concrete fix — bump the cache TTL, enable materialisation, restructure variables, or rewrite the query.

About this skill

Diagnose why a PostHog endpoint is slow or expensive and propose a concrete fix — bump the cache TTL, enable materialisation, restructure variables, or rewrite the query.

Maintained by PostHog. The source includes the instructions and any supporting files needed to use this skill.

Inside the instructions

  • 01When to use this skill
  • 02Available tools
  • 03The decision tree
  • 04Step 1 — Is it cached at all?
  • 05Step 2 — Should it be materialised?
  • 06Step 3 — Does the query need rewriting?

Before you start

  1. Read the instructions and check tool or account requirements.
  2. Install the complete folder when the skill references scripts or other files.
  3. Provide your task context, then review the agent's output.

Source

posthog/ai-plugin / diagnosing-endpoint-performance

Source reviewed October 2, 2026 · See publisher source