.claude/skills/posthog-event-diagnosis/SKILL.md
Diagnose missing, delayed, duplicated, filtered, or malformed events using PostHog project evidence, live docs, and known-issue search.
npx skillsauth add mongo-ai/posthog-triage-agent posthog-event-diagnosisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
docs-search("event ingestion troubleshooting {specific symptom}")query-docs for that SDK's capture/send referencegh search issues on the relevant SDK repoThe steps below are a diagnostic FRAMEWORK (what questions to ask, in what order). The docs responses are the CONTENT (current answers, version requirements, config details).
Determine whether the event problem is caused by:
Query recent events for the distinct ID and, if known, event name.
SELECT event, timestamp, properties.$lib, properties.$lib_version, properties
FROM events
WHERE distinct_id = '{distinct_id}'
ORDER BY timestamp DESC
LIMIT 50;
If there are no events at all:
Look for:
$lib$lib_versionIf issue is browser-side and events are missing or intermittent:
docs-search("reverse proxy setup PostHog ad blocker")SELECT event, timestamp, properties
FROM events
WHERE event = '$ingestion_warning'
ORDER BY timestamp DESC
LIMIT 20;
Also inspect functions / transformations / filter-out logic when relevant.
If duplicates are reported:
SELECT uuid, event, timestamp, distinct_id, properties
FROM events
WHERE event = '{event_name}'
AND distinct_id = '{distinct_id}'
ORDER BY timestamp DESC
LIMIT 100;
Determine whether duplicates are:
If complaint is "it reached PostHog but not destination":
posthog-pipeline-diagnosis if neededSearch GitHub with at least 2 variants:
gh search issues --repo PostHog/{sdk-repo} "{symptom}"gh search issues --repo PostHog/{sdk-repo} "event {specific issue}"tools
Diagnose PostHog web analytics issues including missing pageviews, incorrect bounce rates, broken channel attribution, missing UTM data, reverse proxy problems, and discrepancies with other analytics tools.
business
Final synthesis skill. Produce a structured, evidence-graded triage report with a clear root-cause assessment, honest confidence, and a ready-to-send customer response.
tools
Normalize an incoming support ticket into structured investigation inputs: product area, identifiers, scope clues, URLs, timeframe, and likely first diagnostic path.
development
Diagnose PostHog survey issues including surveys not appearing, targeting mismatches, response collection failures, display timing problems, and API-mode survey integration issues.