Skip to content
Back to skills

Saas Metrics Coach

ASecurity

Calculates MRR/ARR, churn and NRR from a subscription CSV, cohort retention from a user activity CSV, and LTV, CAC, LTV:CAC and payback from a metrics JSON, and says what to change. Use when the user asks to "calculate MRR", "analyze churn", "compute SaaS metrics", "do cohort retention analysis", "calculate LTV or CAC", or "evaluate unit economics" and has their own data files.

  • 1,271 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
ai-agentspythongobashdocumentation

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill saas-metrics-coach --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Saas Metrics Coach?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Saas Metrics Coach
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-saas-metrics-coach/badge)](https://www.skillsdirectory.com/skills/borghei-saas-metrics-coach)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: saas-metrics-coach
description: >
  Calculates MRR/ARR, churn and NRR from a subscription CSV, cohort retention from a user
  activity CSV, and LTV, CAC, LTV:CAC and payback from a metrics JSON, and says what to change.
  Use when the user asks to "calculate MRR", "analyze churn", "compute SaaS metrics",
  "do cohort retention analysis", "calculate LTV or CAC", or "evaluate unit economics" and has
  their own data files.
license: MIT + Commons Clause
metadata:
  version: 1.1.0
  author: borghei
  category: finance
  domain: saas-metrics
  updated: 2026-12-03
  tags: [saas, mrr, arr, churn, cohort-analysis, ltv, cac, unit-economics]
---
# SaaS Metrics Coach Skill

## Overview

Production-ready SaaS metrics toolkit for calculating MRR/ARR, analyzing cohort retention, and evaluating unit economics. Designed for SaaS founders, finance teams, and growth operators who need precise subscription revenue analysis without spreadsheet gymnastics.

## Clarify First

Before calculating, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

- **Which metric set:** MRR/ARR growth, cohort retention, or unit economics (selects the script and the input format: subscription CSV, activity CSV, or metrics JSON).
- **Reporting period + currency handling:** the window and how multi-currency MRR is normalized (changes every revenue and churn figure).
- **Gross margin:** the margin to apply (drives LTV and CAC payback; LTV = ARPU x margin / churn).
- **Churn definition:** gross vs. net, logo vs. revenue (changes churn rate, NRR, and the health-flag verdict).

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

## Quick Start

```bash
python3 scripts/mrr_calculator.py assets/sample_subscriptions.csv --breakdown
python3 scripts/cohort_analyzer.py assets/sample_cohorts.csv --cohort-period monthly
python3 scripts/unit_economics.py assets/flawed_metrics.json
```

Real output (`unit_economics.py assets/flawed_metrics.json`, abridged):

```
Churn used: 8.00% (churned_customers 32 / total_customers 400)
CAC                    1,500.00
LTV gross-margin adj.  350.00   (LTV:CAC 0.23x)
CAC payback            53.60 months

1. [ltv-cac] LTV:CAC 0.23x = LTV 350.00 / CAC 1,500.00 (loses money on each customer (below 1))
   threshold: 3x (common rule of thumb, heuristic, varies by stage and segment)
   fix: Reach 3x by cutting CAC to 116.67 (now 1,500.00) or cutting monthly churn to 0.62% (now 8.00%).
FIX 3 issues
```

All three tools read your file, say how much of it they read, quote the numbers behind each
finding, give a fix with a target value, and end with a verdict line (`PASS` or `FIX n issues`).
Nothing is assumed: missing margin, churn or activity data stops the run instead of using a default.

## Exit codes

| Code | Meaning |
|------|---------|
| 0 | `PASS`, no findings |
| 1 | `FIX n issues`, findings to act on (includes rows that could not be read) |
| 2 | `BLOCKED: <reason>` on stderr: file missing, empty, wrong shape, invalid number, no data in the period |

All tools accept `--format text|json` (`--json` is an alias). JSON carries `read`, the metrics,
`findings`, `next_actions` and `verdict`.

## Tools

| Tool | Input | Notes |
|------|-------|-------|
| `scripts/mrr_calculator.py FILE [--period YYYY-MM] [--breakdown] [--all-periods]` | CSV: `customer_id, plan, start_date` + `mrr` (or `amount_cents`/`amount`); optional `end_date, status` | Default period is the latest month in the file. Overlapping rows for one customer = plan change (latest start wins). A row is active up to, not including, `end_date`. Rows marked churned without `end_date` are not read and are reported. Rates are `n/a` when beginning MRR is 0. |
| `scripts/cohort_analyzer.py FILE [--cohort-period weekly\|monthly\|quarterly] [--max-periods N]` | CSV: `user_id, signup_date` + one activity column (`activity_date`, `event_date`, `active_date`, `activity_month`, or `last_active_date`) | Event columns: active in each period with an event. `last_active_date`: assumed active continuously from signup to that date. Periods after the last date in the file are blank, not churn. Averages are weighted by cohort size. Month 1 and month 3 targets apply to monthly cohorts only. |
| `scripts/unit_economics.py FILE [--discount-rate 0.10] [--interactive]` | JSON: `total_customers, new_customers, total_mrr, sales_marketing_spend, gross_margin` + `monthly_churn_rate` or `churned_customers` | Gross margin and churn are required, never defaulted. Zero churn gives `n/a` LTV instead of an invented cap. `spend` and `new_customers` must cover the same period. Add `net_new_mrr` for the magic number. |

Samples for every tool are in `assets/` (sound, flawed, malformed); `assets/contract.json` lists the runs.

## Workflows

### Workflow 1: Monthly SaaS Health Check

1. Export subscription data as CSV (columns: customer_id, plan, mrr, start_date, end_date)
2. Run `mrr_calculator.py subscriptions.csv` to get current MRR, ARR, net new MRR, churn rate
3. Run `python3 scripts/cohort_analyzer.py users.csv` on user activity data to identify retention trends
4. Run `python3 scripts/unit_economics.py metrics.json` to validate LTV:CAC ratio stays above 3:1
5. Review output for warning flags (churn > 5%, LTV:CAC < 3, payback > 18 months)

### Workflow 2: Investor Deck Preparation

1. Run `python3 scripts/mrr_calculator.py subscriptions.csv --all-periods --format json` to get growth metrics for charts
2. Run `python3 scripts/cohort_analyzer.py users.csv --format json` for retention curves
3. Run `python3 scripts/unit_economics.py metrics.json --format json` for unit economics summary
4. Use JSON output to populate investor deck data points

### Workflow 3: Churn Investigation

1. Run `python3 scripts/mrr_calculator.py subscriptions.csv --breakdown` to see churn by plan tier
2. Run `python3 scripts/cohort_analyzer.py users.csv` to identify which cohorts churn fastest
3. Cross-reference cohort drop-off periods with product changes
4. Identify if churn is concentrated in specific segments or time windows

## Reference Documentation

### Key SaaS Metrics Definitions

- **MRR (Monthly Recurring Revenue):** Sum of all active subscription revenue normalized to monthly
- **ARR (Annual Recurring Revenue):** MRR x 12
- **Net New MRR:** New MRR + Expansion MRR - Churned MRR - Contraction MRR
- **Gross Churn Rate:** Lost MRR / Beginning MRR for the period
- **Net Revenue Retention (NRR):** (Beginning MRR + Expansion - Churn - Contraction) / Beginning MRR
- **LTV (Lifetime Value):** ARPU / Monthly Churn Rate (simplified) or ARPU x Gross Margin / Churn
- **CAC (Customer Acquisition Cost):** Total Sales & Marketing Spend / New Customers Acquired
- **LTV:CAC Ratio:** Target 3:1 or higher for healthy SaaS
- **CAC Payback Period:** CAC / (ARPU x Gross Margin) in months

See `references/saas-metrics-guide.md` for comprehensive framework details.

## Common Patterns

### Pattern: Subscription CSV Format
```csv
customer_id,plan,mrr,start_date,end_date,status
C001,pro,99.00,2025-01-15,,active
C002,basic,29.00,2025-02-01,2025-08-15,churned
C002,pro,99.00,2025-03-01,,active
```

### Pattern: User Activity CSV Format
```csv
user_id,signup_date,activity_date
U001,2025-01-05,2025-01-05
U001,2025-01-05,2025-02-11
U002,2025-01-12,2025-01-12
```

### Pattern: Unit Economics JSON Format
```json
{
  "period": "2025-Q4",
  "total_customers": 1200,
  "new_customers": 150,
  "churned_customers": 45,
  "total_mrr": 89500.00,
  "gross_margin": 0.82,
  "sales_marketing_spend": 45000.00
}
```

### Rule-of-thumb thresholds (heuristics, not sourced benchmarks)

| Metric | Concerning | Acceptable | Strong |
|--------|-----------|------------|--------|
| Monthly Churn | > 5% | 2-5% | < 2% |
| Net Revenue Retention | < 90% | 90-110% | > 120% |
| LTV:CAC | < 1:1 | 1:1-3:1 | > 3:1 |
| CAC Payback | > 24 mo | 12-18 mo | < 12 mo |
| Gross Margin | < 60% | 60-75% | > 75% |

## Scope & Limitations

**In Scope:**
- MRR, ARR, net new MRR, growth and churn from a subscription CSV with `mrr_calculator.py`, by period and optionally by plan tier
- Cohort retention matrices from user signup and activity data with `cohort_analyzer.py` (weekly, monthly or quarterly cohorts)
- Unit economics with `unit_economics.py`: simple, gross-margin-adjusted and discounted LTV, CAC, LTV:CAC and CAC payback
- Metric definitions and the healthy-SaaS benchmark table, with more detail in `references/saas-metrics-guide.md`

**Out of Scope:**
- Full financial statements, DCF valuation and budget variance (see `finance/financial-analyst/`)
- Churn reduction playbooks and save flows (see `business-growth/churn-prevention/`)
- Pricing and packaging decisions (see `business-growth/pricing-strategy/`)
- Writing the investor update itself (see `personal-productivity/investor-update-generator/`)
- Direct connection to billing systems such as Stripe or Chargebee, and revenue recognition accounting

**Important Caveats:**
- Data comes in as a CSV or JSON export prepared by the user. The tools do not convert currencies, so multi-currency MRR must be normalized before it is loaded.
- Results depend on the churn definition, gross margin and discount rate supplied. Changing any of them changes LTV, payback and the health flags.
- The thresholds (for example churn above 5% or LTV:CAC below 3:1) are general rules of thumb. They vary by segment, price point and stage.

Files in this skill

  • SKILL.md4.5 KB
  • examples/cohorts.csv836 B
  • examples/subscriptions.csv1.9 KB
  • references/saas-metrics-guide.md5.9 KB
  • scripts/cohort_analyzer.py10.8 KB
  • scripts/mrr_calculator.py12.6 KB
  • scripts/unit_economics.py13.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.