analyze-user-behavior
Analyze user behavior patterns and cohorts using PostHog
Best use case
analyze-user-behavior is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Analyze user behavior patterns and cohorts using PostHog
Teams using analyze-user-behavior should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/analyze-user-behavior/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How analyze-user-behavior Compares
| Feature / Agent | analyze-user-behavior | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Analyze user behavior patterns and cohorts using PostHog
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Analyze User Behavior
Query PostHog to understand user behavior patterns, cohorts, and product usage.
## Prerequisites
- PostHog MCP must be enabled (this plugin should be enabled)
- `POSTHOG_AUTH_HEADER` environment variable configured
- Access to PostHog project
## Usage
```bash
/analyze-user-behavior <query>
Examples:
/analyze-user-behavior "checkout abandonment last 30 days"
/analyze-user-behavior "feature adoption for new dashboard"
/analyze-user-behavior "user retention cohorts by signup month"
```
## What This Command Does
Uses PostHog MCP tools to:
1. Query user events and properties
2. Analyze cohorts and segments
3. Calculate conversion metrics
4. Identify behavior patterns
5. Generate insights with charts/data
## Available PostHog Capabilities
When this plugin is enabled, you have access to ~43 PostHog tools:
**User Analysis**:
- Query user properties and events
- Segment users by behavior
- Track user journeys
- Analyze cohort retention
**Product Metrics**:
- Feature usage tracking
- Conversion funnel analysis
- A/B test results
- Session replay analysis
**Trends & Insights**:
- Event trends over time
- User engagement metrics
- Feature adoption rates
- Custom dashboard queries
## Example Queries
### Conversion Analysis
```bash
/analyze-user-behavior "Show conversion rate from signup to first purchase, broken down by traffic source"
```
### Feature Adoption
```bash
/analyze-user-behavior "How many users adopted the new search feature in the last week?"
```
### Retention Cohorts
```bash
/analyze-user-behavior "Show weekly retention for users who signed up in December 2024"
```
### User Journey
```bash
/analyze-user-behavior "What's the typical path users take before upgrading to paid plan?"
```
## Output Format
The command will:
1. Translate your natural language query to PostHog API calls
2. Fetch relevant data
3. Present findings with:
- Key metrics and numbers
- Trends and patterns
- Visualizations (when possible)
- Actionable insights
## Tips
- Be specific about time ranges ("last 30 days", "this quarter")
- Mention specific events or features by name
- Ask for comparisons ("vs last month", "broken down by...")
- Request segmentation ("by country", "by plan type")
## Context Cost
**This plugin adds ~40,645 tokens** to your context window. Disable when not analyzing metrics:
```bash
/plugin disable catalyst-analytics
```
---
**See also**: `/catalyst-analytics:product-metrics`, `/catalyst-analytics:segment-analysis`Related Skills
analyze-milestone
Analyze project milestone health with actionable insights, target date assessment, risk analysis, and specific recommendations
analyze-cycle
Analyze cycle health and generate comprehensive report with actionable insights, risk analysis, capacity assessment, and specific recommendations
user-research-synthesis
Turn user interviews into actionable insights. Advanced synthesis techniques and frameworks.
user-interview
Systematically process user interviews to extract actionable insights. Batch processes interviews and generates research reports.
write-prod-strategy
Product strategy docs using 7-component framework
strategy-sprint
Create product strategy in 1 day, 1 week, or 1 month timeframes. Progressive strategy development framework.
ralph-wiggum
Devil's advocate PRD/document reviewer with humor and sharp critique
prioritize
Classify PM tasks using LNO Framework (Leverage/Neutral/Overhead) to focus on high-impact work.
prd-review-panel
Multi-agent PRD review (7 perspectives)
prd-draft
Create a PRD (product requirements document) for features and initiatives. Guides through clarifying questions, generates a structured draft with hypothesis, strategic fit, non-goals, success metrics, and rollout plan, then offers multi-agent review. Use when the user asks to create a PRD, product spec, feature spec, requirements doc, or product brief.
launch-checklist
Comprehensive product launch planning
impact-sizing
Quantify feature value with driver trees, confidence levels, and the 4-step sizing framework.