@vesviet/agent-skills 5.6.0 → 5.7.0

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 (184) hide show
  1. package/INDEX.md +5 -5
  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 +12 -12
  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/README.md +1 -1
  10. package/core/contracts/schemas/api-contract-spec.json +191 -191
  11. package/core/contracts/schemas/data-pipeline-spec.json +1 -1
  12. package/core/contracts/schemas/design-tokens-spec.json +19 -0
  13. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  14. package/core/contracts/schemas/pull-request-spec.json +338 -338
  15. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  16. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  17. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  18. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  19. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  20. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  21. package/core/contracts/schemas/security-audit.json +143 -12
  22. package/core/contracts/schemas/system-design-spec.json +9 -1
  23. package/core/contracts/schemas/test-report.json +530 -530
  24. package/core/contracts/schemas/ux-flow-spec.json +66 -0
  25. package/core/roles/ai-systems-engineer.md +31 -18
  26. package/core/roles/aws-engineer.md +33 -29
  27. package/core/roles/backend-developer.md +6 -4
  28. package/core/roles/content-manager.md +7 -7
  29. package/core/roles/data-engineer.md +39 -36
  30. package/core/roles/qa-engineer.md +18 -18
  31. package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
  32. package/core/roles/references/aws-engineer-review-checklist.md +29 -16
  33. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  34. package/core/roles/references/content-manager-governance-standards.md +2 -2
  35. package/core/roles/references/content-manager-review-checklist.md +7 -1
  36. package/core/roles/references/data-engineer-review-checklist.md +11 -3
  37. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  38. package/core/roles/references/qa-engineer-review-checklist.md +10 -5
  39. package/core/roles/references/security-engineer-review-checklist.md +8 -0
  40. package/core/roles/references/solution-architect-review-checklist.md +6 -1
  41. package/core/roles/references/system-engineer-review-checklist.md +11 -0
  42. package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
  43. package/core/roles/security-engineer.md +35 -5
  44. package/core/roles/solution-architect.md +7 -7
  45. package/core/roles/system-engineer.md +470 -465
  46. package/core/roles/ui-ux-designer.md +17 -3
  47. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  48. package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
  49. package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
  50. package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
  51. package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
  52. package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
  53. package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
  54. package/core/skills/backend/add-event-handler/SKILL.md +1 -0
  55. package/core/skills/backend/add-service-client/SKILL.md +1 -0
  56. package/core/skills/backend/build-mcp-server/SKILL.md +101 -100
  57. package/core/skills/backend/implement-auth/SKILL.md +1 -0
  58. package/core/skills/backend/implement-structured-outputs/SKILL.md +95 -94
  59. package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
  60. package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
  61. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  62. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  63. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  64. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  65. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  66. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  67. package/core/skills/content/audit-content/SKILL.md +3 -2
  68. package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
  69. package/core/skills/content/design-content-strategy/SKILL.md +6 -5
  70. package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
  71. package/core/skills/content/optimize-seo/SKILL.md +6 -5
  72. package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
  73. package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
  74. package/core/skills/content/repurpose-content/SKILL.md +4 -3
  75. package/core/skills/content/write-article/SKILL.md +6 -5
  76. package/core/skills/content/write-copy/SKILL.md +3 -2
  77. package/core/skills/document/pptx/SKILL.md +1 -0
  78. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  79. package/core/skills/document/pptx/scripts/clean.py +0 -0
  80. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  81. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  82. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  83. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  84. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  85. package/core/skills/foundation/design-review/SKILL.md +11 -1
  86. package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
  87. package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
  88. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  89. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  90. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  91. package/core/skills/foundation/write-tests/SKILL.md +11 -10
  92. package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
  93. package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
  94. package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
  95. package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
  96. package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
  97. package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
  98. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  99. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  100. package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
  101. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  102. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  103. package/core/skills/platform/setup-gpu-finops/SKILL.md +111 -107
  104. package/core/skills/platform/setup-llm-gateway/SKILL.md +110 -108
  105. package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
  106. package/core/skills/platform/system-design/SKILL.md +7 -0
  107. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  108. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  109. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  110. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  111. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  112. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  113. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  114. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  115. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  116. package/core/skills/platform/web-perf/SKILL.md +151 -151
  117. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  118. package/core/skills/product/build-story-map/SKILL.md +104 -104
  119. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  120. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  121. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  122. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  123. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  124. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  125. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  126. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  127. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  128. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  129. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  130. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  131. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  132. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  133. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  134. package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
  135. package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
  136. package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
  137. package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
  138. package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
  139. package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
  140. package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
  141. package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
  142. package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
  143. package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
  144. package/core/skills/security-data/security-audit/SKILL.md +126 -119
  145. package/core/workflows/add-new-feature.md +212 -212
  146. package/core/workflows/agent-a2a-delegation.md +142 -142
  147. package/core/workflows/bug-fix.md +147 -147
  148. package/core/workflows/build-deploy.md +208 -208
  149. package/core/workflows/code-review.md +137 -137
  150. package/core/workflows/curriculum-delivery.md +1 -1
  151. package/core/workflows/dependency-upgrade.md +193 -193
  152. package/core/workflows/feature-delivery.md +149 -149
  153. package/core/workflows/hotfix-production.md +172 -172
  154. package/core/workflows/qa-validation.md +231 -231
  155. package/core/workflows/refactoring.md +154 -154
  156. package/core/workflows/revert-deployment.md +147 -147
  157. package/core/workflows/security-incident-response.md +191 -191
  158. package/core/workflows/seo-content-lifecycle.md +91 -91
  159. package/core/workflows/service-review-release.md +223 -223
  160. package/core/workflows/setup-new-service.md +214 -214
  161. package/core/workflows/tech-repo-review.md +245 -245
  162. package/core/workflows/troubleshooting.md +241 -241
  163. package/overlays/astro-cloudflare/README.md +93 -93
  164. package/overlays/data-analyst-stack/README.md +109 -109
  165. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  166. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  167. package/overlays/ecommerce-microservices/README.md +65 -65
  168. package/overlays/go-microservices/README.md +78 -78
  169. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  170. package/overlays/laravel-filament/README.md +90 -90
  171. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  172. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  173. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  174. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  175. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  176. package/overlays/r3f-stack/README.md +89 -89
  177. package/overlays/r3f-stack/rules/stub.md +43 -43
  178. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  179. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  180. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  181. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  182. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  183. package/package.json +2 -2
  184. 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}}$$