.claude/skills/posthog-data-warehouse-diagnosis/SKILL.md
Diagnose PostHog data warehouse issues including failed external source syncs, query errors, schema mismatches, join configuration problems, slow queries, and missing or stale data from linked sources.
npx skillsauth add mongo-ai/posthog-triage-agent posthog-data-warehouse-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("data warehouse troubleshooting {specific symptom}")docs-search("data warehouse {source type} setup")gh search issues --repo PostHog/posthog "data warehouse {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 data warehouse problem is caused by:
Separate:
Run docs-search("data warehouse troubleshooting sync failing")
Key areas to investigate:
| Error pattern | Likely cause | |--------------|-------------| | Authentication/credentials | API key expired, OAuth token revoked, IAM permissions changed | | Permission denied | Source database user lacks SELECT on the table | | Table/schema not found | Table renamed, schema changed, or wrong database selected | | Connection timeout | Firewall blocking PostHog IPs, source database unreachable | | Some files archived | S3 objects in Glacier tier — need to restore or exclude | | Rate limit | Source API throttling — PostHog syncs may need to be spaced out |
If the complaint is HogQL query errors on warehouse tables:
-- Check what warehouse tables exist
SELECT table_name FROM information_schema.tables
WHERE table_schema = 'warehouse'
LIMIT 50;
Key areas to investigate:
properties.$name syntaxtoDateTime()If data exists but is outdated or incomplete:
-- Check when the latest warehouse data was synced
SELECT max(timestamp_column) FROM warehouse_table_name
LIMIT 1;
If queries are slow or timing out:
docs-search("data warehouse query performance")LIMIT during investigationSELECT * on large warehouse tablesRun docs-search("data warehouse setup {source type}")
Key areas to investigate:
Search GitHub with at least 2 variants:
gh search issues --repo PostHog/posthog "data warehouse {symptom}"gh search issues --repo PostHog/posthog "warehouse sync {source type}"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.