customer-success-manager by borghei/claude-skills
npx skills add https://github.com/borghei/claude-skills --skill customer-success-manager提供生产级客户成功分析,具备多维健康评分、流失风险预测和扩展机会识别功能。三个 Python CLI 工具仅使用标准库提供确定性、可重复的分析——无外部依赖、无 API 调用、无机器学习模型。
所有脚本都接受一个 JSON 文件作为位置输入参数。完整示例请参见 assets/sample_customer_data.json。
{
"customers": [
{
"customer_id": "CUST-001",
"name": "Acme Corp",
"segment": "enterprise",
"arr": 120000,
"usage": {
"login_frequency": 85,
"feature_adoption": 72,
"dau_mau_ratio": 0.45
},
"engagement": {
"support_ticket_volume": 3,
"meeting_attendance": 90,
"nps_score": 8,
"csat_score": 4.2
},
"support": {
"open_tickets": 2,
"escalation_rate": 0.05,
"avg_resolution_hours": 18
},
"relationship": {
"executive_sponsor_engagement": 80,
"multi_threading_depth": 4,
"renewal_sentiment": "positive"
},
"previous_period": {
"usage_score": 70,
"engagement_score": 65,
"support_score": 75,
"relationship_score": 60
}
}
]
}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
{
"customers": [
{
"customer_id": "CUST-001",
"name": "Acme Corp",
"segment": "enterprise",
"arr": 120000,
"contract_end_date": "2026-06-30",
"usage_decline": {
"login_trend": -15,
"feature_adoption_change": -10,
"dau_mau_change": -0.08
},
"engagement_drop": {
"meeting_cancellations": 2,
"response_time_days": 5,
"nps_change": -3
},
"support_issues": {
"open_escalations": 1,
"unresolved_critical": 0,
"satisfaction_trend": "declining"
},
"relationship_signals": {
"champion_left": false,
"sponsor_change": false,
"competitor_mentions": 1
},
"commercial_factors": {
"contract_type": "annual",
"pricing_complaints": false,
"budget_cuts_mentioned": false
}
}
]
}
{
"customers": [
{
"customer_id": "CUST-001",
"name": "Acme Corp",
"segment": "enterprise",
"arr": 120000,
"contract": {
"licensed_seats": 100,
"active_seats": 95,
"plan_tier": "professional",
"available_tiers": ["professional", "enterprise", "enterprise_plus"]
},
"product_usage": {
"core_platform": {"adopted": true, "usage_pct": 85},
"analytics_module": {"adopted": true, "usage_pct": 60},
"integrations_module": {"adopted": false, "usage_pct": 0},
"api_access": {"adopted": true, "usage_pct": 40},
"advanced_reporting": {"adopted": false, "usage_pct": 0}
},
"departments": {
"current": ["engineering", "product"],
"potential": ["marketing", "sales", "support"]
}
}
]
}
所有脚本都通过 --format 标志支持两种输出格式:
text(默认):用于终端查看的人类可读格式化输出json:用于集成和管道的机器可读 JSON 输出# 健康评分
python scripts/health_score_calculator.py assets/sample_customer_data.json
python scripts/health_score_calculator.py assets/sample_customer_data.json --format json
# 流失风险分析
python scripts/churn_risk_analyzer.py assets/sample_customer_data.json
python scripts/churn_risk_analyzer.py assets/sample_customer_data.json --format json
# 扩展机会评分
python scripts/expansion_opportunity_scorer.py assets/sample_customer_data.json
python scripts/expansion_opportunity_scorer.py assets/sample_customer_data.json --format json
# 1. 对投资组合中的客户进行健康评分
python scripts/health_score_calculator.py customer_portfolio.json --format json > health_results.json
# 2. 识别有风险的账户
python scripts/churn_risk_analyzer.py customer_portfolio.json --format json > risk_results.json
# 3. 在健康账户中寻找扩展机会
python scripts/expansion_opportunity_scorer.py customer_portfolio.json --format json > expansion_results.json
# 4. 使用模板准备 QBR
# 参考:assets/qbr_template.md
用途: 多维客户健康评分,附带趋势分析和分段感知基准测试。
维度和权重:
| 维度 | 权重 | 指标 |
|---|---|---|
| 使用情况 | 30% | 登录频率、功能采用率、DAU/MAU 比率 |
| 参与度 | 25% | 支持工单量、会议出席率、NPS/CSAT |
| 支持 | 20% | 未解决工单、升级率、平均解决时间 |
| 关系 | 25% | 高管发起人参与度、多线程深度、续约情绪 |
分类:
用法:
python scripts/health_score_calculator.py customer_data.json
python scripts/health_score_calculator.py customer_data.json --format json
用途: 识别有风险的账户,附带行为信号检测和基于层级的干预建议。
风险信号权重:
| 信号类别 | 权重 | 指标 |
|---|---|---|
| 使用下降 | 30% | 登录趋势、功能采用率变化、DAU/MAU 变化 |
| 参与度下降 | 25% | 会议取消、响应时间、NPS 变化 |
| 支持问题 | 20% | 未解决的升级、未解决的关键问题、满意度趋势 |
| 关系信号 | 15% | 支持者离职、发起人变更、提及竞争对手 |
| 商业因素 | 10% | 合同类型、价格投诉、预算削减 |
风险层级:
用法:
python scripts/churn_risk_analyzer.py customer_data.json
python scripts/churn_risk_analyzer.py customer_data.json --format json
用途: 识别增销、交叉销售和扩展机会,附带收入估算和优先级排序。
扩展类型:
用法:
python scripts/expansion_opportunity_scorer.py customer_data.json
python scripts/expansion_opportunity_scorer.py customer_data.json --format json
| 参考 | 描述 |
|---|---|
references/health-scoring-framework.md | 完整的健康评分方法论、维度定义、权重原理、阈值校准 |
references/cs-playbooks.md | 每个风险层级的干预手册、入职、续约、扩展和升级流程 |
references/cs-metrics-benchmarks.md | NRR、GRR、流失率、健康评分、扩展率的行业基准(按分段和行业) |
| 模板 | 用途 |
|---|---|
assets/qbr_template.md | 季度业务评审演示结构 |
assets/success_plan_template.md | 客户成功计划,包含目标、里程碑和指标 |
assets/onboarding_checklist_template.md | 90 天入职检查清单,附带阶段关卡 |
assets/executive_business_review_template.md | 战略账户的高管利益相关者评审 |
最后更新: 2026年2月 工具: 3个 Python CLI 工具 依赖项: 仅 Python 3.7+ 标准库
每周安装次数
62
代码仓库
GitHub 星标数
29
首次出现
2026年1月24日
安全审计
已安装于
claude-code48
opencode40
gemini-cli37
codex35
cursor34
github-copilot33
Production-grade customer success analytics with multi-dimensional health scoring, churn risk prediction, and expansion opportunity identification. Three Python CLI tools provide deterministic, repeatable analysis using standard library only -- no external dependencies, no API calls, no ML models.
All scripts accept a JSON file as positional input argument. See assets/sample_customer_data.json for complete examples.
{
"customers": [
{
"customer_id": "CUST-001",
"name": "Acme Corp",
"segment": "enterprise",
"arr": 120000,
"usage": {
"login_frequency": 85,
"feature_adoption": 72,
"dau_mau_ratio": 0.45
},
"engagement": {
"support_ticket_volume": 3,
"meeting_attendance": 90,
"nps_score": 8,
"csat_score": 4.2
},
"support": {
"open_tickets": 2,
"escalation_rate": 0.05,
"avg_resolution_hours": 18
},
"relationship": {
"executive_sponsor_engagement": 80,
"multi_threading_depth": 4,
"renewal_sentiment": "positive"
},
"previous_period": {
"usage_score": 70,
"engagement_score": 65,
"support_score": 75,
"relationship_score": 60
}
}
]
}
{
"customers": [
{
"customer_id": "CUST-001",
"name": "Acme Corp",
"segment": "enterprise",
"arr": 120000,
"contract_end_date": "2026-06-30",
"usage_decline": {
"login_trend": -15,
"feature_adoption_change": -10,
"dau_mau_change": -0.08
},
"engagement_drop": {
"meeting_cancellations": 2,
"response_time_days": 5,
"nps_change": -3
},
"support_issues": {
"open_escalations": 1,
"unresolved_critical": 0,
"satisfaction_trend": "declining"
},
"relationship_signals": {
"champion_left": false,
"sponsor_change": false,
"competitor_mentions": 1
},
"commercial_factors": {
"contract_type": "annual",
"pricing_complaints": false,
"budget_cuts_mentioned": false
}
}
]
}
{
"customers": [
{
"customer_id": "CUST-001",
"name": "Acme Corp",
"segment": "enterprise",
"arr": 120000,
"contract": {
"licensed_seats": 100,
"active_seats": 95,
"plan_tier": "professional",
"available_tiers": ["professional", "enterprise", "enterprise_plus"]
},
"product_usage": {
"core_platform": {"adopted": true, "usage_pct": 85},
"analytics_module": {"adopted": true, "usage_pct": 60},
"integrations_module": {"adopted": false, "usage_pct": 0},
"api_access": {"adopted": true, "usage_pct": 40},
"advanced_reporting": {"adopted": false, "usage_pct": 0}
},
"departments": {
"current": ["engineering", "product"],
"potential": ["marketing", "sales", "support"]
}
}
]
}
All scripts support two output formats via the --format flag:
text (default): Human-readable formatted output for terminal viewingjson : Machine-readable JSON output for integrations and pipelines# Health scoring
python scripts/health_score_calculator.py assets/sample_customer_data.json
python scripts/health_score_calculator.py assets/sample_customer_data.json --format json
# Churn risk analysis
python scripts/churn_risk_analyzer.py assets/sample_customer_data.json
python scripts/churn_risk_analyzer.py assets/sample_customer_data.json --format json
# Expansion opportunity scoring
python scripts/expansion_opportunity_scorer.py assets/sample_customer_data.json
python scripts/expansion_opportunity_scorer.py assets/sample_customer_data.json --format json
# 1. Score customer health across portfolio
python scripts/health_score_calculator.py customer_portfolio.json --format json > health_results.json
# 2. Identify at-risk accounts
python scripts/churn_risk_analyzer.py customer_portfolio.json --format json > risk_results.json
# 3. Find expansion opportunities in healthy accounts
python scripts/expansion_opportunity_scorer.py customer_portfolio.json --format json > expansion_results.json
# 4. Prepare QBR using templates
# Reference: assets/qbr_template.md
Purpose: Multi-dimensional customer health scoring with trend analysis and segment-aware benchmarking.
Dimensions and Weights:
| Dimension | Weight | Metrics |
|---|---|---|
| Usage | 30% | Login frequency, feature adoption, DAU/MAU ratio |
| Engagement | 25% | Support ticket volume, meeting attendance, NPS/CSAT |
| Support | 20% | Open tickets, escalation rate, avg resolution time |
| Relationship | 25% | Executive sponsor engagement, multi-threading depth, renewal sentiment |
Classification:
Usage:
python scripts/health_score_calculator.py customer_data.json
python scripts/health_score_calculator.py customer_data.json --format json
Purpose: Identify at-risk accounts with behavioral signal detection and tier-based intervention recommendations.
Risk Signal Weights:
| Signal Category | Weight | Indicators |
|---|---|---|
| Usage Decline | 30% | Login trend, feature adoption change, DAU/MAU change |
| Engagement Drop | 25% | Meeting cancellations, response time, NPS change |
| Support Issues | 20% | Open escalations, unresolved critical, satisfaction trend |
| Relationship Signals | 15% | Champion left, sponsor change, competitor mentions |
| Commercial Factors | 10% | Contract type, pricing complaints, budget cuts |
Risk Tiers:
Usage:
python scripts/churn_risk_analyzer.py customer_data.json
python scripts/churn_risk_analyzer.py customer_data.json --format json
Purpose: Identify upsell, cross-sell, and expansion opportunities with revenue estimation and priority ranking.
Expansion Types:
Usage:
python scripts/expansion_opportunity_scorer.py customer_data.json
python scripts/expansion_opportunity_scorer.py customer_data.json --format json
| Reference | Description |
|---|---|
references/health-scoring-framework.md | Complete health scoring methodology, dimension definitions, weighting rationale, threshold calibration |
references/cs-playbooks.md | Intervention playbooks for each risk tier, onboarding, renewal, expansion, and escalation procedures |
references/cs-metrics-benchmarks.md | Industry benchmarks for NRR, GRR, churn rates, health scores, expansion rates by segment and industry |
| Template | Purpose |
|---|---|
assets/qbr_template.md | Quarterly Business Review presentation structure |
assets/success_plan_template.md | Customer success plan with goals, milestones, and metrics |
assets/onboarding_checklist_template.md | 90-day onboarding checklist with phase gates |
assets/executive_business_review_template.md | Executive stakeholder review for strategic accounts |
Last Updated: February 2026 Tools: 3 Python CLI tools Dependencies: Python 3.7+ standard library only
Weekly Installs
62
Repository
GitHub Stars
29
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code48
opencode40
gemini-cli37
codex35
cursor34
github-copilot33
Excel财务建模规范与xlsx文件处理指南:专业格式、零错误公式与数据分析
46,700 周安装