What problem does it solve?
PostHog Skill helps you reliably capture product analytics, evaluate feature flags and experiments, and run analysis queries (including HogQL) so you can see what users do and ship changes safely.
Core Features & Use Cases
- Product event capture & grouping: emit
capture() events keyed by distinct_id, enrich with properties and groups (e.g., company), and support $identify / $set patterns for stable user profiles.
- Feature flags, experiments, and local eval: evaluate flags locally using the personal API key to avoid
/decide/ on hot paths, with staged rollouts for skills and agents.
- Insights via HogQL and REST queries: run ClickHouse-flavored HogQL escape-hatch queries against events, persons, groups, and cohorts using the PostHog query endpoints.
- LLM observability: wrap OpenAI/Anthropic (and Gemini via posthog.ai) calls to automatically emit
$ai_generation events with tokens, latency, cost, and trace/span IDs.
Quick Start
Use the posthog skill to capture an event from Python using your project API key with distinct_id set to the user identifier and then query the resulting funnel or retention with HogQL.