Token导航 LogoToken导航TokenDH.com
AI 工具只读github未标认证来源可访问clear审计异常

retention-analysis保留分析

Agent Skill

retention-analysis 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

737

周安装

31

GitHub Stars

183

下载量

258
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:retention-analysis(保留分析)
来源仓库:https://github.com/liangdabiao/claude-data-analysis-ultra-main
仓库路径:skills/retention-analysis
安装命令:
npx skills add https://github.com/liangdabiao/claude-data-analysis-ultra-main --skill retention-analysis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/liangdabiao/claude-data-analysis-ultra-main --skill retention-analysis

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • retention-analysis 属于AI 工具类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Retention Analysis Skill

Analyze user retention patterns, predict customer churn, and optimize retention strategies using advanced statistical methods and machine learning techniques.

Quick Start

This skill helps you:

  1. Calculate retention rates and churn metrics
  2. Build survival curves using Kaplan-Meier analysis
  3. Perform cohort analysis to understand behavior patterns
  4. Predict churn risk with machine learning models
  5. Identify retention drivers using Cox regression
  6. Generate actionable insights for retention improvement

When to Use

  • SaaS Product Analysis: User subscription renewal and cancellation patterns
  • Membership Programs: Member engagement and loyalty analysis
  • E-commerce: Customer repeat purchase behavior and subscription boxes
  • Gaming Apps: Player retention and engagement metrics
  • Service Industries: Customer satisfaction and long-term relationships
  • Subscription Businesses: Monthly/yearly subscription analysis

Key Requirements

Install required packages:

pip install pandas numpy matplotlib seaborn scikit-learn lifelines

Core Workflow

1. Data Preparation

Your data should include:

  • User identifiers: Unique user/customer IDs
  • Time variables: Registration date, activity dates, subscription period
  • Event indicators: Churn status (1=churned, 0=active)
  • User attributes: Demographics, behavior, subscription details
  • Optional: Usage metrics, payment history, engagement data

2. Analysis Process

  1. Data preprocessing: Clean and prepare retention data
  2. Survival analysis: Build Kaplan-Meier curves
  3. Cohort analysis: Group users by acquisition time
  4. Risk modeling: Identify churn drivers with Cox regression
  5. Churn prediction: Build machine learning prediction models
  6. Insight generation: Create actionable recommendations

3. Output Deliverables

  • Retention rate tables and charts
  • Survival curves with confidence intervals
  • Cohort heatmaps and behavior patterns
  • Churn risk scores and feature importance
  • Retention optimization strategies

Example Usage Scenarios

SaaS Subscription Analysis

# Analyze monthly subscription renewal patterns
# Predict which users are likely to churn
# Identify features that drive long-term retention

Membership Program Analysis

# Track member engagement over time
# Compare retention across membership tiers
# Analyze payment method impact on retention

E-commerce Customer Retention

# Analyze repeat purchase patterns
# Calculate customer lifetime value
# Identify high-value customer segments

Key Analysis Methods

Survival Analysis

  • Kaplan-Meier Estimator: Non-parametric survival curve
  • Log-rank Test: Compare survival between groups
  • Cox Proportional Hazards: Multi-variable risk modeling
  • Median Survival Time: Time when 50% of users have churned

Cohort Analysis

  • Time-based Cohorts: Group by acquisition month/quarter
  • Behavior-based Cohorts: Group by usage patterns
  • Retention Matrix: Visualize retention over time periods
  • Cohort Comparison: Compare different cohort behaviors

Machine Learning Prediction

  • Logistic Regression: Binary churn classification
  • Random Forest: Non-linear pattern detection
  • Gradient Boosting: High accuracy prediction
  • Feature Importance: Identify key churn drivers

Common Business Questions Answered

  1. What is our overall retention rate?
  2. How does retention vary by user segment?
  3. What factors most influence customer churn?
  4. Which users are at highest risk of leaving?
  5. How can we improve long-term retention?
  6. What is the typical customer lifetime?

Integration Examples

See examples/ directory for:

  • basic_retention.py - Survival analysis basics
  • cohort_analysis.py - Cohort-based retention analysis
  • churn_prediction.py - ML-based churn prediction
  • Sample datasets for testing

Best Practices

  1. Data Quality: Ensure accurate churn definitions and time measurements
  2. Event Definition: Clearly define what constitutes "churn"
  3. Time Windows: Choose appropriate analysis periods
  4. Segmentation: Analyze different user groups separately
  5. Validation: Always validate models with test data
  6. Business Context: Consider operational constraints and costs

Advanced Features

  • Competing Risks Analysis: Different types of churn
  • Time-varying Covariates: Dynamic feature analysis
  • Customer Lifetime Value: Integrate retention with revenue
  • Retention Forecasting: Predict future retention trends
  • A/B Testing: Measure retention improvement impact

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Antigravity

29.89%
按下载量换算77

Claude Code

24.86%
按下载量换算64

Gemini CLI

17.08%
按下载量换算44

windsurf

12.66%
按下载量换算33

Codex

8.04%
按下载量换算21

OpenCode

3.08%
按下载量换算8

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills