cohort-analysis
What it does
It analyzes user engagement data by cohort, showing retention curves, feature adoption and drop-off points. It is for product managers and analysts who want to understand how different user groups behave over time.
When to use it
- ✓When you want to see how user retention differs across signup cohorts.
- ✓When you are studying which features are adopted over time.
- ✓When you are investigating churn or a drop in engagement.
Skill link
https://github.com/phuryn/pm-skills/blob/main/pm-data-analytics/skills/cohort-analysis/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Here is our user activity export. Show me retention by signup month and tell me where people drop off.”
5 new skills a week. 1 minute to read.
How it works
The agent reads your cohort data, checks its structure, and calculates retention and adoption rates for each period. It can then build charts, such as retention heatmaps, and point out patterns.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
- Include time dimension: Provide data across multiple time periods
- Define cohort clearly: Make cohort grouping explicit (signup month, feature launch date, etc.)
- Provide context: Explain product changes, launches, or events during the period
- Multiple metrics: Include retention, engagement, feature usage, revenue, etc.
- Sufficient data: At least 3-4 cohorts for meaningful pattern identification
- 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
- [The Product Analytics Playbook: AARRR, H
FAQ
What data formats work?
CSV, Excel or JSON files with a cohort identifier, time periods and engagement metrics.
Can it make charts?
Yes. It can create retention heatmaps and line charts of cohort progression.
Does it check data quality?
Yes. It checks for missing values and summarizes the cohort sizes and date ranges.
Details
Original description by the author
Perform cohort analysis on user engagement data — retention curves, feature adoption trends, and segment-level insights. Use when analyzing user retention by cohort, studying feature adoption over time, investigating churn patterns, or identifying engagement trends.
repo: phuryn/pm-skills
Popularity
- GitHub stars
- 28k
- Ranking position
- #9877
- License
- MIT
- Updated
- 10/29/2026
Comments
- …
More skills from this repository
ab-test-analysis
28kHelps your agent read A/B test results, check statistical significance and sample size, and recommend whether to ship, extend or stop a variant.
sql-queries
28kHelps your agent turn plain-language business questions into SQL queries for databases such as PostgreSQL, MySQL or BigQuery.
brainstorm-okrs
28kHelps your agent draft team OKRs, with qualitative objectives and measurable key results that line up with company goals.
create-prd
28kHelps your agent write a short, clear product requirements document covering the problem, users, value and first release.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.