@vesviet/agent-skills 5.6.0 → 5.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/INDEX.md +1 -1
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  5. package/adapters/antigravity/role-skill-index.json +1 -1
  6. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  7. package/adapters/cursor/README.md +185 -185
  8. package/bin/agent-skills.mjs +17 -14
  9. package/core/contracts/schemas/api-contract-spec.json +191 -191
  10. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  11. package/core/contracts/schemas/pull-request-spec.json +338 -338
  12. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  13. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  14. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  15. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  16. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  17. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  18. package/core/contracts/schemas/test-report.json +530 -530
  19. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  20. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  21. package/core/roles/system-engineer.md +465 -465
  22. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  23. package/core/skills/backend/build-mcp-server/SKILL.md +100 -100
  24. package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -94
  25. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  26. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  27. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  28. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  29. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  30. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  31. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  32. package/core/skills/document/pptx/scripts/clean.py +0 -0
  33. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  34. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  35. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  36. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  37. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  38. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  39. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  40. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  41. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  42. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  43. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  44. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  45. package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -107
  46. package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -108
  47. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  48. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  49. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  50. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  51. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  52. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  53. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  54. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  55. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  56. package/core/skills/platform/web-perf/SKILL.md +151 -151
  57. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  58. package/core/skills/product/build-story-map/SKILL.md +104 -104
  59. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  60. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  61. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  62. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  63. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  64. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  65. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  66. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  67. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  68. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  69. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  70. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  71. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  72. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  73. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  74. package/core/skills/security-data/security-audit/SKILL.md +119 -119
  75. package/core/workflows/add-new-feature.md +212 -212
  76. package/core/workflows/agent-a2a-delegation.md +142 -142
  77. package/core/workflows/bug-fix.md +147 -147
  78. package/core/workflows/build-deploy.md +208 -208
  79. package/core/workflows/code-review.md +137 -137
  80. package/core/workflows/dependency-upgrade.md +193 -193
  81. package/core/workflows/feature-delivery.md +149 -149
  82. package/core/workflows/hotfix-production.md +172 -172
  83. package/core/workflows/qa-validation.md +231 -231
  84. package/core/workflows/refactoring.md +154 -154
  85. package/core/workflows/revert-deployment.md +147 -147
  86. package/core/workflows/security-incident-response.md +191 -191
  87. package/core/workflows/seo-content-lifecycle.md +91 -91
  88. package/core/workflows/service-review-release.md +223 -223
  89. package/core/workflows/setup-new-service.md +214 -214
  90. package/core/workflows/tech-repo-review.md +245 -245
  91. package/core/workflows/troubleshooting.md +241 -241
  92. package/overlays/astro-cloudflare/README.md +93 -93
  93. package/overlays/data-analyst-stack/README.md +109 -109
  94. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  95. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  96. package/overlays/ecommerce-microservices/README.md +65 -65
  97. package/overlays/go-microservices/README.md +78 -78
  98. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  99. package/overlays/laravel-filament/README.md +90 -90
  100. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  101. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  102. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  103. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  104. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  105. package/overlays/r3f-stack/README.md +89 -89
  106. package/overlays/r3f-stack/rules/stub.md +43 -43
  107. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  108. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  109. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  110. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  111. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  112. package/package.json +2 -2
  113. package/core/README.md +0 -53
@@ -1,104 +1,104 @@
1
- ---
2
- name: model-saas-metrics
3
- description: Model SaaS unit economics, deterministic financial metrics, Van Westendorp price sensitivity, and AI Total Cost of Ownership (TCO). Use when calculating CAC, LTV, Magic Number, Rule of 40, Burn Multiple, Net Revenue Retention, analyzing pricing tiers and willingness-to-pay, or budgeting AI inference and orchestration costs per verified outcome.
4
- allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
- ---
6
-
7
- # Model SaaS Metrics
8
-
9
- Use this skill to model SaaS financial health, evaluate unit economics, optimize pricing models via willingness-to-pay analysis, and calculate AI Total Cost of Ownership (TCO) per verified outcome.
10
-
11
- ## When to Use
12
-
13
- - calculating SaaS business health metrics (CAC, LTV, Magic Number, Rule of 40, NRR, Burn Multiple)
14
- - evaluating pricing tiers, value metric selection, and packaging strategies
15
- - conducting Van Westendorp Price Sensitivity Meter (PSM) survey analysis
16
- - modeling Total Cost of Ownership (TCO) for AI products and agentic workflows
17
- - analyzing payback periods and unit economic feasibility before scaling marketing spend
18
- - establishing financial sanity gates for executive and investor briefings
19
-
20
- ## Core Rules
21
-
22
- - **Enforce Deterministic Financial Calculations**:
23
- - Never fabricate or hand-wave unit economics; apply strict mathematical definitions
24
- - Target benchmark ratios: $\text{LTV}/\text{CAC} \ge 3.0$, $\text{CAC Payback} \le 12$ months (SMB/Mid-Market) or $\le 18$ months (Enterprise)
25
- - Enforce the **Rule of 40**: $\text{YoY Revenue Growth Rate (\%)} + \text{Free Cash Flow Margin (\%)} \ge 40\%$
26
- - Track **Net Revenue Retention (NRR)**: $> 110\%$ indicates top-quartile product expansion power
27
- - **Calculate Magic Number for Go-To-Market Efficiency**:
28
- - $\text{Magic Number} = \frac{(\text{Q}_n \text{ ARR} - \text{Q}_{n-1} \text{ ARR}) \times 4}{\text{Q}_{n-1} \text{ Sales \& Marketing Expense}}$
29
- - $\ge 1.0$: High efficiency; accelerate S&M spend
30
- - $0.75 - 1.0$: Healthy efficiency; maintain pace
31
- - $< 0.75$: Inefficient growth; fix onboarding, retention, and product-market fit before scaling spend
32
- - **Apply Van Westendorp Price Sensitivity Meter (PSM)**:
33
- - Collect responses across 4 price points: Too Cheap, Cheap (Good Value), Expensive, Too Expensive
34
- - Map the 4 cumulative curves to determine the Price Sensitivity Envelope:
35
- - Point of Marginal Cheapness (PMC)
36
- - Point of Marginal Expensiveness (PME)
37
- - Optimum Price Point (OPP)
38
- - Indifference Price Point (IPP)
39
- - **Model AI Product TCO per Verified Outcome (80/20 Rule)**:
40
- - Never budget based on raw token inference costs alone
41
- - Model the complete economic envelope: raw model inference represents ~20% of operating cost; orchestration, eval pipelines, guardrails, embeddings, caching, and human-in-the-loop review represent ~80%
42
- - Measure unit economics in **Cost per Verified Outcome** (e.g. Cost per Resolved Support Ticket)
43
- - Detailed formulas, benchmarks, and PSM calculation worksheets: [`references/saas-unit-economics-and-pricing.md`](references/saas-unit-economics-and-pricing.md)
44
-
45
- ## Suggested Process
46
-
47
- ### 1. Collect Baseline Operating & Financial Inputs
48
- Gather New Bookings, MRR/ARR, Churn, S&M Expenses, Gross Margin %, and active customer counts.
49
-
50
- ### 2. Compute Core Unit Economics & Efficiency Ratios
51
- Calculate CAC, LTV, CAC Payback Period, Net Revenue Retention (NRR), and Magic Number. Assess against industry benchmarks.
52
-
53
- ### 3. Analyze Pricing Architecture & Willingness-to-Pay
54
- Evaluate current value metrics (seats, consumption, outcomes). If pricing is under review, analyze Van Westendorp survey data to establish the optimal price band.
55
-
56
- ### 4. Build AI Outcome Economic Envelope
57
- If AI/LLM components are involved, model total inference, embedding, retrieval, guardrail, and human escalation costs per user transaction.
58
-
59
- ### 5. Synthesize Executive Financial Report
60
- Produce a standardized metrics dashboard highlighting unit economic health, expansion efficiency, runway implications, and recommendations.
61
-
62
- ## Checklist
63
-
64
- - [ ] LTV calculated with Gross Margin adjustment: $\text{LTV} = \frac{\text{ARPU} \times \text{Gross Margin (\%)}}{\text{Churn Rate}}$
65
- - [ ] CAC includes fully loaded S&M costs (salaries, commissions, tools, ad spend)
66
- - [ ] CAC Payback Period accurately accounted for in months
67
- - [ ] Magic Number calculated using sequential quarters
68
- - [ ] Rule of 40 computed with Free Cash Flow or EBITDA margin
69
- - [ ] Van Westendorp Price Sensitivity Envelope identifies OPP and IPP
70
- - [ ] AI TCO accounts for 80/20 cost ratio (evals, guardrails, and human review included)
71
-
72
- ## Output Contracts
73
-
74
- When this skill feeds an executive briefing or a downstream product decision, emit:
75
-
76
- - **contracts/schemas/data-analysis-report.json** — Required fields: business_question, metrics[] (each SaaS metric with name, definition, value, grain, time_range), recommendations. Each definition must state the cohort/churn basis used.
77
- - **ai-tco-envelope.md** (inline deliverable) — Cost per Verified Outcome breakdown showing the 80/20 split: raw inference (~20%) vs orchestration, eval pipelines, guardrails, embeddings, caching, and human-in-the-loop review (~80%).
78
-
79
- Skip emission for quick solo sanity checks with no stakeholder handoff.
80
-
81
- ## Failure Modes
82
-
83
- - **Mixed cohort definitions**: LTV is computed with one churn definition while NRR in the same report uses another, making ratios incomparable. Mitigation: pin one cohort/churn definition per metric and record it in metrics[].definition.
84
- - **Non-margin LTV**: LTV is computed as ARPU / Churn without the Gross Margin adjustment, inflating value. Mitigation: enforce LTV = (ARPU × Gross Margin %) / Churn Rate.
85
- - **Understated CAC**: CAC counts only ad spend, omitting salaries, commissions, and tools. Mitigation: include fully loaded S&M costs in every CAC and payback calculation.
86
- - **Non-sequential Magic Number**: quarters are mixed (Q3 ARR delta over Q1 S&M expense), inflating efficiency. Mitigation: use sequential quarters Q_n vs Q_{n-1} for both the ARR delta and the S&M denominator.
87
- - **Token-only AI budget**: TCO is modeled from raw inference cost alone. Mitigation: apply the 80/20 envelope and express results as Cost per Verified Outcome (e.g. cost per resolved support ticket).
88
- - **Fabricated benchmarks**: industry benchmarks are presented as company measurements. Mitigation: separate measured metrics from benchmark references and cite the period and data source for every number.
89
- - **Mixed Rule-of-40 bases**: growth rate is computed on one fiscal convention while the margin silently swaps FCF for EBITDA. Mitigation: state the margin basis explicitly and keep it consistent across reporting periods.
90
-
91
- ## Security Guardrails (OWASP ASI)
92
-
93
- - **ASI01 Goal Hijack**: a desired narrative embedded in the request ("show Rule of 40 passing") steers metric selection. Mitigation: compute the full mandated metric set from raw inputs; never curate metrics to fit a target conclusion.
94
- - **ASI03 Identity & Privilege Abuse**: revenue, churn, and customer-level financial inputs are confidential. Mitigation: read only the declared data sources for this task and distribute reports solely to authorized finance/product stakeholders.
95
- - **ASI06 Context & Memory Poisoning**: prior-period metrics recalled from memory or a stale dashboard are reused as current inputs. Mitigation: re-pull each input from the verified source system and record time_range per metric.
96
- - **ASI07 Inter-Agent Communication**: metric reports are consumed by Product Manager and Business Analyst roles. Mitigation: emit data-analysis-report.json with explicit definitions and grain so downstream roles can reconcile numbers.
97
- - **ASI09 Human-Agent Trust Exploitation**: fabricated or cherry-picked unit economics presented to executives or investors to justify scaling spend. Mitigation: flag low-confidence inputs, keep benchmark vs measured distinct, and state plainly when Magic Number < 0.75 argues against acceleration.
98
-
99
- ## Related Skills
100
-
101
- - **define-product-strategy**: formulate value proposition and 7 Powers pricing power
102
- - **prioritize-roadmap**: incorporate financial ROI and effort into RICE scoring
103
- - **build-story-map**: align release scope with capacity and budget envelopes
104
- - **manage-vietnam-accounting**: reconcile financial statements and statutory accounts
1
+ ---
2
+ name: model-saas-metrics
3
+ description: Model SaaS unit economics, deterministic financial metrics, Van Westendorp price sensitivity, and AI Total Cost of Ownership (TCO). Use when calculating CAC, LTV, Magic Number, Rule of 40, Burn Multiple, Net Revenue Retention, analyzing pricing tiers and willingness-to-pay, or budgeting AI inference and orchestration costs per verified outcome.
4
+ allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
+ ---
6
+
7
+ # Model SaaS Metrics
8
+
9
+ Use this skill to model SaaS financial health, evaluate unit economics, optimize pricing models via willingness-to-pay analysis, and calculate AI Total Cost of Ownership (TCO) per verified outcome.
10
+
11
+ ## When to Use
12
+
13
+ - calculating SaaS business health metrics (CAC, LTV, Magic Number, Rule of 40, NRR, Burn Multiple)
14
+ - evaluating pricing tiers, value metric selection, and packaging strategies
15
+ - conducting Van Westendorp Price Sensitivity Meter (PSM) survey analysis
16
+ - modeling Total Cost of Ownership (TCO) for AI products and agentic workflows
17
+ - analyzing payback periods and unit economic feasibility before scaling marketing spend
18
+ - establishing financial sanity gates for executive and investor briefings
19
+
20
+ ## Core Rules
21
+
22
+ - **Enforce Deterministic Financial Calculations**:
23
+ - Never fabricate or hand-wave unit economics; apply strict mathematical definitions
24
+ - Target benchmark ratios: $\text{LTV}/\text{CAC} \ge 3.0$, $\text{CAC Payback} \le 12$ months (SMB/Mid-Market) or $\le 18$ months (Enterprise)
25
+ - Enforce the **Rule of 40**: $\text{YoY Revenue Growth Rate (\%)} + \text{Free Cash Flow Margin (\%)} \ge 40\%$
26
+ - Track **Net Revenue Retention (NRR)**: $> 110\%$ indicates top-quartile product expansion power
27
+ - **Calculate Magic Number for Go-To-Market Efficiency**:
28
+ - $\text{Magic Number} = \frac{(\text{Q}_n \text{ ARR} - \text{Q}_{n-1} \text{ ARR}) \times 4}{\text{Q}_{n-1} \text{ Sales \& Marketing Expense}}$
29
+ - $\ge 1.0$: High efficiency; accelerate S&M spend
30
+ - $0.75 - 1.0$: Healthy efficiency; maintain pace
31
+ - $< 0.75$: Inefficient growth; fix onboarding, retention, and product-market fit before scaling spend
32
+ - **Apply Van Westendorp Price Sensitivity Meter (PSM)**:
33
+ - Collect responses across 4 price points: Too Cheap, Cheap (Good Value), Expensive, Too Expensive
34
+ - Map the 4 cumulative curves to determine the Price Sensitivity Envelope:
35
+ - Point of Marginal Cheapness (PMC)
36
+ - Point of Marginal Expensiveness (PME)
37
+ - Optimum Price Point (OPP)
38
+ - Indifference Price Point (IPP)
39
+ - **Model AI Product TCO per Verified Outcome (80/20 Rule)**:
40
+ - Never budget based on raw token inference costs alone
41
+ - Model the complete economic envelope: raw model inference represents ~20% of operating cost; orchestration, eval pipelines, guardrails, embeddings, caching, and human-in-the-loop review represent ~80%
42
+ - Measure unit economics in **Cost per Verified Outcome** (e.g. Cost per Resolved Support Ticket)
43
+ - Detailed formulas, benchmarks, and PSM calculation worksheets: [`references/saas-unit-economics-and-pricing.md`](references/saas-unit-economics-and-pricing.md)
44
+
45
+ ## Suggested Process
46
+
47
+ ### 1. Collect Baseline Operating & Financial Inputs
48
+ Gather New Bookings, MRR/ARR, Churn, S&M Expenses, Gross Margin %, and active customer counts.
49
+
50
+ ### 2. Compute Core Unit Economics & Efficiency Ratios
51
+ Calculate CAC, LTV, CAC Payback Period, Net Revenue Retention (NRR), and Magic Number. Assess against industry benchmarks.
52
+
53
+ ### 3. Analyze Pricing Architecture & Willingness-to-Pay
54
+ Evaluate current value metrics (seats, consumption, outcomes). If pricing is under review, analyze Van Westendorp survey data to establish the optimal price band.
55
+
56
+ ### 4. Build AI Outcome Economic Envelope
57
+ If AI/LLM components are involved, model total inference, embedding, retrieval, guardrail, and human escalation costs per user transaction.
58
+
59
+ ### 5. Synthesize Executive Financial Report
60
+ Produce a standardized metrics dashboard highlighting unit economic health, expansion efficiency, runway implications, and recommendations.
61
+
62
+ ## Checklist
63
+
64
+ - [ ] LTV calculated with Gross Margin adjustment: $\text{LTV} = \frac{\text{ARPU} \times \text{Gross Margin (\%)}}{\text{Churn Rate}}$
65
+ - [ ] CAC includes fully loaded S&M costs (salaries, commissions, tools, ad spend)
66
+ - [ ] CAC Payback Period accurately accounted for in months
67
+ - [ ] Magic Number calculated using sequential quarters
68
+ - [ ] Rule of 40 computed with Free Cash Flow or EBITDA margin
69
+ - [ ] Van Westendorp Price Sensitivity Envelope identifies OPP and IPP
70
+ - [ ] AI TCO accounts for 80/20 cost ratio (evals, guardrails, and human review included)
71
+
72
+ ## Output Contracts
73
+
74
+ When this skill feeds an executive briefing or a downstream product decision, emit:
75
+
76
+ - **contracts/schemas/data-analysis-report.json** — Required fields: business_question, metrics[] (each SaaS metric with name, definition, value, grain, time_range), recommendations. Each definition must state the cohort/churn basis used.
77
+ - **ai-tco-envelope.md** (inline deliverable) — Cost per Verified Outcome breakdown showing the 80/20 split: raw inference (~20%) vs orchestration, eval pipelines, guardrails, embeddings, caching, and human-in-the-loop review (~80%).
78
+
79
+ Skip emission for quick solo sanity checks with no stakeholder handoff.
80
+
81
+ ## Failure Modes
82
+
83
+ - **Mixed cohort definitions**: LTV is computed with one churn definition while NRR in the same report uses another, making ratios incomparable. Mitigation: pin one cohort/churn definition per metric and record it in metrics[].definition.
84
+ - **Non-margin LTV**: LTV is computed as ARPU / Churn without the Gross Margin adjustment, inflating value. Mitigation: enforce LTV = (ARPU × Gross Margin %) / Churn Rate.
85
+ - **Understated CAC**: CAC counts only ad spend, omitting salaries, commissions, and tools. Mitigation: include fully loaded S&M costs in every CAC and payback calculation.
86
+ - **Non-sequential Magic Number**: quarters are mixed (Q3 ARR delta over Q1 S&M expense), inflating efficiency. Mitigation: use sequential quarters Q_n vs Q_{n-1} for both the ARR delta and the S&M denominator.
87
+ - **Token-only AI budget**: TCO is modeled from raw inference cost alone. Mitigation: apply the 80/20 envelope and express results as Cost per Verified Outcome (e.g. cost per resolved support ticket).
88
+ - **Fabricated benchmarks**: industry benchmarks are presented as company measurements. Mitigation: separate measured metrics from benchmark references and cite the period and data source for every number.
89
+ - **Mixed Rule-of-40 bases**: growth rate is computed on one fiscal convention while the margin silently swaps FCF for EBITDA. Mitigation: state the margin basis explicitly and keep it consistent across reporting periods.
90
+
91
+ ## Security Guardrails (OWASP ASI)
92
+
93
+ - **ASI01 Goal Hijack**: a desired narrative embedded in the request ("show Rule of 40 passing") steers metric selection. Mitigation: compute the full mandated metric set from raw inputs; never curate metrics to fit a target conclusion.
94
+ - **ASI03 Identity & Privilege Abuse**: revenue, churn, and customer-level financial inputs are confidential. Mitigation: read only the declared data sources for this task and distribute reports solely to authorized finance/product stakeholders.
95
+ - **ASI06 Context & Memory Poisoning**: prior-period metrics recalled from memory or a stale dashboard are reused as current inputs. Mitigation: re-pull each input from the verified source system and record time_range per metric.
96
+ - **ASI07 Inter-Agent Communication**: metric reports are consumed by Product Manager and Business Analyst roles. Mitigation: emit data-analysis-report.json with explicit definitions and grain so downstream roles can reconcile numbers.
97
+ - **ASI09 Human-Agent Trust Exploitation**: fabricated or cherry-picked unit economics presented to executives or investors to justify scaling spend. Mitigation: flag low-confidence inputs, keep benchmark vs measured distinct, and state plainly when Magic Number < 0.75 argues against acceleration.
98
+
99
+ ## Related Skills
100
+
101
+ - **define-product-strategy**: formulate value proposition and 7 Powers pricing power
102
+ - **prioritize-roadmap**: incorporate financial ROI and effort into RICE scoring
103
+ - **build-story-map**: align release scope with capacity and budget envelopes
104
+ - **manage-vietnam-accounting**: reconcile financial statements and statutory accounts
@@ -1,110 +1,110 @@
1
- # SaaS Unit Economics, 32 Financial Metrics & Van Westendorp Pricing
2
-
3
- > Authoritative mathematical and operational reference guide for SaaS unit economics, capital efficiency, willingness-to-pay surveys, and AI Total Cost of Ownership.
4
-
5
- ---
6
-
7
- ## 1. Master Index: 32 SaaS Financial & Operational Metrics
8
-
9
- ### Category A: Revenue & Growth Metrics
10
- 1. **MRR (Monthly Recurring Revenue)**: Normalized monthly subscription revenue. $\\text{MRR} = \\sum \\text{Monthly Contract Values}$.
11
- 2. **ARR (Annual Recurring Revenue)**: Annualized recurring contract value. $\\text{ARR} = \\text{MRR} \\times 12$.
12
- 3. **Net New ARR**: $\\text{New ARR} + \\text{Expansion ARR} - \\text{Contraction ARR} - \\text{Churned ARR}$.
13
- 4. **ARPU / ARPA (Average Revenue Per User/Account)**: $\\text{Total MRR} / \\text{Total Active Accounts}$.
14
- 5. **YoY Revenue Growth Rate**: $[(\\text{ARR}_t - \\text{ARR}_{t-1}) / \\text{ARR}_{t-1}] \\times 100\\%$.
15
- 6. **Compound Monthly Growth Rate (CMGR)**: $[(\\text{MRR}_t / \\text{MRR}_0)^{1/t} - 1] \\times 100\\%$.
16
-
17
- ### Category B: Retention & Churn Dynamics
18
- 7. **Gross Revenue Retention (GRR)**: $[(\\text{Beginning ARR} - \\text{Contraction} - \\text{Churn}) / \\text{Beginning ARR}] \\times 100\\%$. Max $100\\%$. Target $>85\\%$ SMB, $>90\\%$ Enterprise.
19
- 8. **Net Revenue Retention (NRR)**: $[(\\text{Beginning ARR} + \\text{Expansion} - \\text{Contraction} - \\text{Churn}) / \\text{Beginning ARR}] \\times 100\\%$. Target $>110\\%$.
20
- 9. **Logo Churn Rate**: $[\\text{Lost Customers in Period} / \\text{Beginning Customers}] \\times 100\\%$.
21
- 10. **Revenue Churn Rate**: $[\\text{Lost ARR in Period} / \\text{Beginning ARR}] \\times 100\\%$.
22
- 11. **Expansion MRR %**: $[\\text{Expansion MRR} / \\text{Beginning MRR}] \\times 100\\%$.
23
- 12. **Cohort Retention Half-Life**: Number of months until a customer cohort loses 50% of initial revenue.
24
-
25
- ### Category C: Unit Economics & Acquisition Efficiency
26
- 13. **Customer Acquisition Cost (CAC)**: $\\frac{\\text{Fully Loaded Sales \\& Marketing Expense}}{\\text{Number of New Customers Acquired}}$.
27
- 14. **Customer Lifetime Value (LTV)**: $\\frac{\\text{ARPU} \\times \\text{Gross Margin \\%}}{\\text{Revenue Churn Rate}}$.
28
- 15. **LTV / CAC Ratio**: $\\text{LTV} / \\text{CAC}$. Healthy: $\\ge 3.0$; World-Class: $4.0 - 5.0$.
29
- 16. **CAC Payback Period (Months)**: $\\frac{\\text{CAC}}{\\text{ARPU} \\times \\text{Gross Margin \\%}}$. Target $\\le 12$ mos (SMB), $\\le 18$ mos (Enterprise).
30
- 17. **Blended CAC vs. Paid CAC**: Separates organic viral acquisition from paid acquisition channels.
31
- 18. **Lead-to-Win Conversion Rate**: $[\\text{Closed-Won Deals} / \\text{Qualified Opportunities}] \\times 100\\%$.
32
-
33
- ### Category D: Capital Efficiency & Cash Health
34
- 19. **Magic Number**: $[(\\text{Q}_n \\text{ ARR} - \\text{Q}_{n-1} \\text{ ARR}) \\times 4] / \\text{Q}_{n-1} \\text{ S\\&M Expense}$. Benchmark: $\\ge 0.75$.
35
- 20. **Rule of 40**: $\\text{YoY Growth Rate (\\%)} + \\text{Free Cash Flow Margin (\\%)}$. Target $\\ge 40\\%$.
36
- 21. **Burn Multiple**: $\\text{Net Burn} / \\text{Net New ARR}$. Top-tier: $<1.0$; Good: $1.0-1.5$; Inefficient: $>2.0$.
37
- 22. **Haspelmath SaaS Quick Ratio**: $\\frac{\\text{New ARR} + \\text{Expansion ARR}}{\\text{Churned ARR} + \\text{Contraction ARR}}$. Target $>4.0$.
38
- 23. **Runway (Months)**: $\\text{Current Cash Balance} / \\text{Monthly Net Burn}$.
39
- 24. **Gross Margin %**: $[(\\text{Revenue} - \\text{COGS}) / \\text{Revenue}] \\times 100\\%$. Target $>75\\%$ for pure SaaS.
40
-
41
- ### Category E: Customer Engagement & Expansion
42
- 25. **DAU / MAU (Stickiness Ratio)**: $\\text{Daily Active Users} / \\text{Monthly Active Users}$. Target $>20\\%$.
43
- 26. **Activation Rate**: Percentage of signups reaching "Aha! Moment" within first 7 days.
44
- 27. **Time to First Value (TTFV)**: Elapsed hours/days from contract sign to primary workflow execution.
45
- 28. **Feature Adoption Depth**: Percentage of monthly users utilizing $\\ge 3$ core platform features.
46
- 29. **NPS (Net Promoter Score)**: $\\% \\text{Promoters} - \\% \\text{Detractors}$. Target $>50$.
47
- 30. **CSAT (Customer Satisfaction Score)**: Average satisfaction score post-interaction.
48
-
49
- ### Category F: AI Product Economics
50
- 31. **Cost per Verified Outcome (CPVO)**: $\\frac{\\text{Total AI Ops Cost (Inference + Guardrails + Evals + Human Review)}}{\\text{Total Successful Verified Outcomes}}$.
51
- 32. **Human Handoff Rate**: Percentage of AI-assisted sessions requiring human agent intervention.
52
-
53
- ---
54
-
55
- ## 2. Van Westendorp Price Sensitivity Meter (PSM)
56
-
57
- The Van Westendorp PSM determines the price elasticity and optimal price range for new or repackaged products.
58
-
59
- ### The 4 Survey Questions
60
- 1. At what price would you consider the product to be **so inexpensive that you would question its quality**? (*Too Cheap*)
61
- 2. At what price would you consider the product to be a **bargain / great value**? (*Cheap / Good Value*)
62
- 3. At what price would you consider the product to be **expensive, but you would still consider buying it**? (*Expensive*)
63
- 4. At what price would you consider the product to be **so expensive that you would never consider it**? (*Too Expensive*)
64
-
65
- ### Key Intersections & Price Band
66
- ```
67
- Cumulative %
68
- 100% │ [Too Cheap] [Too Expensive]
69
- │ \ /
70
- │ \ Point of /
71
- │ \ Marginal / Point of Marginal
72
- │ \ Cheapness / Expensiveness
73
- │ \ (PMC) / (PME)
74
- │ \ IPP /
75
- │ \ X /
76
- │ \ / \ /
77
- │ \ / \ /
78
- │ \ / \/
79
- │ X OPP /
80
- │ / \ / \
81
- │ / \ / \
82
- │ / \ / \
83
- │ / X \
84
- │ / \
85
- 0% └───────────────────┴─────────┴─────────┴────────────────► Price ($)
86
- PMC OPP PME
87
- ```
88
-
89
- - **Point of Marginal Cheapness (PMC)**: Intersection of *Too Cheap* and *Expensive*. Lower bound of pricing.
90
- - **Point of Marginal Expensiveness (PME)**: Intersection of *Too Expensive* and *Cheap*. Upper bound of pricing.
91
- - **Optimum Price Point (OPP)**: Intersection of *Too Cheap* and *Too Expensive*. Minimal customer resistance.
92
- - **Indifference Price Point (IPP)**: Intersection of *Cheap* and *Expensive*. Median market price anchor.
93
-
94
- ---
95
-
96
- ## 3. AI Total Cost of Ownership (TCO) per Verified Outcome
97
-
98
- Raw token inference pricing from API providers represents only the visible tip of the AI cost iceberg.
99
-
100
- ### The 80/20 AI Cost Iceberg
101
- - **20% Model API Inference**: Direct tokens consumed by LLM input and output.
102
- - **80% Production Ops & Human Review**:
103
- - Embedding generation, vector database hosting, and hybrid retrieval.
104
- - Guardrail execution (input jailbreak detection, PII masking, schema validators).
105
- - Continuous Golden Eval benchmarking and automated regression testing.
106
- - Human-in-the-Loop (HITL) review escalations for low-confidence or high-stakes outputs.
107
- - Telemetry, logging, compliance auditing, and EU AI Act Article 50 provenance marking.
108
-
109
- ### Unit Cost Calculation Formula
110
- $$\\text{Cost per Outcome} = \\frac{(\\text{Token Tokens} \\times \\text{Rate}) + \\text{Guardrail Cost} + \\text{Infra Ops} + (\\text{Handoff Rate} \\times \\text{Human Review Hourly Rate})}{\\text{Successful Outcomes}}$$
1
+ # SaaS Unit Economics, 32 Financial Metrics & Van Westendorp Pricing
2
+
3
+ > Authoritative mathematical and operational reference guide for SaaS unit economics, capital efficiency, willingness-to-pay surveys, and AI Total Cost of Ownership.
4
+
5
+ ---
6
+
7
+ ## 1. Master Index: 32 SaaS Financial & Operational Metrics
8
+
9
+ ### Category A: Revenue & Growth Metrics
10
+ 1. **MRR (Monthly Recurring Revenue)**: Normalized monthly subscription revenue. $\\text{MRR} = \\sum \\text{Monthly Contract Values}$.
11
+ 2. **ARR (Annual Recurring Revenue)**: Annualized recurring contract value. $\\text{ARR} = \\text{MRR} \\times 12$.
12
+ 3. **Net New ARR**: $\\text{New ARR} + \\text{Expansion ARR} - \\text{Contraction ARR} - \\text{Churned ARR}$.
13
+ 4. **ARPU / ARPA (Average Revenue Per User/Account)**: $\\text{Total MRR} / \\text{Total Active Accounts}$.
14
+ 5. **YoY Revenue Growth Rate**: $[(\\text{ARR}_t - \\text{ARR}_{t-1}) / \\text{ARR}_{t-1}] \\times 100\\%$.
15
+ 6. **Compound Monthly Growth Rate (CMGR)**: $[(\\text{MRR}_t / \\text{MRR}_0)^{1/t} - 1] \\times 100\\%$.
16
+
17
+ ### Category B: Retention & Churn Dynamics
18
+ 7. **Gross Revenue Retention (GRR)**: $[(\\text{Beginning ARR} - \\text{Contraction} - \\text{Churn}) / \\text{Beginning ARR}] \\times 100\\%$. Max $100\\%$. Target $>85\\%$ SMB, $>90\\%$ Enterprise.
19
+ 8. **Net Revenue Retention (NRR)**: $[(\\text{Beginning ARR} + \\text{Expansion} - \\text{Contraction} - \\text{Churn}) / \\text{Beginning ARR}] \\times 100\\%$. Target $>110\\%$.
20
+ 9. **Logo Churn Rate**: $[\\text{Lost Customers in Period} / \\text{Beginning Customers}] \\times 100\\%$.
21
+ 10. **Revenue Churn Rate**: $[\\text{Lost ARR in Period} / \\text{Beginning ARR}] \\times 100\\%$.
22
+ 11. **Expansion MRR %**: $[\\text{Expansion MRR} / \\text{Beginning MRR}] \\times 100\\%$.
23
+ 12. **Cohort Retention Half-Life**: Number of months until a customer cohort loses 50% of initial revenue.
24
+
25
+ ### Category C: Unit Economics & Acquisition Efficiency
26
+ 13. **Customer Acquisition Cost (CAC)**: $\\frac{\\text{Fully Loaded Sales \\& Marketing Expense}}{\\text{Number of New Customers Acquired}}$.
27
+ 14. **Customer Lifetime Value (LTV)**: $\\frac{\\text{ARPU} \\times \\text{Gross Margin \\%}}{\\text{Revenue Churn Rate}}$.
28
+ 15. **LTV / CAC Ratio**: $\\text{LTV} / \\text{CAC}$. Healthy: $\\ge 3.0$; World-Class: $4.0 - 5.0$.
29
+ 16. **CAC Payback Period (Months)**: $\\frac{\\text{CAC}}{\\text{ARPU} \\times \\text{Gross Margin \\%}}$. Target $\\le 12$ mos (SMB), $\\le 18$ mos (Enterprise).
30
+ 17. **Blended CAC vs. Paid CAC**: Separates organic viral acquisition from paid acquisition channels.
31
+ 18. **Lead-to-Win Conversion Rate**: $[\\text{Closed-Won Deals} / \\text{Qualified Opportunities}] \\times 100\\%$.
32
+
33
+ ### Category D: Capital Efficiency & Cash Health
34
+ 19. **Magic Number**: $[(\\text{Q}_n \\text{ ARR} - \\text{Q}_{n-1} \\text{ ARR}) \\times 4] / \\text{Q}_{n-1} \\text{ S\\&M Expense}$. Benchmark: $\\ge 0.75$.
35
+ 20. **Rule of 40**: $\\text{YoY Growth Rate (\\%)} + \\text{Free Cash Flow Margin (\\%)}$. Target $\\ge 40\\%$.
36
+ 21. **Burn Multiple**: $\\text{Net Burn} / \\text{Net New ARR}$. Top-tier: $<1.0$; Good: $1.0-1.5$; Inefficient: $>2.0$.
37
+ 22. **Haspelmath SaaS Quick Ratio**: $\\frac{\\text{New ARR} + \\text{Expansion ARR}}{\\text{Churned ARR} + \\text{Contraction ARR}}$. Target $>4.0$.
38
+ 23. **Runway (Months)**: $\\text{Current Cash Balance} / \\text{Monthly Net Burn}$.
39
+ 24. **Gross Margin %**: $[(\\text{Revenue} - \\text{COGS}) / \\text{Revenue}] \\times 100\\%$. Target $>75\\%$ for pure SaaS.
40
+
41
+ ### Category E: Customer Engagement & Expansion
42
+ 25. **DAU / MAU (Stickiness Ratio)**: $\\text{Daily Active Users} / \\text{Monthly Active Users}$. Target $>20\\%$.
43
+ 26. **Activation Rate**: Percentage of signups reaching "Aha! Moment" within first 7 days.
44
+ 27. **Time to First Value (TTFV)**: Elapsed hours/days from contract sign to primary workflow execution.
45
+ 28. **Feature Adoption Depth**: Percentage of monthly users utilizing $\\ge 3$ core platform features.
46
+ 29. **NPS (Net Promoter Score)**: $\\% \\text{Promoters} - \\% \\text{Detractors}$. Target $>50$.
47
+ 30. **CSAT (Customer Satisfaction Score)**: Average satisfaction score post-interaction.
48
+
49
+ ### Category F: AI Product Economics
50
+ 31. **Cost per Verified Outcome (CPVO)**: $\\frac{\\text{Total AI Ops Cost (Inference + Guardrails + Evals + Human Review)}}{\\text{Total Successful Verified Outcomes}}$.
51
+ 32. **Human Handoff Rate**: Percentage of AI-assisted sessions requiring human agent intervention.
52
+
53
+ ---
54
+
55
+ ## 2. Van Westendorp Price Sensitivity Meter (PSM)
56
+
57
+ The Van Westendorp PSM determines the price elasticity and optimal price range for new or repackaged products.
58
+
59
+ ### The 4 Survey Questions
60
+ 1. At what price would you consider the product to be **so inexpensive that you would question its quality**? (*Too Cheap*)
61
+ 2. At what price would you consider the product to be a **bargain / great value**? (*Cheap / Good Value*)
62
+ 3. At what price would you consider the product to be **expensive, but you would still consider buying it**? (*Expensive*)
63
+ 4. At what price would you consider the product to be **so expensive that you would never consider it**? (*Too Expensive*)
64
+
65
+ ### Key Intersections & Price Band
66
+ ```
67
+ Cumulative %
68
+ 100% │ [Too Cheap] [Too Expensive]
69
+ │ \ /
70
+ │ \ Point of /
71
+ │ \ Marginal / Point of Marginal
72
+ │ \ Cheapness / Expensiveness
73
+ │ \ (PMC) / (PME)
74
+ │ \ IPP /
75
+ │ \ X /
76
+ │ \ / \ /
77
+ │ \ / \ /
78
+ │ \ / \/
79
+ │ X OPP /
80
+ │ / \ / \
81
+ │ / \ / \
82
+ │ / \ / \
83
+ │ / X \
84
+ │ / \
85
+ 0% └───────────────────┴─────────┴─────────┴────────────────► Price ($)
86
+ PMC OPP PME
87
+ ```
88
+
89
+ - **Point of Marginal Cheapness (PMC)**: Intersection of *Too Cheap* and *Expensive*. Lower bound of pricing.
90
+ - **Point of Marginal Expensiveness (PME)**: Intersection of *Too Expensive* and *Cheap*. Upper bound of pricing.
91
+ - **Optimum Price Point (OPP)**: Intersection of *Too Cheap* and *Too Expensive*. Minimal customer resistance.
92
+ - **Indifference Price Point (IPP)**: Intersection of *Cheap* and *Expensive*. Median market price anchor.
93
+
94
+ ---
95
+
96
+ ## 3. AI Total Cost of Ownership (TCO) per Verified Outcome
97
+
98
+ Raw token inference pricing from API providers represents only the visible tip of the AI cost iceberg.
99
+
100
+ ### The 80/20 AI Cost Iceberg
101
+ - **20% Model API Inference**: Direct tokens consumed by LLM input and output.
102
+ - **80% Production Ops & Human Review**:
103
+ - Embedding generation, vector database hosting, and hybrid retrieval.
104
+ - Guardrail execution (input jailbreak detection, PII masking, schema validators).
105
+ - Continuous Golden Eval benchmarking and automated regression testing.
106
+ - Human-in-the-Loop (HITL) review escalations for low-confidence or high-stakes outputs.
107
+ - Telemetry, logging, compliance auditing, and EU AI Act Article 50 provenance marking.
108
+
109
+ ### Unit Cost Calculation Formula
110
+ $$\\text{Cost per Outcome} = \\frac{(\\text{Token Tokens} \\times \\text{Rate}) + \\text{Guardrail Cost} + \\text{Infra Ops} + (\\text{Handoff Rate} \\times \\text{Human Review Hourly Rate})}{\\text{Successful Outcomes}}$$