Labsco
posthog logo

posthog

59

Claude Code plugin · posthog/ai-plugin

Access PostHog analytics, feature flags, experiments, error tracking, and insights directly from your AI coding tool. Optionally capture Claude Code sessions to PostHog LLM Analytics.

105 skills · 3 slash commands · 1 sub-agents · hooks · a bundled MCP server — installs as one unit

⌁ skills (38)

analyzing-experiment-session-replays

🔥🔥🔥✓ Verified

Analyze session replay patterns across experiment variants to understand user behavior differences. Use when the user wants to see how users interact with…

Full instructions & audit →

auditing-experiments-flags

🔥🔥🔥✓ Verified

Audit PostHog experiments and feature flags for configuration issues, staleness, and best-practice violations. Read when the user asks to audit, health-check,…

Full instructions & audit →

cleaning-up-stale-feature-flags

🔥🔥🔥✓ Verified

Identify and clean up stale feature flags in a PostHog project. Use when the user wants to find unused, fully rolled out, or abandoned feature flags, review…

Full instructions & audit →

configuring-experiment-analytics

🔥🔥🔥✓ Verified

Configures the analytics side of a PostHog experiment — exposure criteria (default `$feature_flag_called` vs custom exposure events), primary and secondary…

Full instructions & audit →

configuring-experiment-rollout

🔥🔥🔥✓ Verified

Configures the rollout shape of a PostHog experiment — the variant split (50/50, 80/20, A/B/C ratios), the overall rollout percentage that gates how many users…

Full instructions & audit →

copying-flags-across-projects

🔥🔥🔥✓ Verified

Copy a feature flag from one PostHog project to one or more target projects in the same organization. Use when the user wants to duplicate a flag, promote a…

Full instructions & audit →

creating-experiments

🔥🔥🔥✓ Verified

Guides agents through the 3-step experiment creation flow: defining the hypothesis, configuring rollout, and setting up analytics. Delegates rollout decisions…

Full instructions & audit →

debugging-local-replay

🔥🔥🔥✓ Verified

When a developer says "local replay isn't working" or "recordings aren't showing up", work through these layers in order. The local replay pipeline has several moving parts and failures are usually silent.

Full instructions & audit →

diagnosing-failed-warehouse-syncs

🔥🔥🔥✓ Verified

Work top-down when a data warehouse source or table is failing, stuck, or producing bad data: source → schema → recovery action. Do not jump straight to "resync from scratch" — that discards synced data and restarts from zero, which is rarely the right first step.

Full instructions & audit →

diagnosing-missing-recordings

🔥🔥🔥✓ Verified

When a user asks "why wasn't this session recorded?" or "why don't I have any recordings?", follow this workflow to systematically diagnose the cause.

Full instructions & audit →

diagnosing-sdk-health

🔥🔥🔥✓ Verified

When a user asks about PostHog SDK versions, outdated SDKs, or whether they should upgrade, use the pre-digested SDK Doctor report rather than reasoning about versions yourself. The backend applies smart-semver rules (grace periods, minor-count thresholds, age-based detection), traffic-percentage thresholds, and provides user-facing copy that matches the SDK Doctor UI exactly.

Full instructions & audit →

exploring-apm-traces

🔥🔥🔥✓ Verified

PostHog captures distributed traces from OpenTelemetry. Each trace is a tree of spans representing a request’s path through services.

Full instructions & audit →

exploring-autocapture-events

🔥🔥🔥✓ Verified

if users opt in then posthog-js automatically captures clicks, form submissions, and page changes as $autocapture events. Each event records the clicked DOM element and its ancestors in the elements_chain column.

Full instructions & audit →

exploring-llm-clusters

🔥🔥🔥✓ Verified

Investigate LLM analytics clusters — understand usage patterns in AI/LLM traffic, compare cluster behavior, compute cost/latency metrics, and drill into…

Full instructions & audit →

exploring-llm-costs

🔥🔥🔥✓ Verified

PostHog attaches per-call cost metadata to every $ai_generation and $ai_embedding event at ingestion time. Every cost question reduces to an aggregation over those two event types — the interesting variation is only in how you group, filter, and compare.

Full instructions & audit →

exploring-llm-evaluations

🔥🔥🔥✓ Verified

PostHog evaluations score $ai_generation events. Each evaluation is one of two types, both first-class:

Full instructions & audit →

exploring-llm-traces

🔥🔥🔥✓ Verified

PostHog captures LLM/AI agent activity as traces. Each trace is a tree of events representing a single AI interaction — from the top-level agent invocation down to individual LLM API calls.

Full instructions & audit →

feature-usage-feed

🔥🔥🔥✓ Verified

Some PostHog features (group session summaries, single session summaries, replay AI search, error tracking AI debug, etc.) generate hundreds or thousands of LLM traces per week. Reading them by hand is not feasible. This skill covers the end-to-end pattern for turning that trace volume into a live Slack feed of canonical use cases — what users are actually doing with the feature.

Full instructions & audit →

finding-experiments

🔥🔥🔥✓ Verified

Resolves a PostHog experiment reference from natural language to a concrete experiment ID by browsing `experiment-list` (not feature-flag tools), with…

Full instructions & audit →

finding-replay-for-issue

🔥🔥🔥✓ Verified

When a user says "show me a replay for this error" or "find a recording for issue X", the goal isn't just any linked session — it's the one that best shows what led to the error. Popular issues can have hundreds of linked sessions, and most are crash-only fragments or duplicate occurrences. This skill picks the most useful one.

Full instructions & audit →

inbox-exploration

🔥🔥🔥✓ Verified

The Inbox is where PostHog surfaces signal reports — clusters of related observations (signals) that have been aggregated into a single issue or trend (e.g. "Error rate spiked 3× on /checkout"). Reports come from multiple source products: error tracking, session replay, web analytics, experiments, and integrations like Linear, GitHub, and Zendesk.

Full instructions & audit →

instrument-error-tracking

🔥🔥🔥✓ Verified

Use this skill to add PostHog error tracking that captures and monitors exceptions in your application. Use it after implementing features or reviewing PRs to ensure errors are tracked with full stack traces and source maps. If PostHog is not yet installed, this skill also covers initial SDK setup. Supports any platform or language.

Full instructions & audit →

instrument-feature-flags

🔥🔥🔥✓ Verified

Use this skill to add PostHog feature flags that gate new or changed functionality. Use it after implementing features or reviewing PRs to ensure safe rollouts with feature flag controls. If PostHog is not yet installed, this skill also covers initial SDK setup. Supports any platform or language.

Full instructions & audit →

instrument-integration

🔥🔥🔥✓ Verified

Use this skill to add the PostHog SDK to an application. Use it when setting up PostHog for the first time, or reviewing PRs that need PostHog initialization. Covers SDK installation, provider setup, and basic configuration. Supports any framework or language.

Full instructions & audit →

instrument-llm-analytics

🔥🔥🔥✓ Verified

Use this skill to add PostHog LLM analytics that trace AI model usage in new or changed code. Use it after implementing LLM features or reviewing PRs to ensure all generations are captured with token counts, latency, and costs. If PostHog is not yet installed, this skill also covers initial SDK setup. Supports any provider or framework.

Full instructions & audit →

instrument-logs

🔥🔥🔥✓ Verified

Use this skill to add PostHog log capture for new or changed code. Use it after implementing features or reviewing PRs to ensure meaningful log events are captured with structured properties. If PostHog log export is not yet configured, this skill also covers initial OTLP exporter setup. Supports any platform or language.

Full instructions & audit →

instrument-product-analytics

🔥🔥🔥✓ Verified

Use this skill to add product analytics events (capture calls) that track meaningful user actions in new or changed code. Use it after implementing features or reviewing PRs to ensure key user behaviors are captured. If PostHog is not yet installed, this skill also covers initial SDK setup. Supports any framework or language.

Full instructions & audit →

investigate-metric

🔥🔥🔥✓ Verified

For "why did X change?" questions about a saved insight, dashboard tile, or pasted query. Don't load this skill for plain "what is X?" questions — only when there's an observed change to explain.

Full instructions & audit →

investigating-replay

🔥🔥🔥✓ Verified

When a user asks "what happened in this session?" or provides a recording/session ID to investigate, gather all relevant context in parallel rather than making them ask for each piece.

Full instructions & audit →

managing-experiment-lifecycle

🔥🔥🔥✓ Verified

Guides experiment state transitions: launching, pausing, resuming, ending, shipping variants, archiving, resetting, and duplicating. Covers preconditions,…

Full instructions & audit →

managing-subscriptions

🔥🔥🔥✓ Verified

Manage PostHog subscriptions — scheduled email, Slack, or webhook deliveries of insight or dashboard snapshots. Use when the user wants to subscribe to an…

Full instructions & audit →

querying-posthog-data

🔥🔥🔥✓ Verified

Required reading before writing any HogQL/SQL or calling execute-sql against PostHog. Use whenever the user wants to search, find, or do complex aggregations…

Full instructions & audit →

setting-up-a-data-warehouse-source

🔥🔥🔥✓ Verified

Use this skill when the user wants to connect an external data source to PostHog's data warehouse for the first time. The setup has a specific three-step flow (wizard → db-schema → create) — skipping steps leads to failed sources and confused users.

Full instructions & audit →

signals

🔥🔥🔥✓ Verified

Signals are automated observations that PostHog generates by monitoring a customer's product data across multiple sources — error tracking, web analytics, experiments, session replay, and more. Each signal is a short natural-language description of something noteworthy (e.g. "Error rate spiked 3× on /checkout").

Full instructions & audit →

skills-store

🔥🔥✓ Verified

Skills are reusable agent workflows stored in PostHog following the Agent Skills specification — a body of instructions (SKILL.md) plus optional bundled files (scripts, references, assets), structured metadata, and an allowed_tools list.

Full instructions & audit →

suggesting-data-imports

🔥🔥🔥✓ Verified

Use when the user asks about revenue, payments, subscriptions, billing, CRM deals, support tickets, production database tables, or other data that PostHog does…

Full instructions & audit →

triaging-visual-review-runs

🔥🔥✓ Verified

Visual Review is PostHog's screenshot-regression product: CI captures storybook + playwright screenshots, diffs them against committed baseline hashes, and gates the PR until a human approves the visible changes. A PR with visual changes carries a visual-review GitHub status check that stays red until each diffed snapshot is approved or tolerated in the VR UI .

Full instructions & audit →

tuning-incremental-sync-config

🔥🔥🔥✓ Verified

A sync's configuration lives on the ExternalDataSchema and can be changed any time via external-data-schemas-partial-update . Most changes are non-destructive (take effect on the next sync), but a few (switching sync_type, changing primary keys) require careful handling to avoid corrupting the synced data.

Full instructions & audit →

⌁ slash commands (3)

/llma-cc-ingest/llma-cc-setup/llma-cc-status

⌁ sub-agents (1)

🤖 error-analyzer

⌁ also included

  • Hooks — automations that run on events (e.g. before/after every edit or commit)
  • A bundled MCP server configuration