Scores customer health, flags churn warning signals and ranks expansion opportunities from a JSON export of your accounts, quoting each input value with a concrete fix. Use when preparing a QBR or renewal review, triaging a customer portfolio for risk, or finding upsell and cross-sell targets.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Customer Success Manager?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/borghei-customer-success-manager)
---
name: customer-success-manager
description: >
Scores customer health, flags churn warning signals and ranks expansion
opportunities from a JSON export of your accounts, quoting each input value
with a concrete fix. Use when preparing a QBR or renewal review, triaging a
customer portfolio for risk, or finding upsell and cross-sell targets.
license: MIT + Commons Clause
metadata:
version: 1.0.0
author: borghei
category: business-growth
domain: customer-success
updated: 2026-12-03
tags: [customer-success, churn, health-score, expansion, saas]
python-tools: health_score_calculator.py, churn_risk_analyzer.py, expansion_opportunity_scorer.py
tech-stack: customer-success, saas-metrics, health-scoring
---
# Customer Success Manager
Three stdlib-only Python tools that read your customer export and return findings tied to your own values: a health score, churn warning signals and expansion opportunities. Weights, targets and revenue fractions are internal heuristics, labelled as such in the output; calibrate them to your base before trusting the colours.
## When to use
- Weekly or monthly portfolio health review (health_score_calculator.py)
- Renewal or QBR prep, deciding which accounts need a save plan (churn_risk_analyzer.py)
- Looking for seat, tier, module or department expansion in healthy accounts (expansion_opportunity_scorer.py)
## Quick start
```bash
python3 scripts/health_score_calculator.py assets/sample_customer_data.json
python3 scripts/churn_risk_analyzer.py assets/sample_customer_data.json --as-of 2026-01-15
python3 scripts/expansion_opportunity_scorer.py assets/sample_customer_data.json --format json
```
Real output of the first command (excerpt: header plus the TechStart block, abridged):
```
FIX 1 of 4 customers need attention
Read 4 customers; scored 4, not scored 0. Targets are internal heuristics.
----------------------------------------------------------------------
TechStart Inc (CUST-002) smb $18,000
Overall 53.7/100 [NEEDS ATTENTION] (13/13 metrics read)
- relationship.renewal_sentiment = 'negative'; scores 20/100, below 60 (sentiment scale: ...)
Fix: Ask directly what would make renewal an easy yes, and write the answer into the success plan.
- usage.feature_adoption = 30 vs smb target 60 (internal heuristic); scores 50/100, below 60
Fix: Run a guided walkthrough of the 2-3 unused core features; goal: feature_adoption 30 -> 60.
```
## Commands
All take the JSON file positionally or with `--input`, and `--format text|json` (`--json` is an alias). Field layout: `references/input-schema.md`.
| Tool | Reads | Finding means |
|------|-------|---------------|
| `scripts/health_score_calculator.py` | usage, engagement, support, relationship, optional previous_period | a yellow/red customer, or one with under 6 of 13 metrics |
| `scripts/churn_risk_analyzer.py [--as-of YYYY-MM-DD]` | usage_decline, engagement_drop, support_issues, relationship_signals, commercial_factors, contract_end_date | any warning signal, or fewer than 3 of 5 signal groups |
| `scripts/expansion_opportunity_scorer.py` | arr, contract, product_usage, departments | a "not expansion-ready" finding (adopted modules under 30% usage) or no arr; opportunities are listed but are not findings |
`scripts/cs_common.py` is a helper library, not a command.
## How the tools behave
- Missing fields are listed under "Not provided" and excluded; weights are renormalised over what was read. Missing is never scored as zero or filled with a default. `segment` is required for health scoring (no segment is assumed).
- Every finding quotes the field and value, the rule and threshold, and a fix. At most three ranked next actions per customer.
- Health: a higher-is-better metric below 60/100 of its target is a finding; a lower-is-better metric (tickets, escalations, resolution hours) is a finding at 75% of its ceiling. Heuristic targets per segment.
- Churn: a critical warning never leaves a customer in the LOW tier. The renewal multiplier (1.0 to 1.5) uses `--as-of` (default today); no end date means no adjustment, and a past date is itself a finding.
- Expansion: revenue is a heuristic share of current ARR, not a quote. Accounts whose adopted modules average under 30% usage get an enablement finding instead of sales plays. Unknown plan tiers or modules are reported as not modelled.
## Exit codes
| Code | Meaning |
|------|---------|
| 0 | Clean: all customers healthy / no warning signals / nothing to act on |
| 1 | Findings: yellow or red customers, churn warnings, expansion-scorer customers that are not expansion-ready or could not be scored (listed with the reason). Expansion opportunities alone exit 0 |
| 2 | Unusable input: missing or unreadable file, invalid JSON, no `customers` list, empty list, or no customer with enough data. One line on stderr, no traceback |
Samples (`assets/contract.json` runs them): `sound_customer_data.json` exits 0, `sample_customer_data.json` exits 1 for health and churn (and 0 for expansion, which only lists opportunities); `flawed_expansion_data.json` exits 1 for expansion; `malformed_customer_data.json` and `malformed_empty_records.json` exit 2. Verify with `python3 scripts/skill_contract_check.py --skill business-growth/customer-success-manager` from the repo root.
## Clarify first
Ask only what changes the result: which analysis, the customer segment (health scoring needs it), whether previous-period data exists (trends), and the renewal date (churn urgency). If the user wants a result now, run it and state what was missing.
## Workflow
```bash
python3 scripts/health_score_calculator.py portfolio.json --format json > health.json
python3 scripts/churn_risk_analyzer.py portfolio.json --format json > risk.json
python3 scripts/expansion_opportunity_scorer.py portfolio.json --format json > expansion.json
```
Health and churn exit 1 whenever there is something to act on, so do not chain with `&&` in scripts. Then prepare the QBR from `assets/qbr_template.md`.
## References and templates
| File | Purpose |
|------|---------|
| `references/input-schema.md` | JSON field layout for each tool |
| `references/health-scoring-framework.md` | Methodology, dimensions, threshold calibration |
| `references/cs-playbooks.md` | Intervention playbooks by tier, onboarding, renewal, escalation |
| `references/cs-metrics-benchmarks.md` | Unsourced working heuristics, not industry benchmarks; replace with your own data |
| `assets/qbr_template.md`, `success_plan_template.md`, `onboarding_checklist_template.md`, `executive_business_review_template.md` | Customer-facing templates |
## Troubleshooting
| Problem | Cause | Fix |
|---------|-------|-----|
| "NOT SCORED: segment ... missing" | Health needs enterprise, mid-market or smb | Add `segment` |
| "only N of 5 signal groups present" | Churn needs 3 groups | Add the missing blocks listed |
| Trend shows `no_data` | No `previous_period` block | Add previous scores |
| Everything flagged | Heuristic targets do not match your base | Edit `SEGMENT_BENCHMARKS` in the script and compare against churned vs retained cohorts |
## Limitations
Point-in-time JSON snapshots, no CRM connection, no ML, heuristic weights and revenue fractions. Related skills: churn-prevention, revenue-operations, pricing-strategy.