All Skills
Data & AnalysisClaude Plugins (Official)

posthog — Agent Skill

by PostHog · Updated

Access PostHog analytics, feature flags, experiments, error tracking, and insights directly from Claude Code.

At a glance

posthog is an Agent Skill by PostHog in the Data & Analysis category. In Claude Code it installs with `/plugin install posthog@claude-plugins-official` after adding the anthropics/claude-plugins-official marketplace; other assistants use its SKILL.md instructions as rules. Its source repository has 95 GitHub stars (as of Oct 28, 2026).

Source 95GitHub stars

How to install posthog in your AI client

Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.

How to install posthog in Claude CodeAnthropic's agentic CLI

  1. Add the marketplace

    claude
    /plugin marketplace add anthropics/claude-plugins-official
  2. Install the skill

    claude
    /plugin install posthog@claude-plugins-official
  3. Use it

    These are slash commands for a Claude Code session, not your shell. Claude auto-invokes the skill when your request matches its description — or type its slash command if it exposes one.

Documentation

Full README

PostHog AI plugin

Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.

Installation

Claude Code

  1. Install the plugin:
bash
    claude plugin install posthog

Or install from this repo as a marketplace:

bash
    claude plugin marketplace add PostHog/ai-plugin
    claude plugin install posthog@posthog
  1. Authenticate via OAuth:
bash
    # Just enter Claude Code anywhere
    claude
    # Then, use the /mcp command within Claude, select plugin:posthog:posthog, and press Enter
    /mcp

Then follow the browser prompts to log into PostHog.

  1. (Optional) Send Claude Code sessions to PostHog LLM Analytics.

Add to ~/.claude/settings.json (global) or .claude/settings.local.json (per-project):

json
    {
      "env": {
        "POSTHOG_LLMA_CC_ENABLED": "true",
        "POSTHOG_API_KEY": "phc_...",
        "POSTHOG_HOST": "https://eu.i.posthog.com"
      }
    }

Excerpt — the full document is on GitHub.

More Data & Analysis skills

Catalog data refreshed . Something wrong? Report it.