PostHog

Llma Cc Setup — Data skill for Claude Code

Data community

Set up PostHog LLM Analytics to capture Claude Code sessions.

How to install Llma Cc Setup

Installs to ~/.claude/skills/posthog-ai-plugin-llma-cc-setup/SKILL.md

Terminal
mkdir -p ~/.claude/skills/posthog-ai-plugin-llma-cc-setup && curl -fsSL https://raw.githubusercontent.com/PostHog/ai-plugin/HEAD/commands/llma-cc-setup.md -o ~/.claude/skills/posthog-ai-plugin-llma-cc-setup/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Llma Cc Setup does


name: posthog:llma-cc-setup description: Set up PostHog LLM Analytics to capture Claude Code sessions argument-hint: [api-key] allowed-tools: Bash(echo:*),Bash(cat:*),Bash(mkdir:*)

LLM Analytics — Claude Code Setup

Help the user configure PostHog LLM Analytics for Claude Code session capture.

What this does

When enabled, every Claude Code session is automatically sent to PostHog's LLM Analytics as `$ai_generation`, `$ai_span`, and `$ai_trace` events — giving visibility into mode

Alternatives in Data

  • 12 Services Layer — Prompt 12: Wire Up Services Layer (Analytics, Policy, Settings, Sessions) 2.3k ★
  • Posthog Analysis — Analyze PostHog usage data with correct filters, timelines, and caveats 1.6k ★
  • Claude Code Memory Setup — Up to 71.5x fewer tokens per session on Claude Code with Obsidian + Graphify 947 ★

Full documentation available on GitHub

View Source Repository