.claude/skills/posthog-feature-flag-diagnosis/SKILL.md
Diagnose feature flag and experiment issues including false/empty evaluations, flicker, stale properties, exposure problems, and server-side latency.
npx skillsauth add mongo-ai/posthog-triage-agent posthog-feature-flag-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("feature flags troubleshooting {specific symptom}")query-docs for that SDK's flag API 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 problem is caused by:
Use the flag key to inspect:
Query recent $feature_flag_called events for the user.
SELECT properties.$feature_flag,
properties.$feature_flag_response,
timestamp
FROM events
WHERE event = '$feature_flag_called'
AND distinct_id = '{distinct_id}'
ORDER BY timestamp DESC
LIMIT 50;
Interpret:
false -> evaluation completed but user didn't matchFor frontend flows:
Fetch SDK-specific identify/flag timing guidance from docs if needed:
docs-search("{sdk} feature flags identify timing")
If the flag depends on properties set immediately before evaluation:
docs-search("feature flags property race condition")If the complaint is flicker:
docs-search("feature flags flicker bootstrap")If complaint is slow server-side flag checks:
docs-search("feature flags local evaluation server-side")If this is an experiment:
docs-search("experiment exposure deduplication") for current dedup behaviorUse activity logs to correlate config changes with issue start time.
Search GitHub with at least 2 variants:
gh search issues --repo PostHog/{sdk-repo} "feature flag {symptom}"gh search issues --repo PostHog/{sdk-repo} "experiment {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
Diagnose PostHog survey issues including surveys not appearing, targeting mismatches, response collection failures, display timing problems, and API-mode survey integration issues.