petekp/agent-skills/petekp-agent-skills-posthog-analytics
Claude Code and agent skill by petekp/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install petekp/agent-skills/petekp-agent-skills-posthog-analyticsSKILL.md
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
- Check for existing context: Read
.claude/product-context.mdif it exists - 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?
- Explore PostHog data:
event-definitions-list- Discover tracked eventsproperties-list- Understand available propertiesinsights-get-all- See existing insightsdashboards-get-all- Review current dashboards
- Save context: Write discovered knowledge to
.claude/product-context.md
Context File Structure
Core Capabilities
1. Proactive Insight Discovery
When asked to "find insights" or "what's interesting", run this discovery workflow:
Insight Presentation Format:
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:
dashboard-createwith descriptive name- Build insights with
query-run→insight-create-from-query - Add to dashboard with
add-insight-to-dashboard - Organize with
dashboard-reorder-tiles
4. Experiment Design
When setting up A/B tests:
- Clarify hypothesis: What change, expected impact, and why
- Find existing flags:
feature-flag-get-all(reuse if appropriate) - Choose metrics: Use
event-definitions-listto find trackable events - Set up experiment:
experiment-createwith:
- Clear name and description
- Primary metric (what you're optimizing)
- Secondary metrics (guardrails)
- Appropriate sample size (MDE guidance)
See references/experiments.md for detailed experiment patterns.
5. Cohort & Segment Analysis
For understanding user segments:
Query Patterns
TrendsQuery (counts over time)
Math options: total, dau, weekly_active, monthly_active, unique_session, avg, sum, min, max
FunnelsQuery (conversion analysis)
Breakdown Analysis
Add to any query:
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 - Detailed experiment design patterns
- references/saas-playbook.md - SaaS-specific analytics strategies
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/posthog-analytics/SKILL.md
Popularity
- Repository stars
- 4
- Repository forks
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/petekp/agent-skills/petekp-agent-skills-posthog-analytics)