选项
首页首页 Skill 数据库管理 cohort-analysis

cohort-analysis

phuryn/pm-skills phuryn/pm-skills

按用户群体分析用户参与度和留存模式,以识别用户行为、功能采用和长期参与的趋势。

...展开全部
0
更新时间 2026-09-29

队列分析与留存探索器

目的

通过队列分析用户参与度和留存模式,以识别用户行为、功能采用和长期参与的趋势。将定量洞察与定性研究建议相结合。

工作原理

第 1 步:读取并验证数据

  • 接受包含用户队列信息的 CSV、Excel 或 JSON 数据文件
  • 验证数据结构:队列标识符、时间段、参与度指标
  • 检查缺失值和数据质量问题
  • 总结关键统计信息(队列规模、日期范围、可用指标)

第 2 步:生成定量分析

  • 计算队列留存率和参与度趋势
  • 识别留存曲线、流失模式和异常值
  • 计算各队列的功能采用率
  • 计算环比或期间变化
  • 如被要求,使用 pandas 和 numpy 生成 Python 分析脚本

第 3 步:创建可视化图表

  • 生成留存热力图(队列与时间段)
  • 创建显示队列进展的折线图
  • 构建功能采用的对比图表
  • 可视化流失点和参与度趋势
  • 输出为交互式图表或静态图像

第 4 步:识别洞察与模式

  • 发现一个或多个显著模式:
    • 特定队列的早期流失
    • 后期参与度变化
    • 功能采用集群
    • 季节性或时间趋势
  • 突出显示令人惊讶的发现及偏差
  • 比较队列表现以建立基准

第 5 步:建议后续研究

  • 推荐定性研究方法:
    • 针对流失用户的定向用户访谈
    • 针对高参与度队列的功能使用调查
    • 关键交互模式的会话回放
    • 高留存与低留存队列的赢/失分析
  • 设计后续定量研究
  • 建议 A/B 测试或功能实验

使用示例

示例 1:上传 CSV 数据

上传包含以下列的 cohort_engagement.csv:cohort_month, weeks_active,
user_id, feature_x_usage, engagement_score

请求:“分析留存模式,并确定为何 2025 年第四季度队列的表现不如第三季度”

示例 2:描述数据格式

“我有 2025 年 1 月至 12 月的月度用户队列。每行显示:
队列日期、用户 ID、购买频率和支持工单。
分析哪些队列显示出最佳的长期留存。”

示例 3:功能采用分析

上传包含队列采用数据的 feature_usage.xlsx。

请求:“比较新功能在各队列中的采用曲线。
哪些队列采用速度最快?是否存在任何模式?”

核心功能

  • 数据读取:导入 CSV、Excel、JSON、SQL 查询结果
  • 留存分析:计算并可视化随时间变化的留存率
  • 队列比较:跨队列组比较指标
  • 异常检测:标记异常模式或流失情况
  • Python 脚本:生成可重用的分析代码以进行持续分析
  • 可视化图表:创建热力图、图表和交互式仪表板
  • 研究设计:建议有针对性的后续研究和访谈方法
  • 统计摘要:提供定量指标和相关性分析

最佳实践建议

  1. 包含时间维度:提供跨多个时间段的数据
  2. 明确定义队列:使队列分组明确(注册月份、功能发布日期等)
  3. 提供背景信息:解释该期间发生的产品变更、发布或事件
  4. 多项指标:包括留存率、参与度、功能使用、收入等
  5. 充足的数据:至少 3-4 个队列以进行有意义的模式识别
  6. 请求特定输出:要求可视化图表、Python 脚本或研究建议

输出格式

您将收到:

  • 数据摘要:队列概览和数据质量评估
  • 定量发现:关键指标、留存率和趋势分析
  • 可视化图表:显示留存曲线和采用模式的图表
  • 模式识别:来自数据的 2-3 个重要洞察
  • 研究建议:具体的定性和定量后续工作
  • 分析脚本(如被要求):用于可重复分析的 Python 代码
  • 后续步骤:基于发现的优先行动建议

延伸阅读

  • 队列分析入门:如何降低流失率并做出更好的产品决策
  • 产品分析手册:AARRR、HEART、队列与漏斗,产品经理必备
  • 您是否在追踪正确的指标?
在 GitHub 上查看
---
name: cohort-analysis
description: Analyze user engagement and retention patterns by cohort to identify trends in user behavior, feature adoption, and long-term engagement.
---

# Cohort Analysis & Retention Explorer

## Purpose
Analyze user engagement and retention patterns by cohort to identify trends in user behavior, feature adoption, and long-term engagement. Combine quantitative insights with qualitative research recommendations.

## How It Works

### Step 1: Read and Validate Your Data
- Accept CSV, Excel, or JSON data files with user cohort information
- Verify data structure: cohort identifier, time periods, engagement metrics
- Check for missing values and data quality issues
- Summarize key statistics (cohort sizes, date ranges, metrics available)

### Step 2: Generate Quantitative Analysis
- Calculate cohort retention rates and engagement trends
- Identify retention curves, drop-off patterns, and anomalies
- Compute feature adoption rates across cohorts
- Calculate month-over-month or period-over-period changes
- Generate Python analysis scripts using pandas and numpy if requested

### Step 3: Create Visualizations
- Generate retention heatmaps (cohorts vs. time periods)
- Create line charts showing cohort progression
- Build comparison charts for feature adoption
- Visualize drop-off points and engagement trends
- Output as interactive charts or static images

### Step 4: Identify Insights & Patterns
- Spot one or more significant patterns:
  - Early churn in specific cohorts
  - Late-stage engagement changes
  - Feature adoption clusters
  - Seasonal or temporal trends
- Highlight surprising findings and deviations
- Compare cohort performance to establish baselines

### Step 5: Suggest Follow-Up Research
- Recommend qualitative research methods:
  - Targeted user interviews with churning users
  - Feature usage surveys with engaged cohorts
  - Session replays of key interaction patterns
  - Win/loss analysis for high vs. low retention cohorts
- Design follow-up quantitative studies
- Suggest A/B tests or feature experiments

## Usage Examples

**Example 1: Upload CSV Data**
```
Upload cohort_engagement.csv with columns: cohort_month, weeks_active,
user_id, feature_x_usage, engagement_score

Request: "Analyze retention patterns and identify why Q4 2025 cohorts
underperform compared to Q3"
```

**Example 2: Describe Data Format**
```
"I have monthly user cohorts from Jan-Dec 2025. Each row shows:
cohort date, user ID, purchase frequency, and support tickets.
Analyze which cohorts show best long-term retention."
```

**Example 3: Feature Adoption Analysis**
```
Upload feature_usage.xlsx with cohort adoption data.

Request: "Compare adoption curves for our new feature across cohorts.
Which cohorts adopted fastest? Any patterns?"
```

## Key Capabilities

- **Data Reading**: Import CSV, Excel, JSON, SQL query results
- **Retention Analysis**: Calculate and visualize retention rates over time
- **Cohort Comparison**: Compare metrics across cohort groups
- **Anomaly Detection**: Flag unusual patterns or drop-offs
- **Python Scripts**: Generate reusable analysis code for ongoing analysis
- **Visualizations**: Create heatmaps, charts, and interactive dashboards
- **Research Design**: Suggest targeted follow-up studies and interview approaches
- **Statistical Summary**: Provide quantitative metrics and correlation analysis

## Tips for Best Results

1. **Include time dimension**: Provide data across multiple time periods
2. **Define cohort clearly**: Make cohort grouping explicit (signup month, feature launch date, etc.)
3. **Provide context**: Explain product changes, launches, or events during the period
4. **Multiple metrics**: Include retention, engagement, feature usage, revenue, etc.
5. **Sufficient data**: At least 3-4 cohorts for meaningful pattern identification
6. **Request specific output**: Ask for visualizations, Python scripts, or research recommendations

## Output Format

You'll receive:
- **Data Summary**: Cohort overview and data quality assessment
- **Quantitative Findings**: Key metrics, retention rates, and trend analysis
- **Visualizations**: Charts showing retention curves, adoption patterns
- **Pattern Identification**: 2-3 significant insights from the data
- **Research Recommendations**: Specific qualitative and quantitative follow-ups
- **Analysis Scripts** (if requested): Python code for reproducible analysis
- **Next Steps**: Prioritized actions based on findings

---

### Further Reading

- [Cohort Analysis 101: How to Reduce Churn and Make Better Product Decisions](https://www.productcompass.pm/p/cohort-analysis)
- [The Product Analytics Playbook: AARRR, HEART, Cohorts & Funnels for PMs](https://www.productcompass.pm/p/the-product-analytics-playbook-aarrr)
- [Are You Tracking the Right Metrics?](https://www.productcompass.pm/p/are-you-tracking-the-right-metrics)

所有文件

1 个文件

安装 cohort-analysis

将技能文件下载并解压至 .claude/skills/ 目录。

下载ZIP

克隆仓库并复制技能文件到您的项目中。

git clone https://github.com/phuryn/pm-skills/tree/main/pm-data-analytics/skills/cohort-analysis # Copy SKILL.md to your .claude/skills/ directory

复制 复制
快速设置: 将技能文件夹复制到 .claude/skills/ 目录。Claude 将自动检测并使用该技能。

相关技能

microservices-patterns
更新时间 2026-06-29
jpa-patterns
更新时间 2026-06-30
fabric-lakehouse
更新时间 2026-06-30
prisma-expert
更新时间 2026-06-29
OR