flight505/skill-forge/posthog-migration-deep-dive
Claude Code and agent skill by flight505/skill-forge
- community
Checking that the SKILL.md file is still in the repository.
'Migrate to PostHog from Google Analytics, Mixpanel, Amplitude, or Segment.
Install
npx vskill@latest install flight505/skill-forge/posthog-migration-deep-diveSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as flight505/skill-forge/posthog-migration-deep-dive.
PostHog Migration Deep Dive
Current State
!npm list posthog-js posthog-node 2>/dev/null | grep posthog || echo 'No PostHog SDK found' !npm list @segment/analytics-node mixpanel @google-analytics/data 2>/dev/null | grep -E "segment|mixpanel|google" || echo 'No competitor SDKs found'
Overview
Migrate from Google Analytics, Mixpanel, Amplitude, or Segment to PostHog using a dual-write strategy (send events to both old and new platforms) followed by gradual traffic shifting. PostHog's capture API accepts events in a format similar to Segment's track/identify calls, making migration straightforward.
Migration Types
| Source | Complexity | Duration | Key Challenge | |
|---|---|---|---|---|
| Google Analytics (GA4) | Medium | 2-4 weeks | Event model is fundamentally different | |
| Mixpanel | Low | 1-2 weeks | Very similar event model | |
| Amplitude | Low | 1-2 weeks | Similar event model | |
| Segment | Low | 1 week | PostHog has a Segment destination | |
| Custom analytics | Medium | 2-4 weeks | Depends on current implementation |
Instructions
Step 1: Event Name Mapping
Step 2: Dual-Write Adapter
Step 3: Historical Data Import
Step 4: Batch Import via HTTP API
Step 5: Feature Flag Controlled Cutover
Step 6: Validation
Error Handling
| Issue | Cause | Solution | |
|---|---|---|---|
| Event counts don't match | Sampling or timing differences | Compare daily totals, allow 5% variance | |
| Historical import slow | Single-threaded | Use batch endpoint, increase flushAt | |
| Identity mismatch | Different user ID formats | Normalize IDs in event map | |
| Duplicate events | Dual-write without dedup | Use migration_source property to filter |
Output
- Event name and property mapping from source platform
- Dual-write adapter for gradual migration
- Historical data import script
- Feature flag controlled cutover plan
- Validation queries comparing event counts
Resources
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/saas-packs/posthog-pack/skills/posthog-migration-deep-dive/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/flight505/skill-forge/posthog-migration-deep-dive)