From posthog
Guides querying PostHog entities like insights, dashboards, cohorts and analytics data like trends, funnels via HogQL/SQL and execute-sql. Covers schemas, examples, syntax.
npx claudepluginhub anthropics/claude-plugins-official --plugin posthogThis skill uses the workspace's default tool permissions.
The [guidelines](./references/guidelines.md) contain the same instructions as `posthog:execute-sql`. If you've already read `posthog:execute-sql`, you don't need to read them again.
references/available-functions.mdreferences/example-error-tracking.mdreferences/example-event-taxonomy.mdreferences/example-funnel-breakdown.mdreferences/example-funnel-trends.mdreferences/example-lifecycle.mdreferences/example-llm-trace.mdreferences/example-llm-traces-list.mdreferences/example-logs.mdreferences/example-paths.mdreferences/example-person-property-taxonomy.mdreferences/example-retention.mdreferences/example-session-replay.mdreferences/example-sessions.mdreferences/example-stickiness.mdreferences/example-team-taxonomy.mdreferences/example-trends-breakdowns.mdreferences/example-trends-unique-users.mdreferences/example-web-overview.mdreferences/example-web-path-stats.mdImplements PostHog analytics for event tracking, user identification, feature flags, and dashboards in Next.js and React apps. Use when adding product analytics.
Provides SQL patterns for cohort retention, funnel analysis, rolling averages; metric hierarchies, event tracking design, dashboard rules, data pipeline defaults for analytics and product metrics.
Identifies missing external data (revenue, CRM, support tickets) in PostHog queries and guides imports from Stripe, HubSpot, Postgres, MySQL, BigQuery, Snowflake via data warehouse.
Share bugs, ideas, or general feedback.
The guidelines contain the same instructions as posthog:execute-sql. If you've already read posthog:execute-sql, you don't need to read them again.
When the user wants to find a specific entity created in PostHog (insights, dashboards, cohorts, feature flags, experiments, surveys, hog flows, data warehouse items, etc.), or when a list/search tool returns too many results to narrow down:
posthog:execute-sql to query the system table and find the matching entity (typically returning its ID).posthog:insight-get, posthog:dashboard-get) to retrieve the full entity by ID.Don't try to reconstruct the entity from SQL — execute-sql is for discovery, the read tool is for retrieval.
When the user wants analytics data (trends, funnels, retention, paths, sessions, LLM traces, web analytics, errors, logs, etc.) and the existing insight schemas don't fit the request:
posthog:execute-sql. If no example fit, compose the query from scratch using the Data Schema and HogQL References.Schema reference for PostHog's core system models, organized by domain:
$survey_dismissed/{id}, $feature/{key} that don't appear in tool resultsperson.properties.* to understand if values are historical or current.Use the examples below to create optimized analytical queries.