cohort-analysis
Analyze user retention by cohort. Use when: measuring customer retention; understanding lifecycle patterns; comparing acquisition cohorts; tracking engagement over time; identifying churn risks
What this skill does
# Cohort Analysis > Analyze retention and behavior patterns by grouping users into cohorts - understand how different customer groups behave over time. ## When to Use This Skill - **Retention tracking** - Measure how users stick around over time - **Acquisition analysis** - Compare cohorts from different channels - **Product changes** - Measure impact on user behavior - **Churn prediction** - Identify at-risk cohorts - **LTV estimation** - Project customer lifetime value ## What Claude Does vs What You Decide | Claude Does | You Decide | |-------------|------------| | Structures analysis frameworks | Metric definitions | | Identifies patterns in data | Business interpretation | | Creates visualization templates | Dashboard design | | Suggests optimization areas | Action priorities | | Calculates statistical measures | Decision thresholds | ## Dependencies ```bash pip install pandas plotly click ``` ## Commands ### Retention Analysis ```bash python scripts/main.py retention data.csv --date-col signup --event-col purchase python scripts/main.py retention data.csv --date-col signup --periods week ``` ### Visualize Cohorts ```bash python scripts/main.py visualize cohorts.csv --output retention_chart.html ``` ### Export Report ```bash python scripts/main.py report data.csv --date-col signup --event-col active --output report.html ``` ## Examples ### Example 1: Analyze User Retention ```bash python scripts/main.py retention users.csv --date-col signup_date --event-col last_active # Output: # Cohort Retention Analysis # ────────────────────────────────── # Cohort Users M1 M2 M3 M4 # Jan 2024 1,234 65% 48% 42% 38% # Feb 2024 1,456 62% 45% 41% -- # Mar 2024 1,321 68% 52% -- -- # Apr 2024 1,567 64% -- -- -- # # Avg Retention: 65% → 48% → 42% → 38% # Best Cohort: Mar 2024 (68% M1) ``` ### Example 2: Generate Visual Report ```bash python scripts/main.py report transactions.csv \ --date-col signup \ --event-col purchase_date \ --output retention_report.html # Generates interactive HTML with: # - Retention heatmap # - Cohort size chart # - Trend analysis ``` ## Cohort Table Format | Cohort | Size | Period 0 | Period 1 | Period 2 | Period 3 | |--------|------|----------|----------|----------|----------| | 2024-01 | 1234 | 100% | 65% | 48% | 42% | | 2024-02 | 1456 | 100% | 62% | 45% | - | | 2024-03 | 1321 | 100% | 68% | - | - | ## Skill Boundaries ### What This Skill Does Well - Structuring data analysis - Identifying patterns and trends - Creating visualization frameworks - Calculating statistical measures ### What This Skill Cannot Do - Access your actual data - Replace statistical expertise - Make business decisions - Guarantee prediction accuracy ## Related Skills - [ab-test-stats](../ab-test-stats/) - Test retention experiments - [funnel-analyzer](../funnel-analyzer/) - Analyze conversion funnels ## Skill Metadata - **Mode**: centaur ```yaml category: analytics subcategory: retention dependencies: [pandas, plotly] difficulty: intermediate time_saved: 4+ hours/week ```
Related in Data & Analytics
clawarr-suite
IncludedComprehensive management for self-hosted media stacks (Sonarr, Radarr, Lidarr, Readarr, Prowlarr, Bazarr, Overseerr, Plex, Tautulli, SABnzbd, Recyclarr, Unpackerr, Notifiarr, Maintainerr, Kometa, FlareSolverr). Deep library exploration, analytics, dashboard generation, content management, request handling, subtitle management, indexer control, download monitoring, quality profile sync, library cleanup automation, notification routing, collection/overlay management, and media tracker integration (Trakt, Letterboxd, Simkl).
querying-soql
IncludedSOQL query generation, optimization, and analysis with 100-point scoring. Use this skill when the user needs SOQL/SOSL authoring or optimization: natural-language-to-query generation, relationship queries, aggregates, query-plan analysis, and performance or safety improvements for Salesforce queries. TRIGGER when: user writes, optimizes, or debugs SOQL/SOSL queries, touches .soql files, or asks about relationship queries, aggregates, or query performance. DO NOT TRIGGER when: bulk data operations (use handling-sf-data), Apex DML logic (use generating-apex), or report/dashboard queries.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
habit-flow
IncludedAI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching. Use for creating habits, logging completions naturally ("I meditated today"), viewing progress, and getting personalized coaching.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
visualizing-data
IncludedBuilds dashboards, reports, and data-driven interfaces requiring charts, graphs, or visual analytics. Provides systematic framework for selecting appropriate visualizations based on data characteristics and analytical purpose. Includes 24+ visualization types organized by purpose (trends, comparisons, distributions, relationships, flows, hierarchies, geospatial), accessibility patterns (WCAG 2.1 AA compliance), colorblind-safe palettes, and performance optimization strategies. Use when creating visualizations, choosing chart types, displaying data graphically, or designing data interfaces.