posthog-instrumentation

Automatically add PostHog analytics instrumentation to code. Triggers when user asks to add tracking, instrument events, add analytics, or implement feature flags in their codebase.

By posthog · 1,848 installs

npx skills add posthog/posthog-for-claude --skill posthog-instrumentation

Source repository · Upstream listing

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 1. Identify the framework (React, Next.js, Python, Node.js, etc.) 2. Check for existing PostHog setup 3. Add appropriate instrumentation Code Patterns JavaScript/TypeScript Python React Best Practices Use consistent event naming (snake case recommended) Include relevant properties with events Identify users early in their session Use feature flags for gradual rollouts