.claude/skills/posthog-error-tracking-diagnosis/SKILL.md
Diagnose PostHog error tracking issues including missing exceptions, bad stack traces, unresolved/minified frames, release/source-map mismatches, and issue grouping confusion.
npx skillsauth add mongo-ai/posthog-triage-agent posthog-error-tracking-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("error tracking troubleshooting {specific symptom}")docs-search("upload source maps {framework}")gh 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 issue is caused by:
Use error tracking tools to confirm:
Query recent exception events if needed.
SELECT event, timestamp, properties.$lib, properties.$lib_version, properties.$exception_list
FROM events
WHERE event = '$exception'
ORDER BY timestamp DESC
LIMIT 50;
If the user gave a distinct_id, scope to it.
If no exception events exist:
docs-search("error tracking setup {platform}") for current install guidanceIf events exist but stack traces are minified or poor:
Run docs-search("error tracking source maps troubleshooting symbol sets")
Use the returned checklist to verify:
Inspect whether the error is tied to a release or environment mismatch that explains why uploaded source maps are not resolving.
Search GitHub with at least 2 variants:
gh search issues --repo PostHog/{sdk-repo} "error tracking {symptom}"gh search issues --repo PostHog/{sdk-repo} "source map {symptom}"Prefer concrete actions based on the live docs guidance:
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.