Explains how to query PostHog data, defaulting to typed runners for supported product analytics. Read it before you write HogQL/SQL. Also read it before you call execute-sql against PostHog. Use it to find or aggregate PostHog entities. These entities include insights, dashboards, cohorts, feature flags, experiments, surveys, hog flows, warehouse data, and persons.
安装
npx skills add PostHog/ai-plugin --skill querying-posthog-datanpx skills add PostHog/ai-plugin --skill querying-posthog-data -a claude-code -gnpx skills add PostHog/ai-plugin --skill querying-posthog-data -a codex -ggemini skills install https://github.com/PostHog/ai-plugin.git --path skills/querying-posthog-datagh skill install PostHog/ai-plugin querying-posthog-datagit clone --depth 1 https://github.com/PostHog/ai-plugin /tmp/PostHog__ai-plugin
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/PostHog__ai-plugin/skills/querying-posthog-data ~/.claude/skills/querying-posthog-data # Claude Code
cp -R /tmp/PostHog__ai-plugin/skills/querying-posthog-data ~/.agents/skills/querying-posthog-data # Codex, Cursor, Gemini CLI, Copilot, OpenCode