posthog-analytics
Product analytics expert using PostHog MCP. Triggers on requests to understand user behavior, surface insights, create dashboards, analyze funnels, track metrics, set up experiments, or answer questions about product performance. Use when working with PostHog data, discussing analytics strategy, investigating user journeys, retention, conversion, feature adoption, or when asked to help understand what's happening in the product.
What this skill does
# PostHog Analytics Expert
Transform PostHog data into actionable product insights. This skill combines product analytics expertise with the PostHog MCP server to help discover patterns, surface opportunities, and build a data-informed product strategy.
## Product Context Management
Before diving into analysis, establish product context. Store discovered knowledge in `.claude/product-context.md` for persistence across sessions.
### First Session: Discovery
1. **Check for existing context**: Read `.claude/product-context.md` if it exists
2. **Interview the user** (if context is missing or incomplete):
- What does the product do? Who are the users?
- What are the key user actions/conversions?
- What business metrics matter most?
3. **Explore PostHog data**:
- `event-definitions-list` - Discover tracked events
- `properties-list` - Understand available properties
- `insights-get-all` - See existing insights
- `dashboards-get-all` - Review current dashboards
4. **Save context**: Write discovered knowledge to `.claude/product-context.md`
### Context File Structure
```markdown
# Product Context
## Product Overview
[What the product does, target users]
## Key Events
| Event | Meaning | Importance |
|-------|---------|------------|
| $pageview | Page visit | Navigation tracking |
| signup_completed | User registered | Core conversion |
| [custom events discovered] | | |
## Important Properties
- user_tier: free/pro/enterprise
- [other key properties]
## Key Metrics
- Primary: [e.g., Weekly Active Users, Conversion Rate]
- Secondary: [e.g., Feature Adoption, Retention]
## Funnels
- Activation: signup → onboarding_complete → first_value_action
- [other key funnels]
## Last Updated: [date]
```
## Core Capabilities
### 1. Proactive Insight Discovery
When asked to "find insights" or "what's interesting", run this discovery workflow:
```
1. Trends Analysis
- query-run: Total events over 30 days (spot volume changes)
- query-run: DAU/WAU/MAU trends (engagement health)
- query-run: Key conversion events over time
2. Funnel Health
- query-run: Core activation funnel
- query-run: Conversion funnel (trial → paid if SaaS)
- Look for: Drop-off points, conversion changes
3. Retention Check
- query-run: Cohort retention (week-over-week)
- Look for: Retention curve shape, changes over time
4. Feature Adoption
- query-run: Feature usage by user segment
- Look for: Underused features, power user patterns
5. Error Impact
- list-errors: Top errors by occurrence
- error-details: Impact on user journeys
```
**Insight Presentation Format:**
```
## [Insight Title]
**Finding**: [One sentence summary]
**Evidence**: [Specific numbers/data]
**Impact**: [Why this matters]
**Recommended Action**: [What to do about it]
```
### 2. Answering Analytics Questions
Map common questions to PostHog queries:
| Question Pattern | Approach |
|-----------------|----------|
| "How many users..." | `query-run` with TrendsQuery, `math: "dau"` or `"total"` |
| "What % convert..." | `query-run` with FunnelsQuery |
| "Where do users drop off..." | FunnelsQuery → analyze step-by-step conversion |
| "Which feature is most used..." | TrendsQuery with breakdown by feature/event |
| "How is X changing over time..." | TrendsQuery with `interval: "day"` or `"week"` |
| "Who are our power users..." | TrendsQuery with breakdown by user property |
| "What's causing errors..." | `list-errors` → `error-details` for top issues |
### 3. Dashboard Creation
When building dashboards, follow this structure:
**Executive Dashboard** (high-level health):
- Active users (DAU/WAU/MAU)
- Core conversion rate
- Retention (week 1, week 4)
- Revenue metrics (if applicable)
**Product Dashboard** (feature-level):
- Feature adoption rates
- Feature engagement depth
- User journey completion
- Error rates by feature
**Growth Dashboard** (acquisition/activation):
- Signup funnel
- Activation funnel
- Traffic sources (if tracked)
- Onboarding completion
**Workflow:**
1. `dashboard-create` with descriptive name
2. Build insights with `query-run` → `insight-create-from-query`
3. Add to dashboard with `add-insight-to-dashboard`
4. Organize with `dashboard-reorder-tiles`
### 4. Experiment Design
When setting up A/B tests:
1. **Clarify hypothesis**: What change, expected impact, and why
2. **Find existing flags**: `feature-flag-get-all` (reuse if appropriate)
3. **Choose metrics**: Use `event-definitions-list` to find trackable events
4. **Set up experiment**: `experiment-create` with:
- Clear name and description
- Primary metric (what you're optimizing)
- Secondary metrics (guardrails)
- Appropriate sample size (MDE guidance)
See [references/experiments.md](references/experiments.md) for detailed experiment patterns.
### 5. Cohort & Segment Analysis
For understanding user segments:
```
1. Define cohort criteria (user properties, behaviors)
2. Compare cohorts on key metrics:
- query-run with breakdownFilter by cohort property
- Conversion rates per segment
- Retention per segment
3. Identify highest-value segments
4. Recommend targeting strategies
```
## Query Patterns
### TrendsQuery (counts over time)
```json
{
"kind": "InsightVizNode",
"source": {
"kind": "TrendsQuery",
"dateRange": {"date_from": "-30d"},
"interval": "day",
"series": [{
"kind": "EventsNode",
"event": "event_name",
"custom_name": "Display Name",
"math": "total"
}]
}
}
```
Math options: `total`, `dau`, `weekly_active`, `monthly_active`, `unique_session`, `avg`, `sum`, `min`, `max`
### FunnelsQuery (conversion analysis)
```json
{
"kind": "InsightVizNode",
"source": {
"kind": "FunnelsQuery",
"dateRange": {"date_from": "-30d"},
"series": [
{"kind": "EventsNode", "event": "step_1", "custom_name": "Step 1"},
{"kind": "EventsNode", "event": "step_2", "custom_name": "Step 2"},
{"kind": "EventsNode", "event": "step_3", "custom_name": "Step 3"}
],
"funnelsFilter": {
"funnelWindowInterval": 7,
"funnelWindowIntervalUnit": "day"
}
}
}
```
### Breakdown Analysis
Add to any query:
```json
"breakdownFilter": {
"breakdown": "property_name",
"breakdown_type": "event" // or "person"
}
```
## SaaS Metrics Framework
For SaaS products, prioritize these metrics:
| Metric | Query Approach | Why It Matters |
|--------|---------------|----------------|
| **Activation Rate** | Funnel: signup → key_action | Validates onboarding |
| **DAU/MAU Ratio** | Trends: DAU ÷ MAU | Engagement stickiness |
| **Feature Adoption** | Trends: feature_used by user | Product-market fit signals |
| **Retention (D7, D30)** | Cohort retention query | Long-term value predictor |
| **Conversion (Trial→Paid)** | Funnel: trial_start → subscription | Revenue health |
| **Expansion Revenue** | Trends: upgrade events | Growth efficiency |
| **Churn Indicators** | Declining usage patterns | Early warning system |
## Resources
- [references/experiments.md](references/experiments.md) - Detailed experiment design patterns
- [references/saas-playbook.md](references/saas-playbook.md) - SaaS-specific analytics strategies
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".