LLM Analytics Apps — Data skill for Claude Code
Node.js and Python examples for integrating LLM providers with PostHog's AI SDKs for observability and analytics.
How to install LLM Analytics Apps
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open PostHog/llm-analytics-apps and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What LLM Analytics Apps does
Node.js and Python examples for integrating LLM providers with PostHog's AI SDKs for observability and analytics.
Alternatives in Data
- Azure Cosmos DB Python — Cosmos DB development for Python 1.8k ★
- Posthog Analysis — Analyze PostHog usage data with correct filters, timelines, and caveats 1.6k ★
- Generate More Training Data — This command analyzes patterns in existing data files (CSV, JSONL) and generates additional synthetic training 201 ★
README
LLM Analytics Apps
Internal tooling for the PostHog LLM Analytics team. Contains demo data generators, trace generators, test scripts, and a runner for the SDK examples that live in [posthog-python](https://github.com/PostHog/posthog-python) and [posthog-js](https://github.com/PostHog/posthog-js).
For copy-paste-able provider integration examples, see the `examples/example-ai-*` directories in each SDK repo.
Setup
Requires:
cp .env.example .env
# Fill in your API keys in .env
make setup
Tools
SDK Example Runner
Discovers and runs all `example-ai-*` examples from sibling `posthog-python` and `posthog-js` repos.
# List all available examples (with cache status)
./run-examples.sh --list
# Run a specific example or group by name
./run-examples.sh anthropic # all anthropic examples
./run-examples.sh python/openai # python openai examples only
# Run all examples in parallel via phrocs
./run-examples.sh --parallel
# Run all sequentially
./run-examples.sh --all
# Force re-run (ignore cache)
./run-examples.sh --rerun --all
# Install dependencies for all examples
./run-examples.sh --install
Demo Data Generator
Generates realistic multi-turn conversations across all supported providers using the PostHog AI SDKs directly. Useful for populating a PostHog instance with representative LLM analytics data.
make demo-data # 5 conversations, random providers
make demo-data-quick # 3 short conversations, single provider
make demo-data-tools # tool-heavy conversations
make demo-data-negative # negative sentiment for testing
Trace Generator
Creates complex nested LLM trace data (traces, spans, generations) without making real LLM calls. Useful for testing PostHog's trace visualization.
make run-trace-generator
Test Sc
Related Skills
Nodejs Project Arch
🏗️ AI-friendly Node.js project architecture standards. Keep files <400 lines for AI agents. Covers H5 games,
Octohub
High-performance LLM proxy: one OpenAI-style API over 20+ providers, with multi-tenant keys, full request logg
Llma Cc Ingest
Manually send a Claude Code session log to PostHog LLM Analytics
Llma Cc Setup
Set up PostHog LLM Analytics to capture Claude Code sessions
Eval From Scratch
Build an LLM-as-a-Judge eval from a pasted system prompt or a description — no observability data needed.
Indonesia Gov APIs
🇮🇩 50+ Indonesian Government APIs & Data Sources — BPS, OJK, BPJPH, BPOM, Bank Indonesia, IDX, BMKG + MCP se
Related Agents
Flutter Firebase
Use this agent when integrating Firebase services with Flutter apps. Specializes in FlutterFire, Firebase Auth
AI Architect
Specializes in architecting AI-powered applications on Vercel — choosing between AI SDK patterns, configuring
Event Iq
Validate event schema, confirm cohort definitions, surface compliance flags, and confirm business_model_type.