.claude/skills/posthog-survey-diagnosis/SKILL.md
Diagnose PostHog survey issues including surveys not appearing, targeting mismatches, response collection failures, display timing problems, and API-mode survey integration issues.
npx skillsauth add mongo-ai/posthog-triage-agent posthog-survey-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("survey troubleshooting {specific symptom}")query-docs for that SDK's survey API referencegh search issues --repo PostHog/posthog-js "survey {symptom}"The 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 survey problem is caused by:
Use survey tools to confirm:
SELECT event, timestamp, distinct_id, properties.$survey_id, properties.$survey_response
FROM events
WHERE event = 'survey sent'
AND properties.$survey_id = '{survey_id}'
ORDER BY timestamp DESC
LIMIT 50;
If no responses exist:
survey shown event)SELECT event, timestamp, distinct_id
FROM events
WHERE event IN ('survey shown', 'survey sent', 'survey dismissed')
AND properties.$survey_id = '{survey_id}'
ORDER BY timestamp DESC
LIMIT 50;
If the survey is not appearing for a user:
Query SDK version:
SELECT properties.$lib, properties.$lib_version, count()
FROM events
WHERE distinct_id = '{distinct_id}'
AND timestamp > now() - interval 7 day
GROUP BY properties.$lib, properties.$lib_version
ORDER BY count() DESC;
Run docs-search("survey minimum SDK version requirements") to get current
minimum version — do NOT hardcode version numbers.
If the survey uses API mode (no popup):
docs-search("survey API mode integration") for current API guidancesurvey sent events have the expected shapeSearch GitHub with at least 2 variants:
gh search issues --repo PostHog/posthog-js "survey {symptom}"gh search issues --repo PostHog/posthog "survey {symptom}"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
Format and post triage reports to Slack using optimized mrkdwn layout. Use after generating a triage report to post it to the #support-triage channel or any specified channel.