Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
posthog avatar

Posthog Instrumentation

  • 8 installs
  • 70 repo stars
  • Updated August 4, 2026
  • posthog/ai-plugin

This is a copy of posthog-instrumentation by posthog - installs and ranking accrue to the original listing.

posthog-instrumentation is a Claude Code skill for ai & agent building.

About

posthog-instrumentation is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • posthog-instrumentation
  • AI & Agent Building
  • AI-coding skill

Posthog Instrumentation by the numbers

  • 8 all-time installs (skills.sh)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/posthog/ai-plugin --skill posthog-instrumentation

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars70
Last updatedAugust 4, 2026
Repositoryposthog/ai-plugin

How do I helps with ai & agent building tasks during AI-assisted development.?

Helps with ai & agent building tasks during AI-assisted development.

Who is it for?

Best when you're working on ai & agent building and need structured help with posthog instrumentation.

Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to helps with ai & agent building tasks during AI-assisted development., or when posthog-instrumentation is a claude code skill for ai & agent building.

What you get

Structured output aligned to posthog-instrumentation: posthog-instrumentation, AI & Agent Building.

Files

SKILL.mdMarkdownGitHub ↗

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

// Event tracking
posthog.capture('button_clicked', { button_name: 'signup' })

// Feature flags
if (posthog.isFeatureEnabled('new-feature')) {
  // Show new feature
}

// User identification
posthog.identify(userId, { email: user.email })

Python

from posthog import Posthog
posthog = Posthog(api_key='<ph_project_api_key>')

# Event tracking
posthog.capture(distinct_id='user_123', event='purchase_completed')

# Feature flags
if posthog.feature_enabled('new-feature', 'user_123'):
    # Show new feature

React

import { usePostHog } from 'posthog-js/react'

function MyComponent() {
  const posthog = usePostHog()

  const handleClick = () => {
    posthog.capture('button_clicked')
  }
}

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

Related skills

FAQ

What does posthog-instrumentation do?

posthog-instrumentation is a Claude Code skill for ai & agent building.

When should I use posthog-instrumentation?

When you need to helps with ai & agent building tasks during AI-assisted development., or when posthog-instrumentation is a claude code skill for ai & agent building.

What are the main capabilities?

posthog-instrumentation; AI & Agent Building; AI-coding skill.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.