npx skills add ...
npx skills add posthog/skills --skill workload-analysis
npx skills add posthog/skills --skill workload-analysis
Generate comprehensive workload analysis visualizations for PostHog customer accounts. Use when user requests account analysis, workload breakdown, SDK analysis, spend allocation, or expansion opportunity assessment. Triggers include "analyze [account]", "workload analysis for [account]", "SDK breakdown for [account]", "show me how [account] uses PostHog", or any request to understand customer usage patterns across products and platforms.
Generate interactive React visualizations showing how customer spend flows from products → workloads → teams, with SDK breakdowns, opportunity identification, and risk assessment.
Find account in Vitally:
Query billing data from PostHog:
Extract key fields (see references/data-mapping.md for complete field list):
⚠️ CRITICAL: Check ALL SDKs, not just common ones. Flutter/React Native are often the dominant SDK for mobile-first companies.
From billing data, extract COMPLETE SDK breakdown:
Create workloads based on SDK proportions and product usage patterns:
| Pattern | Workload Type | Examples |
|---|---|---|
| Web >80% | Web Application (primary) | SaaS dashboard |
| Node/Python/Go/Ruby/PHP/Java >80% | Backend API (primary) | API-first product |
| iOS + Android >20% | Native Mobile Apps (primary) | Consumer iOS/Android |
| Flutter >20% | Flutter Mobile App (primary) | Cross-platform mobile |
| React Native >20% | React Native App (primary) | Cross-platform mobile |
| AI events >0 | LLM/AI Platform | AI-first company |
| External schemas >0 | Data Platform | Data warehouse usage |
Mobile Priority: If Flutter or React Native dominates, that's the primary mobile workload (not iOS/Android native).
Apply allocation rules from references/spend-allocation.md:
| Product | Allocation Rule |
|---|---|
| Product Analytics | By SDK event proportion |
| Identified Events | By SDK event proportion |
| Session Replay (Web) | 100% to Web workload |
| Mobile Replay | Split by iOS/Android event ratio |
| Feature Flags | 100% to primary SDK consumer |
| Error Tracking | By exception source (web vs node) |
| LLM Analytics | 100% to LLM Platform workload |
| Data Warehouse | 100% to Data Platform workload |
| Group Analytics | 100% to primary workload |
| Teams/Scale | Platform-wide (separate) |
Apply frameworks from references/opportunity-framework.md:
Opportunities (check in order):
Risks (flag if present):
Use the template from assets/workload-template.jsx. ALL components below are REQUIRED:
MANDATORY Components (include ALL of these):
View Tabs (MUST include all 5):
⚠️ DO NOT SKIP TreeView or SankeyView. These are the most valuable visualizations for understanding account structure.
Copy this component exactly:
Copy this component exactly:
Generate a complete React component file named {account-name}-workload-analysis.jsx that:
Before presenting the React artifact, verify ALL of these are included: