
Cohort Analysis
FreeAnalyze user engagement trends and retention patterns.
Free · Opens the source repo
What Cohort Analysis does
Cohort Analysis & Retention Explorer is designed to help teams understand user engagement and retention by analyzing data segmented into cohorts. This skill allows users to upload data files in CSV, Excel, or JSON formats, which are then validated for structure and quality. By summarizing key statistics and checking for missing values, users can ensure that their data is ready for in-depth analysis. The skill is particularly useful for product managers, data analysts, and UX researchers who need to derive actionable insights from user behavior over time.
Once the data is validated, the skill calculates retention rates and engagement trends, identifying retention curves and drop-off patterns. Users can also analyze feature adoption rates across different cohorts and generate Python scripts for ongoing analysis using libraries like pandas and numpy. This capability is valuable for teams looking to understand how different user groups interact with their product features over time, allowing for data-driven decision-making.
Visualizations play a crucial role in the analysis process. The skill can generate retention heatmaps, line charts, and comparison charts that help users visualize engagement trends and feature adoption across cohorts. By highlighting significant patterns such as early churn or late-stage engagement changes, the skill provides a comprehensive view of user behavior that can inform product development and marketing strategies.
Finally, the skill suggests follow-up research methods based on the identified insights. This includes recommending qualitative approaches like user interviews and feature usage surveys, as well as designing quantitative studies or A/B tests. By combining quantitative analysis with qualitative research recommendations, users can create a holistic understanding of user engagement and retention, ultimately leading to improved product outcomes.
When to use it
Use this skill when you need to analyze user retention by cohort, study feature adoption trends, or investigate churn patterns.
When not to use it
This skill may not be suitable for real-time analytics or for users who require immediate insights without structured data input.
What you can build with it
Analyzing Retention Patterns
Upload a CSV file with user engagement data to analyze retention patterns across different cohorts.
Feature Adoption Comparison
Use the skill to compare feature adoption rates between cohorts over specified time periods.
Identifying Churn Reasons
Analyze user data to identify cohorts with high churn rates and suggest follow-up qualitative research.
How to install Cohort Analysis
View source1. Install with the skills CLI
npx skills add phuryn/pm-skills/cohort-analysis --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by phurynCohort 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
Frequently asked questions about Cohort Analysis
Similar skills
Power BI Semantic Modeling
Optimize your Power BI data models with best practices.
Data Context Extractor
Tailor data analysis skills to your company's needs.
Power BI Performance Troubleshooting
Systematic guidance for optimizing Power BI performance.
Power BI Model Design Review
Optimize your Power BI data models with expert reviews.
Power BI DAX Formula Optimizer
Optimize your DAX formulas for better performance and clarity.
Fabric Lakehouse
Optimize your data solutions with Lakehouse best practices.
