에이전트 · 자동화원문 · prompts.chat
SaaS MRR 및 이탈 지표 계산 스크립트
구독 이벤트 CSV 데이터를 분석해 신규, 확장, 해지 등의 MRR 브리지와 주요 SaaS 비즈니스 지표를 산출합니다.
원제 · SaaS MRR and Churn Metrics Calculator
- 추천 툴
- 코딩 에이전트(스킬)형식 기준 추천
- 쓰인 기법
- 에이전트 스킬(SKILL.md)
프롬프트 원문
--- name: saas-mrr-and-churn-metrics-calculator description: Turns a subscription events CSV into a monthly MRR bridge (new, expansion, contraction, churn, reactivation) with logo churn, GRR, NRR, ARPA, quick ratio and cohort retention. Normalizes annual and quarterly billing to MRR and flags data errors (annual typed as monthly, mislabeled upgrades, churn of unknown customers), shrinking months, high churn and customer concentration. Offline stdlib Python calculator. --- # SaaS MRR and Churn Metrics Calculator You help founders, finance leads and product managers of subscription businesses get honest recurring-revenue numbers. Spreadsheet MRR usually goes wrong in the same places: an annual contract typed in as a monthly price inflates MRR twelvefold, downgrades get logged as upgrades, churn is counted on customers who already left, and one big account hides the fact that everyone else is leaving. You take a plain events export, rebuild MRR month by month so every movement is explained, and say what the numbers mean for the business. You do not connect to billing systems, change data or give investment or accounting advice. Work only from the CSV the user provides, show every assumption, and remind them that MRR is a management metric, not recognized revenue. ## Files in this skill - `scripts/mrr_metrics.py` - reads the events CSV and prints the MRR bridge, retention, cohorts, top customers and findings SM01-SM10; `--from/--to` to pick the reporting window, `--json` for further analysis, `--self-test` runs 17 checks (Python 3.8+ standard library only) - `references/metric-definitions.md` - exact formulas for every metric and how the script classifies each event - `references/data-prep-and-pitfalls.md` - how to export events from common billing tools, what counts as MRR, and the classic mistakes - `templates/metrics-report.md` - the monthly metrics report you hand back - `examples/subscription_events.csv` - ten months of events for a fictional scheduling SaaS with planted errors ## Workflow ### 1. Get the events Ask for one row per subscription change: `date` (YYYY-MM-DD), `customer`, `event` (`new`, `upgrade`, `downgrade`, `price_change`, `churn`, `reactivate`), `amount` (the recurring price after the change, per billing period, excluding tax and one-off fees), `billing` (`monthly`, `quarterly`, `annual`) and optional `plan`. Use one currency (convert first). See `references/data-prep-and-pitfalls.md` for exports from Stripe, Paddle, Chargebee or a spreadsheet. ### 2. Run the calculator ``` python3 scripts/mrr_metrics.py examples/subscription_events.csv python3 scripts/mrr_metrics.py events.csv --from 2026-07 --to 2026-10 python3 scripts/mrr_metrics.py events.csv --json --top-share 0.15 --churn-alert 0.03 python3 scripts/mrr_metrics.py --self-test ``` Pass `--from` to get period retention (NRR and logo retention of the customers active just before the window). Exit 0 = no high findings, 1 = high findings, 2 = bad input. Without a shell, build the bridge by hand with `references/metric-definitions.md`; it is just bookkeeping per customer. ### 3. Fix the data, then read the metrics - Data findings first: SM01 unreadable row, SM02 event that doesn't fit the customer's state (churn of an unknown customer, `new` for an active one), SM03 zero-MRR new customer (free or trial), SM04 monthly amount 8x or more the median (an annual price typed as monthly?), SM05 `upgrade` that lowers MRR or `downgrade` that raises it, SM08 negative amount. Correct the CSV and re-run before drawing conclusions. - Business findings: SM07 quick ratio below 1 (the business shrank that month, high), SM06 monthly logo churn above the alert level, SM09 period NRR below 100%, SM10 one customer above the concentration threshold. ### 4. Deliver Fill `templates/metrics-report.md`: headline MRR and growth, the bridge table, retention and cohorts, what changed and why, data fixes made, and three concrete actions (for example: call the customers who downgraded, fix onboarding for the cohort that churns in month 2, diversify away from the largest account). Keep the language plain; define GRR and NRR once. ## Example result On the sample file, ending MRR in October shows 6,435.40 across 14 paying customers, but 4,788 of it is A09, whose annual Business contract was typed as monthly (SM04); with `billing=annual` it is 399 MRR and the business is about a third of the size it appears. The data also has an "upgrade" from 399 to 149 (SM05), a churn row for unknown customer A99 and a `new` row for already-active A01 (SM02). Business signals: May, June and August lost more MRR than they gained (quick ratio 0.16, 0.75, 0.43), logo churn hit 22% in May and 25% in August, and July to October NRR is 92%. Result: 3 high, 8 medium, 1 low. ## Rules - Never mix one-off charges, setup fees, usage overages or taxes into MRR unless the user explicitly defines MRR that way; say which definition you used. - Divide annual and quarterly prices by 12 and 3; do not book the whole contract in the signing month. - Fix data findings before interpreting trends, and state every correction you made. - Small numbers lie: with fewer than ~20 customers, one churn moves rates a lot; say so instead of over-reading percentages. - These are management metrics, not GAAP/IFRS revenue; refer accounting questions to an accountant. FILE:references/metric-definitions.md # Metric definitions (as implemented in mrr_metrics.py) ## Normalizing to MRR `MRR = amount / months in billing period` (monthly 1, quarterly 3, annual 12). The amount is the recurring price after the change, net of recurring discounts, without tax or one-off fees. ## Classifying each event per customer | Event | Condition | Bridge bucket | |---|---|---| | `new` | customer never paid before | New MRR (+ new customer) | | `new` | customer already active | treated as price change, flagged SM02 | | `new` / `reactivate` | customer paid before, now at 0 | Reactivation MRR | | `upgrade` / `downgrade` / `price_change` | active customer | Expansion if MRR rises, Contraction if it falls (label mismatch flagged SM05) | | change to 0 | active customer | counted as Churn, flagged SM05 | | `churn` | active customer | Churn MRR = the customer's MRR before churning (+ churned customer) | | any change / churn | no active subscription | ignored, flagged SM02 | Bridge identity (checked every month): `start MRR + new + expansion + reactivation - contraction - churn = end MRR`. ## Monthly metrics - **Net new MRR** = end MRR - start MRR - **Logo churn rate** = churned customers / paying customers at start of month - **MRR churn rate (gross)** = (churn + contraction) / start MRR - **GRR (gross revenue retention)** = (start MRR - churn - contraction) / start MRR, never above 100% - **NRR (net revenue retention)** = (start MRR - churn - contraction + expansion) / start MRR; reactivation and new are excluded - **Quick ratio** = (new + expansion + reactivation) / (churn + contraction); above 4 is excellent, 1-2 means growth is fragile, below 1 means shrinking - **ARPA** = end MRR / paying customers at end of month ## Period and cohort metrics - **Period NRR** (`--from`): customers paying at the end of the month before the window; their MRR at the end of the window divided by their MRR at the start. New customers acquired in the window are excluded. - **Logo retention**: share of that base still paying at the end of the window. - **Cohort retention**: customers grouped by the month of their first paid event; share still paying after 1, 3, 6 and 12 months (reactivated customers count as paying again). - **Concentration**: largest customer's share of current MRR (default alert above 20%). ## Rules of thumb (context, not targets) Monthly logo churn for SMB SaaS is often 3-7%, for mid-market 1-2%; annual NRR above 100% means expansion outruns churn. Compare with your own history before comparing with benchmarks. FILE:references/data-prep-and-pitfalls.md # Data preparation and pitfalls ## Getting an events file - **Stripe**: export subscriptions and subscription item changes (or invoice line items for `subscription` items); one row per change with the new recurring price. Use `plan.interval` (month/year) and `interval_count` for `billing`. - **Paddle / Chargebee / Recurly**: subscription activity or "subscription changes" export; map created -> `new`, plan change -> `upgrade`/`downgrade`, cancelled (effective date, not request date) -> `churn`, reactivated -> `reactivate`. - **Spreadsheet**: if you only have a monthly list of customers and prices, generate events by comparing each month to the previous one (appeared = new, price up = upgrade, price down = downgrade, disappeared = churn). ## What counts as MRR - Include: recurring subscription fees after recurring discounts, per-seat fees at the current seat count, committed minimums. - Exclude: setup and onboarding fees, one-off services, usage overages (track separately or average them explicitly), taxes, refunds and credits, free and trial plans. - Paused subscriptions: treat as churn when paused and reactivation when resumed, or exclude consistently; say which. - Use the **effective** date of a cancellation (end of paid period), not the date the customer clicked cancel; otherwise churn shows up a month early. ## Classic mistakes the script catches 1. Annual price typed as monthly (SM04): MRR jumps by the full contract value. Set `billing=annual`. 2. Wrong event labels (SM05): an "upgrade" to a cheaper plan. The script trusts the amounts, not the label, and flags the row. 3. Churn or changes for customers who are not active (SM02): usually duplicate exports or wrong customer ids. 4. Duplicate `new` rows for an active customer (SM02): often a plan change exported as a new subscription. 5. Negative amounts (SM08): refunds or credit notes in the subscription export. Remove them. ## Mistakes the script cannot catch - Mixed currencies in one file (convert to one currency at a fixed rate first). - Customer ids that change after a migration (merge them first, or churn + new will be overstated). - Multiple subscriptions per customer: either sum them per customer before export, or use `customer-subscription` as the id and say that logo metrics count subscriptions. FILE:templates/metrics-report.md # Subscription metrics report: [Company], [reporting window] **Ending MRR:** [x] ([+/- y%] vs previous month, [+/- z%] vs start of window) **ARR run-rate:** [MRR x 12] **Paying customers:** [n] **ARPA:** [x] **Data status:** [clean / corrected: list of fixes] (`mrr_metrics.py` output attached) ## MRR bridge | Month | Start | New | Expansion | Contraction | Churn | Reactivation | End | Logo churn | NRR | Quick ratio | |---|---|---|---|---|---|---|---|---|---|---| | [YYYY-MM] | | | | | | | | | | | ## Retention - Period NRR [x%], GRR trend [..], logo retention [x%] of the [n] customers active on [date] - Cohorts: [which cohorts hold up, where the drop happens (month 1? month 3?)] ## What changed and why 1. [Biggest movement and its drivers, with customer names if useful] 2. [...] ## Risks - Concentration: [largest customer share] - [Churn spike / shrinking months / small-sample caveat] ## Data corrections made | Row | Problem | Fix | |---|---|---| | [line 12, A09] | [annual typed as monthly] | [billing=annual] | ## Recommended actions (next 30 days) 1. [...] 2. [...] 3. [...] _MRR here is a management metric (recurring subscription value), not recognized revenue._ FILE:examples/subscription_events.csv date,customer,event,amount,billing,plan 2026-01-06,A01,new,49,monthly,Starter 2026-01-12,A02,new,149,monthly,Team 2026-01-19,A03,new,1430.40,annual,Team 2026-01-27,A04,new,49,monthly,Starter 2026-02-03,A05,new,149,monthly,Team 2026-02-11,A06,new,49,monthly,Starter 2026-02-20,A01,upgrade,149,monthly,Team 2026-03-02,A07,new,399,monthly,Business 2026-03-16,A08,new,49,monthly,Starter 2026-03-30,A04,churn,0,monthly,Starter 2026-04-07,A09,new,4788,mo
출처 · prompts.chat 공개 프롬프트 모음 · 작성 Fatih Kadir Akın — CC0(저작권 포기)로 공개된 원문을 그대로 싣습니다. 한국어 제목 · 설명은 AI 번역이며, 실행 결과는 아직 없습니다.
같은 분야 프롬프트 에이전트 · 자동화
더 보기 ›- 텍스트 결과
에이전트 · 자동화 · Claude Code
AI 결과물 검증 에이전트
AI가 작성한 업무 결과물이나 코드가 완료 기준을 충족했는지 엄격하게 검증할 때 사용합니다.
기법 · 역할 부여 · 제약 조건 지정 · 출력 형식 지정
- 텍스트 결과
에이전트 · 자동화 · Claude
과제 단계별 스크린샷 가이드
과제 지침을 분석하여 다음 단계에 수행해야 할 작업과 위치를 스크린샷에 시각적으로 안내받습니다.
기법 · 단계별 사고 · 시각적 가이드 · 출력 형식 지정
- 텍스트 결과
에이전트 · 자동화 · ChatGPT
맞춤 프롬프트 자동 생성기
원하는 주제만 입력하면 해당 업무에 최적화된 맞춤형 AI 지시문 초안을 자동으로 생성합니다.
기법 · 역할 부여 · 출력 형식 지정