Command Palette

Search for a command to run...

YepAPI
Free · All Tools

SaaS Metrics Agent Skill

Churn rate, LTV, CAC, cohort analysis, MRR waterfall, and expansion revenue tracking.

saasmetricschurnltv

The Skill

Full content, every format. Copy it, download it, or install with one command.

SKILL.md
---
description: Churn rate, LTV, CAC, cohort analysis, MRR waterfall, and expansion revenue tracking.
homepage: https://yepapi.com/skills/saas-metrics
metadata:
  tags: [saas, metrics, churn, ltv]
---

# SaaS Metrics

## Rules

- Churn rate: (customers lost in period / customers at start of period) * 100 — calculate monthly, track logo churn and revenue churn separately
- LTV (Lifetime Value): ARPU / monthly churn rate — or sum of revenue per customer over their lifetime for actuals
- CAC (Customer Acquisition Cost): total sales + marketing spend / new customers acquired in period
- LTV:CAC ratio: target 3:1 or higher — below 1:1 means losing money on every customer
- Net Revenue Retention (NRR): (starting MRR + expansion - contraction - churn) / starting MRR * 100 — target >100%
- MRR waterfall: display as stacked bar chart — new, expansion, contraction, churn, net change per month
- Cohort analysis: group customers by signup month — track retention and revenue per cohort over time — display as heatmap
- Expansion revenue: track upgrades, add-ons, and seat additions separately — expansion >30% of new MRR is healthy

## Metric Calculations

```typescript
function churnRate(startCustomers: number, lostCustomers: number): number {
  return (lostCustomers / startCustomers) * 100;
}

function ltv(arpu: number, monthlyChurnRate: number): number {
  return arpu / (monthlyChurnRate / 100);
}

function nrr(startMRR: number, expansion: number, contraction: number, churn: number): number {
  return ((startMRR + expansion - contraction - churn) / startMRR) * 100;
}
```

## Cohort Table Schema

```sql
CREATE TABLE cohort_metrics (
  cohort_month DATE NOT NULL,
  period_month DATE NOT NULL,
  customers_start INTEGER NOT NULL,
  customers_end INTEGER NOT NULL,
  revenue_cents INTEGER NOT NULL,
  PRIMARY KEY (cohort_month, period_month)
);
```

Query: `SELECT cohort_month, period_month, (customers_end::float / customers_start * 100) as retention_pct FROM cohort_metrics`.

## Avoid

- Confusing logo churn with revenue churn — a big customer leaving is worse than 5 small ones
- Calculating LTV without accounting for churn — infinite LTV is not real
- Monthly-only snapshots — store event-level data to allow recomputation
- Ignoring negative churn (NRR >100%) as a goal — expansion revenue is the path to growth

Install

Why Use the SaaS Metrics Skill?

Without this skill, your AI guesses at saas metrics patterns. It might hallucinate deprecated APIs, use outdated conventions, or miss best practices entirely. With it, your AI follows a proven ruleset — every suggestion aligns with current standards.

Drop this skill into your project and your AI instantly knows the rules. Better code suggestions, fewer errors, faster shipping.

Try These Prompts

These prompts work better with the SaaS Metrics skill installed. Your AI knows the context and writes code that fits.

"Build a SaaS metrics dashboard with MRR waterfall, churn rate, and cohort analysis"

"Create a revenue analytics page with LTV, CAC, and expansion revenue tracking"

"Set up automated SaaS metric calculations with daily snapshots and trend charts"

SaaS Metrics skill — FAQ

It covers churn rate, LTV, CAC, cohort analysis, MRR waterfall, and expansion revenue tracking. Your AI calculates SaaS metrics correctly and builds dashboards that surface actionable insights.

Run `npx skills add YepAPI/skills --skill saas-metrics` in your project root. This copies the skill file into your repo where your AI coding tool can read it automatically.

The skill uses LTV = ARPU / churn rate for simple calculation, and includes cohort-based LTV for more accurate projections. It tracks this alongside CAC to ensure sustainable unit economics.

Want more skills?

Browse all 110 free skills for builders.

See All Skills