@v587d/capital-generation 2.7.7 → 2.7.9

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 (221) hide show
  1. package/CHANGELOG.md +124 -0
  2. package/README.md +7 -5
  3. package/THIRD_PARTY_NOTICES.md +24 -3
  4. package/capital-config/client.js +4 -4
  5. package/capital-config/package.json +1 -1
  6. package/capital-watchlist/client.js +3 -3
  7. package/capital-watchlist/client.src.cjs +4 -4
  8. package/capital-watchlist/package.json +1 -1
  9. package/chart-ui/package.json +1 -1
  10. package/lib/agents/selected-skills-provider.js +41 -8
  11. package/lib/chart/source-token.js +18 -3
  12. package/lib/data-collector/dataset-tools.js +4 -2
  13. package/lib/data-collector/describe.d.ts +4 -0
  14. package/lib/data-collector/describe.js +11 -1
  15. package/lib/index.d.ts +17 -0
  16. package/lib/index.js +50 -18
  17. package/lib/web-retriever/local-fetch.d.ts +1 -1
  18. package/lib/web-retriever/local-fetch.js +1 -1
  19. package/lib/web-retriever/wind-client.d.ts +1 -1
  20. package/lib/web-retriever/wind-client.js +1 -1
  21. package/package.json +3 -1
  22. package/preset/capital-generation/agent.patch.yml +1 -0
  23. package/preset/capital-generation/skills/capital-data-protocol/SKILL.md +4 -0
  24. package/preset/capital-generation/skills/capital-equity-research/SKILL.md +1 -1
  25. package/preset/capital-generation/skills/capital-orchestration/SKILL.md +5 -0
  26. package/preset/capital-generation/skills/capital-visualization-protocol/SKILL.md +7 -7
  27. package/preset/capital-generation/skills/capital-web-protocol/SKILL.md +10 -3
  28. package/selected-skills/README.md +3 -1
  29. package/selected-skills/catalog.js +183 -0
  30. package/selected-skills/financeskills/LICENSE +21 -0
  31. package/selected-skills/financeskills/UPSTREAM.md +202 -0
  32. package/selected-skills/financeskills/skills/ai-anomaly-detection/EXAMPLE.md +21 -0
  33. package/selected-skills/financeskills/skills/ai-anomaly-detection/SKILL.md +84 -0
  34. package/selected-skills/financeskills/skills/ai-anomaly-detection/references/feature-engineering.md +20 -0
  35. package/selected-skills/financeskills/skills/ai-anomaly-detection/references/ml-algorithms.md +28 -0
  36. package/selected-skills/financeskills/skills/aro-computation/EXAMPLE.md +21 -0
  37. package/selected-skills/financeskills/skills/aro-computation/SKILL.md +82 -0
  38. package/selected-skills/financeskills/skills/aro-computation/references/aro-standards.md +22 -0
  39. package/selected-skills/financeskills/skills/aro-computation/references/pv-math.md +27 -0
  40. package/selected-skills/financeskills/skills/audit-checklist/EXAMPLE.md +17 -0
  41. package/selected-skills/financeskills/skills/audit-checklist/SKILL.md +77 -0
  42. package/selected-skills/financeskills/skills/audit-checklist/references/internal-controls.md +36 -0
  43. package/selected-skills/financeskills/skills/audit-checklist/references/isa-standards.md +26 -0
  44. package/selected-skills/financeskills/skills/automated-reconciliation/EXAMPLE.md +21 -0
  45. package/selected-skills/financeskills/skills/automated-reconciliation/SKILL.md +87 -0
  46. package/selected-skills/financeskills/skills/automated-reconciliation/assets/reconciliation-statement-template.md +31 -0
  47. package/selected-skills/financeskills/skills/automated-reconciliation/references/fuzzy-logic.md +27 -0
  48. package/selected-skills/financeskills/skills/automated-reconciliation/references/rec-controls.md +28 -0
  49. package/selected-skills/financeskills/skills/banking-compliance/EXAMPLE.md +21 -0
  50. package/selected-skills/financeskills/skills/banking-compliance/SKILL.md +82 -0
  51. package/selected-skills/financeskills/skills/banking-compliance/references/basel-iii-framework.md +26 -0
  52. package/selected-skills/financeskills/skills/banking-compliance/references/risk-weights.md +32 -0
  53. package/selected-skills/financeskills/skills/budget-forecast/EXAMPLE.md +21 -0
  54. package/selected-skills/financeskills/skills/budget-forecast/SKILL.md +87 -0
  55. package/selected-skills/financeskills/skills/budget-forecast/references/forecasting-best-practices.md +26 -0
  56. package/selected-skills/financeskills/skills/budget-forecast/references/scenario-analysis.md +25 -0
  57. package/selected-skills/financeskills/skills/close-management/EXAMPLE.md +17 -0
  58. package/selected-skills/financeskills/skills/close-management/SKILL.md +85 -0
  59. package/selected-skills/financeskills/skills/close-management/references/close-task-library.md +32 -0
  60. package/selected-skills/financeskills/skills/company-valuation/EXAMPLE.md +21 -0
  61. package/selected-skills/financeskills/skills/company-valuation/SKILL.md +80 -0
  62. package/selected-skills/financeskills/skills/company-valuation/references/terminal-value-guide.md +33 -0
  63. package/selected-skills/financeskills/skills/corporate-consolidation/EXAMPLE.md +21 -0
  64. package/selected-skills/financeskills/skills/corporate-consolidation/SKILL.md +84 -0
  65. package/selected-skills/financeskills/skills/corporate-consolidation/references/consolidation-standard.md +28 -0
  66. package/selected-skills/financeskills/skills/corporate-consolidation/references/minority-interest.md +25 -0
  67. package/selected-skills/financeskills/skills/credit-analysis/EXAMPLE.md +21 -0
  68. package/selected-skills/financeskills/skills/credit-analysis/SKILL.md +84 -0
  69. package/selected-skills/financeskills/skills/credit-analysis/references/covenant-guide.md +26 -0
  70. package/selected-skills/financeskills/skills/crypto-accounting/EXAMPLE.md +21 -0
  71. package/selected-skills/financeskills/skills/crypto-accounting/SKILL.md +81 -0
  72. package/selected-skills/financeskills/skills/crypto-accounting/references/fasb-crypto.md +26 -0
  73. package/selected-skills/financeskills/skills/crypto-accounting/references/ifrs-crypto.md +25 -0
  74. package/selected-skills/financeskills/skills/cvp-breakeven/EXAMPLE.md +21 -0
  75. package/selected-skills/financeskills/skills/cvp-breakeven/SKILL.md +78 -0
  76. package/selected-skills/financeskills/skills/cvp-breakeven/references/cvp-patterns.md +28 -0
  77. package/selected-skills/financeskills/skills/debt-payoff/EXAMPLE.md +21 -0
  78. package/selected-skills/financeskills/skills/debt-payoff/SKILL.md +94 -0
  79. package/selected-skills/financeskills/skills/debt-payoff/references/debt-strategies.md +32 -0
  80. package/selected-skills/financeskills/skills/debt-payoff/references/interest-calculations.md +27 -0
  81. package/selected-skills/financeskills/skills/debt-restructuring/EXAMPLE.md +21 -0
  82. package/selected-skills/financeskills/skills/debt-restructuring/SKILL.md +79 -0
  83. package/selected-skills/financeskills/skills/debt-restructuring/references/creditor-priority.md +26 -0
  84. package/selected-skills/financeskills/skills/debt-restructuring/references/restructuring-types.md +24 -0
  85. package/selected-skills/financeskills/skills/deferred-tax/EXAMPLE.md +21 -0
  86. package/selected-skills/financeskills/skills/deferred-tax/SKILL.md +86 -0
  87. package/selected-skills/financeskills/skills/deferred-tax/references/td-catalogue.md +39 -0
  88. package/selected-skills/financeskills/skills/earned-value-mgmt/EXAMPLE.md +21 -0
  89. package/selected-skills/financeskills/skills/earned-value-mgmt/SKILL.md +79 -0
  90. package/selected-skills/financeskills/skills/earned-value-mgmt/references/forecasting-eac.md +27 -0
  91. package/selected-skills/financeskills/skills/earned-value-mgmt/references/pmi-evm.md +29 -0
  92. package/selected-skills/financeskills/skills/ecl-computation/EXAMPLE.md +21 -0
  93. package/selected-skills/financeskills/skills/ecl-computation/SKILL.md +85 -0
  94. package/selected-skills/financeskills/skills/ecl-computation/references/ifrs9-standard.md +27 -0
  95. package/selected-skills/financeskills/skills/ecl-computation/references/risk-modeling.md +26 -0
  96. package/selected-skills/financeskills/skills/esg-reporting/EXAMPLE.md +17 -0
  97. package/selected-skills/financeskills/skills/esg-reporting/SKILL.md +79 -0
  98. package/selected-skills/financeskills/skills/esg-reporting/references/ghg-protocol.md +22 -0
  99. package/selected-skills/financeskills/skills/esg-reporting/references/sasb-map.md +25 -0
  100. package/selected-skills/financeskills/skills/financial-analysis/EXAMPLE.md +21 -0
  101. package/selected-skills/financeskills/skills/financial-analysis/SKILL.md +108 -0
  102. package/selected-skills/financeskills/skills/financial-analysis/assets/analysis-memo-template.md +31 -0
  103. package/selected-skills/financeskills/skills/financial-analysis/references/accounting-standards.md +45 -0
  104. package/selected-skills/financeskills/skills/financial-analysis/references/ratio-definitions.md +14 -0
  105. package/selected-skills/financeskills/skills/fixed-asset-accounting/EXAMPLE.md +21 -0
  106. package/selected-skills/financeskills/skills/fixed-asset-accounting/SKILL.md +78 -0
  107. package/selected-skills/financeskills/skills/fixed-asset-accounting/references/useful-life-guide.md +30 -0
  108. package/selected-skills/financeskills/skills/forensic-accounting/EXAMPLE.md +21 -0
  109. package/selected-skills/financeskills/skills/forensic-accounting/SKILL.md +91 -0
  110. package/selected-skills/financeskills/skills/forensic-accounting/references/benfords-law.md +24 -0
  111. package/selected-skills/financeskills/skills/forensic-accounting/references/fraud-triangle.md +26 -0
  112. package/selected-skills/financeskills/skills/insurance-reserving/EXAMPLE.md +21 -0
  113. package/selected-skills/financeskills/skills/insurance-reserving/SKILL.md +82 -0
  114. package/selected-skills/financeskills/skills/insurance-reserving/references/actuarial-methods.md +33 -0
  115. package/selected-skills/financeskills/skills/insurance-reserving/references/insurance-metrics.md +26 -0
  116. package/selected-skills/financeskills/skills/intercompany-accounting/EXAMPLE.md +21 -0
  117. package/selected-skills/financeskills/skills/intercompany-accounting/SKILL.md +79 -0
  118. package/selected-skills/financeskills/skills/intercompany-accounting/references/elimination-entries.md +35 -0
  119. package/selected-skills/financeskills/skills/inventory-costing/EXAMPLE.md +21 -0
  120. package/selected-skills/financeskills/skills/inventory-costing/SKILL.md +80 -0
  121. package/selected-skills/financeskills/skills/inventory-costing/references/costing-examples.md +31 -0
  122. package/selected-skills/financeskills/skills/investment-analysis/EXAMPLE.md +21 -0
  123. package/selected-skills/financeskills/skills/investment-analysis/SKILL.md +82 -0
  124. package/selected-skills/financeskills/skills/investment-analysis/references/competitive-advantage.md +31 -0
  125. package/selected-skills/financeskills/skills/investment-analysis/references/valuation-guide.md +29 -0
  126. package/selected-skills/financeskills/skills/journal-entry/EXAMPLE.md +21 -0
  127. package/selected-skills/financeskills/skills/journal-entry/SKILL.md +94 -0
  128. package/selected-skills/financeskills/skills/journal-entry/assets/journal-entry-template.md +21 -0
  129. package/selected-skills/financeskills/skills/journal-entry/references/entry-patterns.md +51 -0
  130. package/selected-skills/financeskills/skills/lbo-modeling/EXAMPLE.md +21 -0
  131. package/selected-skills/financeskills/skills/lbo-modeling/SKILL.md +88 -0
  132. package/selected-skills/financeskills/skills/lbo-modeling/references/debt-structures.md +22 -0
  133. package/selected-skills/financeskills/skills/lbo-modeling/references/lbo-best-practices.md +27 -0
  134. package/selected-skills/financeskills/skills/lease-accounting/EXAMPLE.md +21 -0
  135. package/selected-skills/financeskills/skills/lease-accounting/SKILL.md +88 -0
  136. package/selected-skills/financeskills/skills/lease-accounting/assets/commencement-summary-template.md +28 -0
  137. package/selected-skills/financeskills/skills/lease-accounting/references/ibr-guide.md +26 -0
  138. package/selected-skills/financeskills/skills/net-worth-tracker/EXAMPLE.md +21 -0
  139. package/selected-skills/financeskills/skills/net-worth-tracker/SKILL.md +98 -0
  140. package/selected-skills/financeskills/skills/net-worth-tracker/references/asset-valuation.md +40 -0
  141. package/selected-skills/financeskills/skills/net-worth-tracker/references/net-worth-benchmarks.md +33 -0
  142. package/selected-skills/financeskills/skills/nlp-earnings-sentiment/EXAMPLE.md +17 -0
  143. package/selected-skills/financeskills/skills/nlp-earnings-sentiment/SKILL.md +77 -0
  144. package/selected-skills/financeskills/skills/nlp-earnings-sentiment/references/finbert-guide.md +26 -0
  145. package/selected-skills/financeskills/skills/nlp-earnings-sentiment/references/linguistic-finance.md +23 -0
  146. package/selected-skills/financeskills/skills/oil-gas-valuation/EXAMPLE.md +21 -0
  147. package/selected-skills/financeskills/skills/oil-gas-valuation/SKILL.md +86 -0
  148. package/selected-skills/financeskills/skills/oil-gas-valuation/references/sec-reporting.md +22 -0
  149. package/selected-skills/financeskills/skills/oil-gas-valuation/references/spe-standards.md +25 -0
  150. package/selected-skills/financeskills/skills/personal-budgeting/EXAMPLE.md +21 -0
  151. package/selected-skills/financeskills/skills/personal-budgeting/SKILL.md +100 -0
  152. package/selected-skills/financeskills/skills/personal-budgeting/references/budgeting-methods.md +40 -0
  153. package/selected-skills/financeskills/skills/personal-budgeting/references/spending-categories.md +40 -0
  154. package/selected-skills/financeskills/skills/predictive-burn-rate/EXAMPLE.md +21 -0
  155. package/selected-skills/financeskills/skills/predictive-burn-rate/SKILL.md +82 -0
  156. package/selected-skills/financeskills/skills/predictive-burn-rate/references/startup-metrics.md +27 -0
  157. package/selected-skills/financeskills/skills/predictive-burn-rate/references/time-series-forecasting.md +22 -0
  158. package/selected-skills/financeskills/skills/product-profitability/EXAMPLE.md +21 -0
  159. package/selected-skills/financeskills/skills/product-profitability/SKILL.md +83 -0
  160. package/selected-skills/financeskills/skills/product-profitability/references/allocation-logic.md +28 -0
  161. package/selected-skills/financeskills/skills/product-profitability/references/unit-economics.md +30 -0
  162. package/selected-skills/financeskills/skills/retirement-planning/EXAMPLE.md +21 -0
  163. package/selected-skills/financeskills/skills/retirement-planning/SKILL.md +98 -0
  164. package/selected-skills/financeskills/skills/retirement-planning/references/compound-growth.md +38 -0
  165. package/selected-skills/financeskills/skills/retirement-planning/references/retirement-fundamentals.md +29 -0
  166. package/selected-skills/financeskills/skills/revenue-recognition/EXAMPLE.md +21 -0
  167. package/selected-skills/financeskills/skills/revenue-recognition/SKILL.md +86 -0
  168. package/selected-skills/financeskills/skills/revenue-recognition/assets/allocation-workpaper-template.md +30 -0
  169. package/selected-skills/financeskills/skills/revenue-recognition/references/ifrs15-guide.md +28 -0
  170. package/selected-skills/financeskills/skills/revenue-recognition/references/saas-rev-rec.md +26 -0
  171. package/selected-skills/financeskills/skills/risk-assessment/EXAMPLE.md +21 -0
  172. package/selected-skills/financeskills/skills/risk-assessment/SKILL.md +83 -0
  173. package/selected-skills/financeskills/skills/risk-assessment/references/hedging-guide.md +24 -0
  174. package/selected-skills/financeskills/skills/risk-assessment/references/risk-metrics.md +24 -0
  175. package/selected-skills/financeskills/skills/sox-compliance/EXAMPLE.md +17 -0
  176. package/selected-skills/financeskills/skills/sox-compliance/SKILL.md +88 -0
  177. package/selected-skills/financeskills/skills/sox-compliance/references/sampling-methodology.md +27 -0
  178. package/selected-skills/financeskills/skills/startup-valuation/EXAMPLE.md +21 -0
  179. package/selected-skills/financeskills/skills/startup-valuation/SKILL.md +88 -0
  180. package/selected-skills/financeskills/skills/startup-valuation/references/berkus-method.md +25 -0
  181. package/selected-skills/financeskills/skills/startup-valuation/references/vc-method.md +23 -0
  182. package/selected-skills/financeskills/skills/statement-preparation/EXAMPLE.md +21 -0
  183. package/selected-skills/financeskills/skills/statement-preparation/SKILL.md +86 -0
  184. package/selected-skills/financeskills/skills/statement-preparation/references/accruals-deferrals.md +24 -0
  185. package/selected-skills/financeskills/skills/statement-preparation/references/cash-flow-method.md +32 -0
  186. package/selected-skills/financeskills/skills/tax-efficient-investing/EXAMPLE.md +21 -0
  187. package/selected-skills/financeskills/skills/tax-efficient-investing/SKILL.md +97 -0
  188. package/selected-skills/financeskills/skills/tax-efficient-investing/references/account-types.md +33 -0
  189. package/selected-skills/financeskills/skills/tax-efficient-investing/references/asset-location.md +36 -0
  190. package/selected-skills/financeskills/skills/tax-planning/EXAMPLE.md +21 -0
  191. package/selected-skills/financeskills/skills/tax-planning/SKILL.md +93 -0
  192. package/selected-skills/financeskills/skills/tax-planning/references/common-deductions.md +28 -0
  193. package/selected-skills/financeskills/skills/tax-planning/references/tax-code-lookup.md +25 -0
  194. package/selected-skills/financeskills/skills/three-statement-modeling/EXAMPLE.md +21 -0
  195. package/selected-skills/financeskills/skills/three-statement-modeling/SKILL.md +84 -0
  196. package/selected-skills/financeskills/skills/three-statement-modeling/references/model-checks.md +32 -0
  197. package/selected-skills/financeskills/skills/treasury-management/EXAMPLE.md +21 -0
  198. package/selected-skills/financeskills/skills/treasury-management/SKILL.md +83 -0
  199. package/selected-skills/financeskills/skills/treasury-management/references/fx-hedging.md +27 -0
  200. package/selected-skills/financeskills/skills/treasury-management/references/liquidity-metrics.md +24 -0
  201. package/selected-skills/financeskills/skills/variance-analysis/EXAMPLE.md +21 -0
  202. package/selected-skills/financeskills/skills/variance-analysis/SKILL.md +78 -0
  203. package/selected-skills/financeskills/skills/variance-analysis/references/overhead-logic.md +24 -0
  204. package/selected-skills/financeskills/skills/variance-analysis/references/variance-math.md +35 -0
  205. package/selected-skills/financeskills/skills/venture-debt/EXAMPLE.md +21 -0
  206. package/selected-skills/financeskills/skills/venture-debt/SKILL.md +84 -0
  207. package/selected-skills/financeskills/skills/venture-debt/references/saas-debt-metrics.md +26 -0
  208. package/selected-skills/financeskills/skills/venture-debt/references/venture-lending.md +23 -0
  209. package/selected-skills/financeskills/skills/wacc-computation/EXAMPLE.md +21 -0
  210. package/selected-skills/financeskills/skills/wacc-computation/SKILL.md +98 -0
  211. package/selected-skills/financeskills/skills/wacc-computation/assets/wacc-memo-template.md +40 -0
  212. package/selected-skills/financeskills/skills/wacc-computation/references/beta-math.md +24 -0
  213. package/selected-skills/financeskills/skills/wacc-computation/references/capm-basics.md +24 -0
  214. package/selected-skills/financeskills/skills/working-capital-analysis/EXAMPLE.md +21 -0
  215. package/selected-skills/financeskills/skills/working-capital-analysis/SKILL.md +83 -0
  216. package/selected-skills/financeskills/skills/working-capital-analysis/references/wc-metrics.md +30 -0
  217. package/selected-skills/quant-agent-skills/LICENSE +21 -0
  218. package/selected-skills/quant-agent-skills/UPSTREAM.md +111 -0
  219. package/selected-skills/quant-agent-skills/skills/cross-market-listing-choice/SKILL.md +105 -0
  220. package/selected-skills/quant-agent-skills/skills/cross-market-listing-choice/references/adr-hk-overlay.md +45 -0
  221. package/selected-skills/quant-agent-skills/skills/cross-market-listing-choice/references/ah-overlay.md +44 -0
@@ -0,0 +1,40 @@
1
+ # Spending Categories Guide
2
+
3
+ Standard taxonomy for classifying personal expenses. Use consistently across months for valid trend analysis.
4
+
5
+ ## Needs (Essential)
6
+ | Category | Examples |
7
+ |---|---|
8
+ | Housing | Rent, mortgage, property tax, HOA |
9
+ | Utilities | Electricity, gas, water, internet, phone |
10
+ | Groceries | Supermarket food and household basics |
11
+ | Transport | Fuel, public transit, car insurance, maintenance |
12
+ | Insurance | Health, life, renters/home |
13
+ | Minimum debt payments | Credit card minimums, student loan minimums |
14
+ | Childcare / education | School fees, daycare |
15
+
16
+ ## Wants (Discretionary)
17
+ | Category | Examples |
18
+ |---|---|
19
+ | Dining & takeaway | Restaurants, cafes, food delivery |
20
+ | Entertainment | Streaming, cinema, concerts, sports |
21
+ | Subscriptions | Software, magazines, gym (if non-essential) |
22
+ | Clothing | Non-essential apparel and accessories |
23
+ | Hobbies | Sports equipment, crafts, gaming |
24
+ | Travel | Holidays, weekend trips |
25
+ | Personal care | Haircuts, cosmetics above basics |
26
+
27
+ ## Savings & Debt Payoff
28
+ | Category | Examples |
29
+ |---|---|
30
+ | Emergency fund | High-yield savings account contributions |
31
+ | Retirement | 401(k), IRA, pension contributions |
32
+ | Investments | Brokerage, ISA, index funds |
33
+ | Extra debt repayment | Above-minimum payments on loans/cards |
34
+ | Sinking funds | Car replacement, home repairs, annual expenses |
35
+
36
+ ## Classification Tips
37
+ - **Internet**: Needs if required for work/study; Wants if purely recreational.
38
+ - **Gym membership**: Needs if medically required; Wants otherwise.
39
+ - **Life insurance**: Always a Need.
40
+ - **Streaming services**: Wants (one service could be debated as Need if it replaces more expensive entertainment).
@@ -0,0 +1,21 @@
1
+ # Worked Example - predictive-burn-rate
2
+
3
+ ## Ask
4
+
5
+ > Our burn rate has been $100k, $120k, and $150k over the last 3 months. We have $1M in the bank. When do we run out of money?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should identify the accelerating burn trend. Should note that a simple average is dangerous due to the acceleration. Should calculate the 'Zero Date' based on the trend (approx. 5-6 months). Should suggest using Prophet for a more detailed seasonal forecast. Should provide a Runway Forecast Report.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/monthly_cash.csv`:
14
+
15
+ > Cash on hand is $7,500,000. Using the attached six months of actuals (evals/files/monthly_cash.csv), compute monthly net burn, the trailing 3-month average, simple runway in months, and comment on the burn trend.
16
+
17
+ Expected: Net burn rising from $510,000 to $584,000; trailing 3-month avg $569,667; simple runway 13.2 months; trend-adjusted runway is shorter - flag it.
18
+
19
+ ## Compute, don't estimate
20
+
21
+ All figures above come from [`scripts/calculate.py`](./scripts/calculate.py) - import its functions rather than doing arithmetic in prose.
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: predictive-burn-rate
3
+ description: When the user wants to predict future cash consumption and "Runway" using time-series AI models. Also use when the user mentions "startup runway," "predicting cash out," "future burn rate," "Prophet for finance," "LSTM cash forecasting," or "when will we run out of money."
4
+ metadata:
5
+ version: 1.0.0
6
+ ---
7
+
8
+ # Predictive Burn Rate
9
+
10
+ You are a Startup Data Scientist. Your goal is to use time-series forecasting to predict exactly when a company will require more capital, accounting for seasonality and growth trends.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Cash Flow Data**
15
+ - Do we have monthly net cash flow (Net Burn) for at least 12-24 months?
16
+ - What are the major "lumpy" expenses? (e.g., Annual software renewals, bi-annual bonuses).
17
+
18
+ 2. **Growth Assumptions**
19
+ - Are headcount and marketing spend scaling linearly or exponentially?
20
+ - Is there a "Target Zero" date for profitability?
21
+
22
+ ---
23
+
24
+ ## Predictive Framework
25
+
26
+ ### Technical Limitation
27
+ Linear extrapolations (Actuals / Average Burn) are often wrong because they ignore seasonality. This skill uses **Prophet** or **ARIMA** logic for more accurate modeling.
28
+
29
+ ### Priority Order
30
+ 1. **Decomposition** (Separating Trend, Seasonality, and Noise).
31
+ 2. **Growth Modeling** (Adjusting the burn rate based on headcount growth).
32
+ 3. **Runway Calculation** (Predicting the month the cash balance hits zero).
33
+ 4. **Buffer Analysis** (Identifying the "Safety Zone" for fundraising).
34
+
35
+ ---
36
+
37
+ ## Technical Predictive Steps
38
+
39
+ ### 1. Time-Series Decomposition
40
+ - Identify if the burn rate is increasing due to a long-term trend or a one-time seasonal spike (e.g., Q4 marketing push).
41
+
42
+ ### 2. Facebook Prophet Integration
43
+ - Use the `Prophet` library to handle missing data and outliers while modeling complex seasonality (holiday effects).
44
+
45
+ ### 3. Scenario Probability
46
+ - Instead of one date, provide a probability distribution: "70% chance of cash out in Oct, 20% in Nov, 10% in Dec."
47
+
48
+ ---
49
+
50
+ ## Output Format
51
+
52
+ ### Runway Forecast Report
53
+
54
+ **The Prediction**
55
+ - **Estimated Cash Out Date**: The "Zero Date."
56
+ - **Current Runway**: Expressed in months.
57
+ - **Trend Rating**: (e.g., "Accelerating Burn," "Stabilizing").
58
+
59
+ **AI Visuals (Description)**
60
+ - Confidence intervals for the next 12 months.
61
+ - Breakdown of burn drivers (fixed vs. variable).
62
+
63
+ **Actionable Insight**
64
+ - "Fundraising Trigger": The date you must start your next round to avoid a cash crunch.
65
+
66
+ ---
67
+
68
+ ## Scripts
69
+ - [calculate.py](./scripts/calculate.py): Runway, growth-adjusted burn, and collections curve functions. Run with `python3 scripts/calculate.py` to self-test; import the functions for actual computations.
70
+
71
+ ---
72
+
73
+ ## References
74
+ - [Time Series Basics](./references/time-series-forecasting.md): ARIMA vs. Prophet.
75
+ - [Startup Runway Metrics](./references/startup-metrics.md): How VCs look at burn.
76
+
77
+ ---
78
+
79
+ ## Related Skills
80
+ - **budget-forecast**: For the manual planning of the burn rate.
81
+ - **treasury-management**: For managing the cash reserves predicted here.
82
+ - **investment-analysis**: For valuing the startup based on its burn and growth.
@@ -0,0 +1,27 @@
1
+ # Startup Financial Metrics
2
+
3
+ ## Burn and Runway
4
+ - **Gross burn**: total monthly cash outflows.
5
+ - **Net burn**: gross burn − cash collections. The runway number.
6
+ - **Runway**: months until cash < safety floor. Investors expect 18–24 months post-raise.
7
+ - **Default alive test** (Paul Graham): at current growth and burn trajectory, does the company reach profitability before cash-out?
8
+
9
+ ## Efficiency Metrics
10
+ - **Burn multiple** = Net burn / Net new ARR. < 1 excellent, 1–1.5 good, > 2 concerning (Sacks framework).
11
+ - **CAC payback** = CAC / (new ARR per customer × gross margin), in months. < 12 strong, < 18 acceptable B2B.
12
+ - **LTV:CAC** ≥ 3 healthy (but meaningless pre-churn-data).
13
+ - **Magic number** = Net new ARR × 4 / prior-quarter S&M spend. > 0.75 → keep investing in sales.
14
+ - **Rule of 40**: revenue growth % + FCF margin % ≥ 40 (later stage).
15
+
16
+ ## Revenue Quality
17
+ - **NRR (net revenue retention)**: > 110% B2B good, > 120% excellent.
18
+ - **Gross margin**: SaaS benchmark 70–85%; services-heavy mix drags it.
19
+ - **ARR vs. recognized revenue vs. billings**: never conflate (see SaaS rev rec).
20
+
21
+ ## Fundraise Planning Inputs
22
+ - Months-to-milestone vs. runway: raise must cover milestone + 6-month buffer.
23
+ - Dilution math: target 15–25% per priced round.
24
+ - Bridge triggers: < 9 months runway without a started process = act now.
25
+
26
+ ## Reporting Cadence
27
+ Monthly investor update: cash, net burn, runway, ARR, NRR, headcount vs. plan — consistency beats polish.
@@ -0,0 +1,22 @@
1
+ # Time-Series Forecasting for Cash Burn
2
+
3
+ ## Method Ladder (use the simplest that fits)
4
+ 1. **Trailing average**: 3-month average net burn — baseline every model must beat.
5
+ 2. **Linear trend / Holt's exponential smoothing**: captures burn growth; Holt-Winters if seasonality (annual insurance, 13th-month payroll).
6
+ 3. **Driver-based decomposition** (preferred for runway): forecast components separately —
7
+ `Net burn = Payroll (headcount plan × loaded cost) + Contracted opex (schedule) + Variable opex (% of activity) − Collections (bookings × collection curve)`
8
+ 4. **ARIMA/SARIMA**: only with ≥ 24 months of clean history; rarely better than driver-based for startups.
9
+ 5. **Monte Carlo**: simulate collections timing, hiring slippage, FX; report runway as a distribution (P10/P50/P90), not a point.
10
+
11
+ ## Collections Curve
12
+ Model receipts as a lagged distribution of invoicing: e.g., 20% month 0, 50% month 1, 25% month 2, 5% bad debt — fit from AR aging history. The curve, not revenue, drives cash.
13
+
14
+ ## Runway Mathematics
15
+ - Simple: `Runway = Cash / trailing 3-mo net burn`.
16
+ - Honest: project monthly cash to the month balance < safety floor (≥ 1 payroll cycle + statutory obligations), including known one-offs (tax payments, annual renewals, severance).
17
+ - Growing burn: if burn grows g monthly, runway solves `Cash = Σ burn×(1+g)^t` — materially shorter than the simple division.
18
+
19
+ ## Discipline
20
+ - Reforecast monthly; track forecast-vs-actual error (MAPE ≤ 10% is good for 3-month horizon).
21
+ - Separate committed vs. discretionary spend so scenario levers are real.
22
+ - Never net financing inflows into operating burn — report both.
@@ -0,0 +1,21 @@
1
+ # Worked Example - product-profitability
2
+
3
+ ## Ask
4
+
5
+ > Our 'Premium' service has 80% gross margins but only 5% of our sales. Our 'Standard' service has 20% margins but 95% of sales. Should we shut down 'Standard'?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should perform a Contribution Margin analysis. Should warn against shutting down 'Standard' if it covers the majority of fixed overhead. Should discuss the impact of fixed cost re-allocation. Should provide a Product Profitability Dashboard.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/product_lines.csv`:
14
+
15
+ > Build a product P&L from the attached file (evals/files/product_lines.csv): allocate the $900,000 shared cost pool by revenue, compute contribution margin and fully-loaded profit per product, and identify any product that is contribution-positive but fully-loaded negative.
16
+
17
+ Expected: Alpha profit $1,860,000; Beta $630,000; Gamma $60,000 - Gamma is contribution-positive ($150,000) but fully-loaded negative.
18
+
19
+ ## Compute, don't estimate
20
+
21
+ All figures above come from [`scripts/calculate.py`](./scripts/calculate.py) - import its functions rather than doing arithmetic in prose.
@@ -0,0 +1,83 @@
1
+ ---
2
+ name: product-profitability
3
+ description: When the user wants to break down revenue and costs by specific products, services, or segments. Also use when the user mentions "unit economics," "product-line P&L," "contribution margin," "SKU profitability," "segment reporting," or "cost allocation."
4
+ metadata:
5
+ version: 1.0.0
6
+ ---
7
+
8
+ # Product & Service Profitability Analysis
9
+
10
+ You are a Management Accountant. Your goal is to identify which products or services are driving the most value and which are eroding margins.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Segment Definition**
15
+ - Are we analyzing by SKU, Product Category, or Service Line?
16
+ - What is the time period?
17
+
18
+ 2. **Data Availability**
19
+ - Can we track revenue directly to the segment?
20
+ - Can we track variable costs (COGS) directly?
21
+ - What is the total pool of indirect/fixed costs?
22
+
23
+ ---
24
+
25
+ ## Profitability Framework
26
+
27
+ ### Priority Order
28
+ 1. **Direct Revenue Attribution** (Matching sales to products).
29
+ 2. **Variable Cost Assignment** (Calculating the Contribution Margin).
30
+ 3. **Fixed Cost Allocation** (Determining the "Fully Burdened" margin).
31
+ 4. **Variance Analysis** (Comparing actual product performance to budget).
32
+ 5. **Strategic Recommendations** (e.g., "Kill product X," "Scale product Y").
33
+
34
+ ---
35
+
36
+ ## Technical Analysis Steps
37
+
38
+ ### 1. Contribution Margin Analysis
39
+ `CM = Revenue - Variable Costs`
40
+ - This shows how much each product contributes to covering fixed overhead.
41
+
42
+ ### 2. Allocation Methodologies
43
+ - **Direct**: Costs mapped 1:1.
44
+ - **Activity-Based (ABC)**: Costs allocated based on drivers (e.g., machine hours, customer service tickets).
45
+ - **Step-Down**: Allocating support department costs to production departments.
46
+
47
+ ### 3. Mix Variance
48
+ - Analyze if a shift in the *proportion* of products sold (Product Mix) is impacting the overall gross margin.
49
+
50
+ ---
51
+
52
+ ## Output Format
53
+
54
+ ### Product Profitability Dashboard
55
+
56
+ **The Stack Rank**
57
+ - Table of products ranked by Gross Margin and Contribution Margin %.
58
+
59
+ **Segment P&L**
60
+ - Columns for each product line showing Revenue, COGS, Direct OpEx, and Net Contribution.
61
+
62
+ **Optimization Plan**
63
+ - Identified "Laggards" (low margin/low volume).
64
+ - Identified "Stars" (high margin/high volume).
65
+ - Pricing or cost-cutting recommendations.
66
+
67
+ ---
68
+
69
+ ## Scripts
70
+ - [calculate.py](./scripts/calculate.py): Deterministic functions for this skill's core computations. Run `python3 scripts/calculate.py` to self-test; import the functions instead of doing mental math.
71
+
72
+ ---
73
+
74
+ ## References
75
+ - [Cost Allocation Methods](./references/allocation-logic.md): ABC vs. Traditional.
76
+ - [Unit Economics Guide](./references/unit-economics.md): CAC, LTV, and Payback.
77
+
78
+ ---
79
+
80
+ ## Related Skills
81
+ - **financial-analysis**: For the macro-level margin analysis.
82
+ - **budget-forecast**: For setting product-level targets.
83
+ - **statement-preparation**: For ensuring segment reporting matches the consolidated P&L.
@@ -0,0 +1,28 @@
1
+ # Cost Allocation Logic
2
+
3
+ ## Allocation Hierarchy (best to worst)
4
+ 1. **Direct tracing**: costs unambiguously caused by the product (materials, dedicated labor, product-specific licenses) — assign, don't allocate.
5
+ 2. **Causal drivers (ABC)**: allocate pooled costs on the activity that drives them.
6
+ 3. **Ability-to-bear (revenue %)**: last resort — it distorts decisions because high-revenue products subsidize the rest.
7
+
8
+ ## Activity-Based Costing in Five Steps
9
+ 1. Identify activities (order processing, machine setup, QA inspection, customer support, deployment).
10
+ 2. Pool costs per activity from the GL (salaries, systems, facilities split by time/space study).
11
+ 3. Pick a driver per pool: setups → # of setups; support → tickets; warehousing → pallet-days; payment processing → transaction count.
12
+ 4. Rate = pool cost / driver volume.
13
+ 5. Charge products: usage × rate.
14
+
15
+ ## Driver Selection Tests
16
+ - Causality: does more of the driver actually cause more cost?
17
+ - Measurability: is driver data captured reliably without manual heroics?
18
+ - Materiality: pools < 5% of overhead can use a simple driver; don't gold-plate.
19
+
20
+ ## What NOT to Allocate for Decisions
21
+ - Sunk costs and corporate overhead that won't change with the decision (CEO salary doesn't vanish if you kill SKU #47).
22
+ - Use a contribution hierarchy: revenue → variable costs → **CM1** → directly attributable fixed → **CM2 (product profit)** → allocated shared costs → **CM3 (fully loaded, for pricing floors only)**.
23
+ - Kill/keep decisions: CM2 + avoidable cost test. Pricing floors: CM3. Never reverse them.
24
+
25
+ ## Common Distortions
26
+ - Volume-based allocation of batch costs (penalizes high-volume products, hides the cost of complexity).
27
+ - Peanut-butter IT/facilities spreading on headcount when usage is wildly uneven.
28
+ - Ignoring cost-to-serve variation by CHANNEL and CUSTOMER, not just product.
@@ -0,0 +1,30 @@
1
+ # Unit Economics
2
+
3
+ ## Define the Unit First
4
+ Per product sold, per order, per customer, per active user, per ride/delivery, per bbl, per policy. Mixed units = meaningless math. State the unit on every analysis.
5
+
6
+ ## The Core Ledger (per unit)
7
+ ```
8
+ Average revenue per unit
9
+ − Variable COGS (materials, hosting, payment fees 1.5–3%, packaging)
10
+ − Variable fulfillment (shipping, delivery, support cost per order)
11
+ = Contribution margin 1 (CM1)
12
+ − Direct marketing cost per acquired unit (CAC where unit = customer)
13
+ = CM2 / fully variable profit
14
+ ```
15
+ CM1 must be positive at maturity or growth multiplies losses. CM2 payback determines cash needs.
16
+
17
+ ## Customer-Level Economics
18
+ - `LTV = CM1 per period × expected periods` (or `CM1 × 1/churn` for constant churn; discount if horizon > 2 yrs).
19
+ - LTV:CAC ≥ 3 healthy; CAC payback < 12–18 months B2B, < 6–12 B2C.
20
+ - Cohort discipline: compute by acquisition cohort and channel — blended numbers hide dying channels.
21
+
22
+ ## Margin Bridge Habit
23
+ When unit margin moves, decompose: price effect + mix effect + input cost effect + efficiency effect. (Pairs with variance-analysis skill.)
24
+
25
+ ## Traps
26
+ 1. Counting gross revenue when you're an agent (take-rate businesses: use net revenue).
27
+ 2. Excluding payment fees, refunds, fraud, and free-tier costs from "variable".
28
+ 3. LTV on projected retention with < 12 months of data.
29
+ 4. Improving averages that mask a barbell (great cohort + terrible cohort): always plot distributions.
30
+ 5. Fixed-cost amortization smuggled into unit costs to make a price look justified.
@@ -0,0 +1,21 @@
1
+ # Worked Example - retirement-planning
2
+
3
+ ## Ask
4
+
5
+ > I'm 35 years old, have $45,000 saved for retirement, and contribute $500/month. I want to retire at 65 with $1.5M. My expected return is 7% per year. Am I on track? If not, how much more do I need to contribute?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should project the future value of $45,000 + $500/month at 7% over 30 years. Should compare the projection to the $1.5M target. Should calculate the additional monthly contribution required to reach $1.5M. Should mention the 4% rule and the annual withdrawal $1.5M would support.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture `evals/files/retirement_inputs.csv`:
14
+
15
+ > From the attached inputs (evals/files/retirement_inputs.csv), project the retirement nest egg, determine whether the target is met, and calculate the required monthly contribution to close any gap.
16
+
17
+ Expected: Projected nest egg $975,228; gap $524,772; need to contribute approximately $930/month to hit $1.5M target; 4% withdrawal from $1.5M supports $60,000/year.
18
+
19
+ ## Compute, don't estimate
20
+
21
+ All figures above come from [`scripts/calculate.py`](./scripts/calculate.py) — import its functions rather than doing arithmetic in prose.
@@ -0,0 +1,98 @@
1
+ ---
2
+ name: retirement-planning
3
+ description: When the user wants to plan for retirement, calculate how much to save, project a retirement nest egg, determine a safe withdrawal amount, or figure out whether they are on track. Also use when the user mentions "401k," "pension," "retirement age," "how much do I need to retire," "compound interest," "FIRE," or "retire early."
4
+ metadata:
5
+ version: 1.0.0
6
+ ---
7
+
8
+ # Retirement Planning
9
+
10
+ You are a Retirement Planning Specialist. Your goal is to help the user understand exactly where they stand, how much they need, and what specific actions will close any gap.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Current Position**
15
+ - Current retirement savings balance.
16
+ - Monthly contribution amount and any employer match.
17
+ - Current age and target retirement age.
18
+
19
+ 2. **Target**
20
+ - Desired annual retirement income (in today's dollars).
21
+ - Expected Social Security / state pension / annuity income.
22
+ - Expected retirement duration (target age to life expectancy).
23
+
24
+ 3. **Assumptions**
25
+ - Expected annual investment return (pre-retirement).
26
+ - Expected annual return in retirement (typically more conservative).
27
+ - Inflation rate assumption (default 2.5%).
28
+
29
+ ---
30
+
31
+ ## Planning Framework
32
+
33
+ ### Priority Order
34
+ 1. **Nest Egg Target** — calculate the lump sum needed at retirement.
35
+ 2. **Current Trajectory** — project current savings + contributions forward.
36
+ 3. **Gap Analysis** — identify the funding shortfall.
37
+ 4. **Contribution Strategy** — determine the monthly contribution to close the gap.
38
+ 5. **Withdrawal Planning** — model sustainable withdrawals in retirement.
39
+
40
+ ### The 4% Rule (Safe Withdrawal Rate)
41
+ A portfolio should sustain 30 years of withdrawals if the initial withdrawal rate is 4% or less.
42
+ `Nest Egg Target = Annual Retirement Spending / 0.04`
43
+
44
+ Example: $60,000/year needed → nest egg of $1,500,000.
45
+
46
+ ---
47
+
48
+ ## Technical Steps
49
+
50
+ ### 1. Future Value of Current Savings
51
+ `FV = P × (1 + r/12)^(n×12) + PMT × [((1 + r/12)^(n×12) − 1) / (r/12)]`
52
+ where P = current balance, PMT = monthly contribution, r = annual return, n = years to retirement.
53
+
54
+ ### 2. Months to Reach Target
55
+ Iterate monthly until accumulated balance ≥ nest egg target.
56
+
57
+ ### 3. Required Monthly Contribution
58
+ Solve for PMT given a known FV target, P, r, and n.
59
+
60
+ ### 4. Inflation Adjustment
61
+ Express all targets in real (inflation-adjusted) terms or gross up the nominal target.
62
+
63
+ ---
64
+
65
+ ## Output Format
66
+
67
+ **Retirement Snapshot**
68
+ - Target nest egg, projected nest egg, gap.
69
+ - Years remaining, required monthly contribution to close gap.
70
+
71
+ **Projection Chart Data**
72
+ - Year-by-year balance from today to retirement.
73
+
74
+ **Withdrawal Plan**
75
+ - Annual and monthly safe withdrawal amount.
76
+ - Portfolio depletion year under different return scenarios.
77
+
78
+ **Sensitivity Table**
79
+ - Impact of retiring 2 years later / earlier.
80
+ - Impact of +1% higher or lower return assumption.
81
+
82
+ ---
83
+
84
+ ## Scripts
85
+ - [calculate.py](./scripts/calculate.py): Deterministic functions for this skill's core computations. Run `python3 scripts/calculate.py` to self-test; import the functions instead of doing mental math.
86
+
87
+ ---
88
+
89
+ ## References
90
+ - [Retirement Planning Fundamentals](./references/retirement-fundamentals.md): Nest egg targets, safe withdrawal rate research, and contribution limits.
91
+ - [Compound Growth Guide](./references/compound-growth.md): Time-value-of-money concepts and the power of early contributions.
92
+
93
+ ---
94
+
95
+ ## Related Skills
96
+ - **personal-budgeting**: Identify how much of the monthly budget can be allocated to retirement contributions.
97
+ - **tax-efficient-investing**: Maximise after-tax growth by choosing the right account type (traditional vs. Roth vs. taxable).
98
+ - **investment-analysis**: Evaluate the asset allocation strategy inside the retirement portfolio.
@@ -0,0 +1,38 @@
1
+ # Compound Growth Guide
2
+
3
+ ## The Time Value of Money
4
+
5
+ A dollar today is worth more than a dollar in the future because it can be invested and earn a return.
6
+
7
+ **Future Value formula (lump sum):**
8
+ `FV = PV × (1 + r)^n`
9
+
10
+ **Future Value with regular contributions (monthly):**
11
+ `FV = PV × (1 + r/12)^(12n) + PMT × [((1 + r/12)^(12n) − 1) / (r/12)]`
12
+
13
+ where `r` = annual rate, `n` = years, `PMT` = monthly contribution.
14
+
15
+ ## Why Starting Early Matters
16
+
17
+ | Start Age | Monthly Contribution | Balance at 65 (7%) |
18
+ |---|---|---|
19
+ | 25 | $300 | $906,000 |
20
+ | 35 | $300 | $436,000 |
21
+ | 45 | $300 | $189,000 |
22
+
23
+ Starting at 25 vs. 35 yields more than double the outcome with the same contribution.
24
+
25
+ ## The Cost of Stopping Contributions
26
+
27
+ Stopping contributions for just 5 years in your 30s costs more in lost growth than the contributions themselves, because early dollars have the longest compounding runway.
28
+
29
+ ## Inflation Adjustment
30
+
31
+ To express a future sum in today's purchasing power:
32
+ `Real FV = Nominal FV / (1 + inflation_rate)^n`
33
+
34
+ At 2.5% inflation, $1M in 30 years has the purchasing power of ~$477,000 today.
35
+
36
+ ## Sources
37
+ - Bogle, J. C. (2017). *The Little Book of Common Sense Investing*. Wiley.
38
+ - Bernstein, W. (2010). *The Investor's Manifesto*. Wiley.
@@ -0,0 +1,29 @@
1
+ # Retirement Planning Fundamentals
2
+
3
+ ## How Much Do You Need? — The Nest Egg Target
4
+
5
+ The most widely cited rule is the **4% Safe Withdrawal Rate** (Bengen, 1994):
6
+ `Nest Egg = Desired Annual Income / 0.04`
7
+
8
+ A $1.5M portfolio supports $60,000/year for at least 30 years with high historical probability (>95% success across US market history).
9
+
10
+ **Conservative alternative**: Use 3.5% for a 40+ year horizon (FIRE movement standard).
11
+
12
+ ## Contribution Limits (US, 2024)
13
+ | Account | Limit | Catch-Up (50+) |
14
+ |---|---|---|
15
+ | 401(k) / 403(b) | $23,000 | +$7,500 |
16
+ | IRA (Traditional or Roth) | $7,000 | +$1,000 |
17
+ | HSA (individual) | $4,150 | +$1,000 |
18
+ | HSA (family) | $8,300 | +$1,000 |
19
+
20
+ ## Employer Match — Never Leave It on the Table
21
+ An employer 4% match on a $80,000 salary = $3,200 free per year. This is a 100% instant return; always contribute at least enough to capture the full match.
22
+
23
+ ## Rule of 72
24
+ A quick mental check: `Years to Double = 72 / Annual Return %`
25
+ At 7% return, money doubles every ~10.3 years.
26
+
27
+ ## Sources
28
+ - Bengen, W. P. (1994). Determining withdrawal rates using historical data. *Journal of Financial Planning*.
29
+ - Pfau, W. (2018). *How Much Can I Spend in Retirement?* Retirement Researcher Media.
@@ -0,0 +1,21 @@
1
+ # Worked Example - revenue-recognition
2
+
3
+ ## Ask
4
+
5
+ > We sold a $12k annual subscription today. The customer paid upfront. How much revenue do we recognize this month?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should identify this as a multi-period performance obligation. Should calculate the monthly revenue ($1k). Should explain the deferral of the remaining $11k as Unearned Revenue. Should provide a Revenue Recognition Memo structure.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/contracts.csv`:
14
+
15
+ > Contract C-101 in the attached file (evals/files/contracts.csv) was signed on 1 January for a fixed price of $100,000. Support and implementation are both delivered evenly over 12 months. Allocate the transaction price to each performance obligation using relative SSP per IFRS 15 / ASC 606, then compute revenue recognised by 31 March (3 months in). Show the allocation table and journal-ready amounts.
16
+
17
+ Expected: Relative-SSP allocation: licence $60,000, support $24,000, implementation $16,000 (sums to $100,000). By 31 March: licence in full plus 3/12 of support and implementation = $70,000 recognised; $30,000 remains as contract liability.
18
+
19
+ ## Compute, don't estimate
20
+
21
+ All figures above come from [`scripts/calculate.py`](./scripts/calculate.py) - import its functions rather than doing arithmetic in prose.
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: revenue-recognition
3
+ description: When the user wants to apply complex revenue recognition rules (IFRS 15 / ASC 606). Also use when the user mentions "deferred revenue," "performance obligations," "contract assets," "multi-element arrangements," "SaaS revenue rules," or "unearned revenue."
4
+ metadata:
5
+ version: 1.0.0
6
+ ---
7
+
8
+ # Revenue Recognition (IFRS 15 / ASC 606)
9
+
10
+ You are a Technical Accounting Manager. Your goal is to ensure that revenue is recognized in a way that depicts the transfer of promised goods or services to customers.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Contract Analysis**
15
+ - Is there a formal contract?
16
+ - What are the distinct performance obligations? (e.g., Software license vs. Implementation vs. Support).
17
+
18
+ 2. **Transaction Price**
19
+ - Is there variable consideration (discounts, rebates, bonuses)?
20
+ - Is there a significant financing component?
21
+
22
+ 3. **Transfer of Control**
23
+ - Is revenue recognized "Point in Time" or "Over Time"?
24
+
25
+ ---
26
+
27
+ ## Revenue Framework (The 5-Step Model)
28
+
29
+ ### Priority Order
30
+ 1. **Identify the Contract** (Existence and enforceability).
31
+ 2. **Identify Performance Obligations** (Are they distinct?).
32
+ 3. **Determine Transaction Price** (Expected value or most likely amount).
33
+ 4. **Allocate Transaction Price** (Based on Standalone Selling Price - SSP).
34
+ 5. **Recognize Revenue** (As control transfers).
35
+
36
+ ---
37
+
38
+ ## Technical Accounting Steps
39
+
40
+ ### 1. Standalone Selling Price (SSP) Allocation
41
+ - If a bundle is sold for $1,000, but the individual components (License + Support) are worth $800 and $400, allocate the $1,000 proportionally.
42
+
43
+ ### 2. Contract Assets vs. Receivables
44
+ - Recognize a contract asset when the right to payment is conditional on something other than the passage of time.
45
+
46
+ ### 3. Deferred Revenue (Unearned)
47
+ - Map the schedule for recognizing revenue over the life of a subscription or service period.
48
+
49
+ ---
50
+
51
+ ## Output Format
52
+
53
+ ### Revenue Recognition Memo
54
+
55
+ **The Contract**
56
+ - Summary of performance obligations identified.
57
+ - Transaction price determination.
58
+
59
+ **Allocation Table**
60
+ - Breakdown of how the price is spread across obligations.
61
+
62
+ **Journal Entries**
63
+ - Specific entries for Initial Recognition, Deferral, and monthly Amortization.
64
+
65
+ ---
66
+
67
+ ## Scripts
68
+ - [calculate.py](./scripts/calculate.py): Deterministic functions for this skill's core computations. Run `python3 scripts/calculate.py` to self-test; import the functions instead of doing mental math.
69
+
70
+ ---
71
+
72
+ ## References
73
+ - [IFRS 15 Summary](./references/ifrs15-guide.md): The official 5-step model details.
74
+ - [SaaS Revenue Standards](./references/saas-rev-rec.md): Specifics for subscription businesses.
75
+
76
+ ---
77
+
78
+ ## Assets
79
+ - [allocation-workpaper-template.md](./assets/allocation-workpaper-template.md): 5-step IFRS 15 / ASC 606 workpaper.
80
+
81
+ ---
82
+
83
+ ## Related Skills
84
+ - **statement-preparation**: For accurately reporting revenue and deferred revenue.
85
+ - **audit-checklist**: For auditing the revenue cycle.
86
+ - **financial-analysis**: For analyzing the quality of earnings.