posthog-instrumentation
Installation
Summary
Automatically instrument PostHog analytics, event tracking, and feature flags across multiple frameworks.
- Supports JavaScript/TypeScript, React, Python, and Node.js with framework-specific setup patterns
- Covers three core capabilities: event capture with custom properties, feature flag evaluation for gradual rollouts, and user identification
- Detects existing PostHog configuration and adds instrumentation without duplicating setup
- Includes best practices for event naming conventions, property inclusion, and session-based user identification
SKILL.md
PostHog Instrumentation Skill
Help users add PostHog analytics, event tracking, and feature flags to their code.
When to Use
- User asks to "add PostHog" or "add analytics"
- User wants to track events or user actions
- User needs to implement feature flags
- User asks about instrumenting their code
Workflow
- Identify the framework (React, Next.js, Python, Node.js, etc.)
- Check for existing PostHog setup
- Add appropriate instrumentation