# soundsguyza/querying-posthog-data

Required reading before writing any HogQL/SQL or calling execute-sql against PostHog. Use whenever the user wants to search, find, or do complex aggregations PostHog entities (insights, dashboards, cohorts, feature flags, experiments, surveys, hog flows, data warehouse, persons, etc.) and query analytics data (trends, funnels, retention, lifecycle, paths, stickiness, web analytics, error tracking, logs, sessions, LLM traces). Also the first stop for a governed business number (MRR, activation, revenue): check the semantic layer (canonical metrics in system.information_schema.metrics) for an approved definition before deriving from raw events. Covers HogQL syntax differences from ClickHouse SQL, system table schemas (system.*), available functions, query examples, and the schema-discovery workflow.

- Author: Aluna Africa (https://app.skillsync.com/soundsguyza)
- Price: Free
- Version: 1

## Files

- SKILL.md (10547 bytes)
- references/available-functions.md.j2 (78 bytes)
- references/example-error-tracking.md.j2 (468 bytes)
- references/example-event-taxonomy.md.j2 (410 bytes)
- references/example-funnel-breakdown.md.j2 (596 bytes)
- references/example-funnel-trends.md.j2 (552 bytes)
- references/example-lifecycle.md.j2 (248 bytes)
- references/example-llm-trace.md.j2 (1450 bytes)
- references/example-llm-traces-list.md (3908 bytes)
- references/example-logs.md.j2 (312 bytes)
- references/example-observability-correlation.md (4932 bytes)
- references/example-paths.md.j2 (1567 bytes)
- references/example-person-property-taxonomy.md.j2 (237 bytes)
- references/example-retention.md.j2 (727 bytes)
- references/example-session-replay.md.j2 (435 bytes)
- references/example-sessions.md.j2 (382 bytes)
- references/example-stickiness.md.j2 (327 bytes)
- references/example-team-taxonomy.md.j2 (146 bytes)
- references/example-trends-breakdowns.md.j2 (373 bytes)
- references/example-trends-unique-users.md.j2 (270 bytes)
- references/example-web-overview.md.j2 (230 bytes)
- references/example-web-path-stats.md.j2 (512 bytes)
- references/example-web-traffic-by-device-type.md.j2 (217 bytes)
- references/example-web-traffic-channels.md.j2 (362 bytes)
- references/guidelines.md (19563 bytes)
- references/hogql-extensions.md (5855 bytes)
- references/models-actions.md (2823 bytes)
- references/models-activity-logs.md (2735 bytes)
- references/models-ai-observability-evaluations.md (3000 bytes)
- references/models-ai-observability-events.md (3366 bytes)
- references/models-ai-observability-reviews.md (7682 bytes)
- references/models-alerts.md (2395 bytes)
- references/models-annotations.md (2144 bytes)
- references/models-apm-spans.md (8459 bytes)
- references/models-batch-exports.md (5076 bytes)
- references/models-cohorts.md (5742 bytes)
- references/models-customer-analytics.md (7914 bytes)
- references/models-dashboards-insights.md (3314 bytes)
- references/models-data-warehouse.md (8393 bytes)
- references/models-datasets.md (5768 bytes)
- references/models-early-access-features.md (2417 bytes)
- references/models-endpoints.md (2773 bytes)
- references/models-error-tracking.md (5791 bytes)
- references/models-flags-experiments.md (3690 bytes)
- references/models-heatmaps.md (3022 bytes)
- references/models-hog-flows.md (1942 bytes)
- references/models-hog-functions.md (2784 bytes)
- references/models-integrations.md (2589 bytes)
- references/models-logs.md (14717 bytes)
- references/models-mcp.md (35005 bytes)
- references/models-messaging-opt-outs.md (2838 bytes)
- references/models-metrics.md (10492 bytes)
- references/models-notebooks.md (3341 bytes)
- references/models-session-recording-playlists.md (2003 bytes)
- references/models-session-recordings.md (2311 bytes)
- references/models-support-tickets.md (2611 bytes)
- references/models-surveys.md (2836 bytes)
- references/models-usage-metrics.md (3174 bytes)
- references/models-variables.md (3658 bytes)
- references/person-property-modes.md (2490 bytes)
- references/taxonomy-dynamic-properties.md (2872 bytes)
- references/taxonomy-skipped-events.md (1068 bytes)

## How to use it

1. Connect the Skillsync MCP server: https://app.skillsync.com/mcp (OAuth sign-in).
2. Add it to your library: https://app.skillsync.com/soundsguyza/querying-posthog-data
3. Load it with the get_skill tool: `get_skill("soundsguyza/querying-posthog-data")`, then follow its instructions.
