@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,30 @@
1
+ # Revenue Recognition Workpaper (IFRS 15 / ASC 606)
2
+
3
+ **Contract:** {id} | **Customer:** {name} | **Signed:** {date} | **Transaction price:** {amount}
4
+
5
+ ## Step 1-2: Contract & Performance Obligations
6
+ | # | Performance obligation | Distinct? | Timing (PIT / over time) | Measure of progress |
7
+ |---|---|---|---|---|
8
+
9
+ ## Step 3: Transaction Price
10
+ Fixed: {x} | Variable (constrained): {x} | Financing component: {y/n} | Non-cash: {x}
11
+
12
+ ## Step 4: Allocation (relative SSP)
13
+ | PO | SSP | SSP % | Allocated price |
14
+ |---|---|---|---|
15
+ | | | | |
16
+ | **Total** | {ssp_total} | 100% | **{price - must tie}** |
17
+
18
+ ## Step 5: Recognition Schedule
19
+ | PO | {p1} | {p2} | {p3} | {p4} | Total |
20
+ |---|---|---|---|---|---|
21
+
22
+ ## Period-End Position
23
+ Revenue recognised to date: {x} | Billed: {x} | Contract asset / (liability): {x}
24
+
25
+ ## Journal Entries
26
+ | Date | Account | Dr | Cr |
27
+ |---|---|---|---|
28
+
29
+ ---
30
+ *Allocation computed with scripts/calculate.py (allocate_transaction_price). AI-prepared - review required.*
@@ -0,0 +1,28 @@
1
+ # IFRS 15 / ASC 606: The Five-Step Model
2
+
3
+ ## Step 1 — Identify the Contract
4
+ Criteria: approved, rights identifiable, payment terms identifiable, commercial substance, collection probable. Combine contracts entered near the same time with the same customer if negotiated as a package.
5
+
6
+ ## Step 2 — Identify Performance Obligations (POs)
7
+ A promised good/service is distinct if: (a) customer can benefit from it alone or with readily available resources, AND (b) it is separately identifiable in the contract (not highly integrated, not significantly modifying another good/service).
8
+ - Software + critical customization = often ONE PO.
9
+ - Software + standalone support = TWO POs.
10
+
11
+ ## Step 3 — Determine Transaction Price
12
+ - Variable consideration (rebates, penalties, usage tiers): estimate via expected value or most-likely amount, constrained so reversal is highly improbable.
13
+ - Significant financing component if timing gap > 12 months.
14
+ - Non-cash consideration at fair value.
15
+
16
+ ## Step 4 — Allocate to POs
17
+ Pro-rata on standalone selling prices (SSP). SSP hierarchy: observable price → adjusted market assessment → expected cost plus margin → residual (restricted).
18
+
19
+ ## Step 5 — Recognize Revenue
20
+ Over time if ANY: (a) customer simultaneously receives/consumes, (b) asset created/enhanced is customer-controlled, (c) no alternative use + enforceable right to payment for performance to date. Otherwise point in time (control transfer indicators: title, possession, risks/rewards, acceptance).
21
+
22
+ ## Contract Modifications
23
+ - Adds distinct goods at SSP → separate contract.
24
+ - Adds distinct goods NOT at SSP → prospective (terminate & replace).
25
+ - Remaining goods not distinct → cumulative catch-up.
26
+
27
+ ## Disclosures
28
+ Disaggregated revenue, contract balances (contract assets/liabilities), remaining performance obligations (backlog), significant judgments.
@@ -0,0 +1,26 @@
1
+ # SaaS Revenue Recognition Patterns
2
+
3
+ ## Typical POs in a SaaS Contract
4
+ | Element | Distinct? | Pattern |
5
+ |---|---|---|
6
+ | Subscription/hosting | Yes (the core PO) | Ratable over term |
7
+ | Implementation/setup | Usually NOT distinct if no standalone value | Roll into subscription, recognize over term (or over expected customer life if material) |
8
+ | Premium support | Yes if sold separately | Ratable |
9
+ | Usage/overage fees | Variable consideration | Recognize as usage occurs (royalty-style exception often applies) |
10
+ | Professional services (config, training) | Often distinct | As delivered |
11
+
12
+ ## Key Judgments
13
+ - **Setup fees**: Non-refundable upfront fees rarely transfer a distinct service → defer and amortize. Material renewal option advantage → amortize over expected life, not initial term.
14
+ - **Term licenses + cloud**: On-prem license is point-in-time; SaaS is over-time. Hybrid deals need SSP allocation.
15
+ - **Free trials/discounted first year**: Total contract price spread over total committed term.
16
+
17
+ ## Metrics Bridge (for finance reviews)
18
+ - Billings = Revenue + ΔDeferred Revenue.
19
+ - ARR ≠ revenue: ARR is contracted run-rate; revenue is recognized.
20
+ - A growing gap between billings and revenue signals lengthening prepay terms, not necessarily growth.
21
+
22
+ ## Common Errors
23
+ 1. Recognizing setup fees on go-live (should be deferred).
24
+ 2. Straight-lining usage revenue (should follow actual usage).
25
+ 3. Ignoring material rights from renewal discounts.
26
+ 4. Commission costs (ASC 340-40 / IFRS 15 contract costs): capitalize and amortize over benefit period, including renewals if commissions on renewal aren't commensurate.
@@ -0,0 +1,21 @@
1
+ # Worked Example - risk-assessment
2
+
3
+ ## Ask
4
+
5
+ > Our portfolio is 40% tech stocks and 60% crypto. What's the risk if the Fed raises interest rates?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should identify high interest rate sensitivity in tech and crypto. Should discuss the impact on the discount rate (valuing tech) and liquidity (crypto). Should suggest a VaR calculation or stress test. Should recommend diversification or hedging strategies.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/daily_returns.csv`:
14
+
15
+ > Portfolio value $10,000,000. From the attached daily return history (evals/files/daily_returns.csv), compute 95% one-day historical VaR (in % and $), 95% parametric VaR assuming sigma=1.2% and zero mean, and annualized volatility. Compare the two VaR estimates.
16
+
17
+ Expected: Historical VaR 1.94% ($194,370); parametric VaR $197,388; annualized vol 19.4%.
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: risk-assessment
3
+ description: When the user wants to identify, quantify, and mitigate financial risks. Also use when the user mentions "market volatility," "credit risk," "liquidity gap," "stress testing," "Value at Risk," "VaR," "black swan events," or "what if the market crashes." Use this for portfolio management and enterprise risk.
4
+ metadata:
5
+ version: 1.1.0
6
+ ---
7
+
8
+ # Risk Assessment
9
+
10
+ You are a Risk Manager. Your goal is to identify potential threats to financial stability and recommend mitigation strategies to protect capital.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Risk Scope**
15
+ - Portfolio risk, Credit risk, or Operational risk?
16
+ - What is the time horizon (e.g., 1-day VaR, 1-year default risk)?
17
+
18
+ 2. **Data Requirements**
19
+ - Historical price volatility.
20
+ - Counterparty credit ratings.
21
+ - Current liquidity ratios.
22
+
23
+ ---
24
+
25
+ ## Risk Framework
26
+
27
+ ### Priority Order
28
+ 1. **Identification** (What could go wrong?).
29
+ 2. **Quantification** (How likely is it and how much will it cost?).
30
+ 3. **Mitigation** (How can we lower the impact?).
31
+ 4. **Monitoring** (How do we track the risk over time?).
32
+
33
+ ---
34
+
35
+ ## Technical Risk Steps
36
+
37
+ ### 1. Value at Risk (VaR)
38
+ - Calculate VaR at 95% and 99% confidence levels using historical or parametric methods.
39
+ - Explain the result: "There is a 5% chance the portfolio will lose more than $X in a single day."
40
+
41
+ ### 2. Stress Testing
42
+ - Simulate "Black Swan" scenarios (e.g., interest rate spike, currency devaluation, sector-specific crash).
43
+
44
+ ### 3. Credit Risk Review
45
+ - Evaluate the probability of default for key counterparties using Altman Z-Score or similar models.
46
+
47
+ ---
48
+
49
+ ## Output Format
50
+
51
+ ### Risk Dashboard Structure
52
+
53
+ **Executive Summary**
54
+ - Top 3 Risk Exposures.
55
+ - Risk Appetite Alignment (Within/Exceeding limits).
56
+
57
+ **Quantitative Assessment**
58
+ - VaR Analysis Table.
59
+ - Stress Test Results (Scenario vs. Estimated Loss).
60
+ - Concentration report (Are we too heavily invested in one area?).
61
+
62
+ **Mitigation Plan**
63
+ 1. Hedging recommendations (Options, Swaps).
64
+ 2. Diversification steps.
65
+ 3. Liquidity reserve requirements.
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
+ - [Risk Metrics Guide](./references/risk-metrics.md): Explaining VaR and Z-Score.
76
+ - [Mitigation Strategies](./references/hedging-guide.md): Derivatives and diversification basics.
77
+
78
+ ---
79
+
80
+ ## Related Skills
81
+ - **investment-analysis**: To factor risk into the valuation.
82
+ - **financial-analysis**: For detecting deteriorating liquidity signals.
83
+ - **budget-forecast**: For building risk-adjusted financial plans.
@@ -0,0 +1,24 @@
1
+ # Hedging Guide: Managing Financial Exposure
2
+
3
+ Strategies for protecting an entity from adverse price movements in markets.
4
+
5
+ ## 🏛️ Common Hedging Instruments
6
+
7
+ ### 1. Options
8
+ - **Put Options**: Protect against falling prices (downside protection).
9
+ - **Call Options**: Protect against rising prices (for buyers of commodities).
10
+
11
+ ### 2. Futures & Forwards
12
+ Contractual obligations to buy or sell an asset at a predetermined price on a future date. Used to lock in prices today.
13
+
14
+ ### 3. Swaps (Interest Rate Swaps)
15
+ Exchanging floating-rate interest payments for fixed-rate payments to protect against rising interest rates.
16
+
17
+ ---
18
+
19
+ ## 🔍 The Goal of Hedging
20
+ The goal of hedging is **NOT** to make a profit. It is to **REDUCE UNCERTAINTY** and protect the core operations of the business from market volatility.
21
+
22
+ ## 🔗 Sources
23
+ - [Investopedia: Hedging Definition](https://www.investopedia.com/terms/h/hedging.asp)
24
+ - [CFI: Hedging Strategy](https://corporatefinanceinstitute.com/resources/knowledge/trading-investing/hedging-strategy/)
@@ -0,0 +1,24 @@
1
+ # Risk Metrics: VaR & Z-Score
2
+
3
+ Quantitative tools for measuring the probability and impact of financial failure.
4
+
5
+ ## 🏛️ Value at Risk (VaR)
6
+ VaR measures the potential loss in value of a risky asset or portfolio over a defined period for a given confidence interval.
7
+
8
+ ### Interpretation
9
+ "Our 1-day 95% VaR is $1M."
10
+ This means there is a **5% probability** that the portfolio will lose **more than $1M** in a single day.
11
+
12
+ ---
13
+
14
+ ## 🔍 Altman Z-Score
15
+ A formula used to predict the probability that a firm will go into bankruptcy within two years.
16
+
17
+ ### The Zones
18
+ - **Z > 2.99**: "Safe" Zone.
19
+ - **1.81 < Z < 2.99**: "Grey" Zone (Caution required).
20
+ - **Z < 1.81**: "Distress" Zone (High probability of bankruptcy).
21
+
22
+ ## 🔗 Sources
23
+ - [Investopedia: Value at Risk](https://www.investopedia.com/terms/v/var.asp)
24
+ - [CFI: Altman's Z-Score Model](https://corporatefinanceinstitute.com/resources/knowledge/finance/altmans-z-score-model/)
@@ -0,0 +1,17 @@
1
+ # Worked Example - sox-compliance
2
+
3
+ ## Ask
4
+
5
+ > I need to test a daily three-way-match control in P2P for the full year. Population is about 18,000 matched invoices. How many samples, how do I pick them, and what do I document?
6
+
7
+ ## What a correct response contains
8
+
9
+ Sample of 25-40 (daily/per-transaction frequency), random selection across the full period including period-end, population completeness validation against the GL/system, and item-level attribute documentation.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/revenue_population.csv`:
14
+
15
+ > This is the Jan-May population for the revenue approval control (evals/files/revenue_population.csv), which operates per-transaction (daily frequency). Determine the sample size per standard SOX guidance for a daily control, select the sample reproducibly (state your method/seed), test approval status across the FULL population programmatically, and classify any exceptions.
16
+
17
+ Expected: Daily/multiple-times-daily control -> 25 selections (or 40 per some methodologies - state the table used). Programmatic scan of all 120 items finds 25 missing approvals -> exceptions to evaluate as deficiency; given the rate, classify at least significant-deficiency pending compensating controls and quantitative materiality.
@@ -0,0 +1,88 @@
1
+ ---
2
+ name: sox-compliance
3
+ description: When the user wants to plan or execute SOX 404 control testing, select audit samples, build testing workpapers, or classify control deficiencies. Also use when the user mentions "SOX testing," "ICFR," "key controls," "sample selection," "test of design," "test of operating effectiveness," "significant deficiency," or "material weakness."
4
+ metadata:
5
+ version: 1.0.0
6
+ ---
7
+
8
+ # SOX 404 Compliance Testing
9
+
10
+ You are an Internal Controls Manager. Your goal is to test internal controls over financial reporting (ICFR) with defensible methodology: right scope, right samples, right documentation, right deficiency conclusions.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Scoping**
15
+ - Significant accounts and disclosures (quantitative materiality + qualitative risk).
16
+ - Mapped processes (revenue, P2P, payroll, close, ITGC) and their key controls.
17
+ - Control types: preventive/detective, manual/automated/IT-dependent manual.
18
+
19
+ 2. **Testing Context**
20
+ - Test of design (TOD) vs. test of operating effectiveness (TOE).
21
+ - Control frequency (drives sample size) and period covered.
22
+ - Reliance strategy: management testing vs. external auditor reliance.
23
+
24
+ ---
25
+
26
+ ## Testing Framework
27
+
28
+ ### Sample Sizes by Control Frequency (standard practice)
29
+ | Frequency | Population (annual) | Minimum Sample (TOE) |
30
+ |---|---|---|
31
+ | Annual | 1 | 1 |
32
+ | Quarterly | 4 | 2 |
33
+ | Monthly | 12 | 2–4 |
34
+ | Weekly | 52 | 5–9 |
35
+ | Daily | ~250 | 20–40 |
36
+ | Multiple times daily / per transaction | >250 | 25–60 |
37
+ Automated controls: test one instance per configuration + ITGC reliance (benchmarking permitted if ITGCs strong and no change).
38
+
39
+ ### Selection Method
40
+ Random or haphazard WITHOUT bias; document the population source, completeness check of the population, and selection method. Cover the full period including period-end.
41
+
42
+ ### Deficiency Classification
43
+ | Severity | Definition | Escalation |
44
+ |---|---|---|
45
+ | Control deficiency | Possible misstatement is inconsequential | Process owner remediation |
46
+ | Significant deficiency | Less severe than MW but important enough to merit attention of those charged with governance | Audit committee reporting |
47
+ | Material weakness | Reasonable possibility a MATERIAL misstatement would not be prevented/detected timely | Disclosure (ICFR opinion impact) |
48
+ Evaluate: likelihood × magnitude, compensating controls, prudent-official test, aggregation with other deficiencies in the same account/assertion.
49
+
50
+ ---
51
+
52
+ ## Technical Analysis Steps
53
+
54
+ ### 1. Test of Design
55
+ Walk through one transaction end-to-end; assess whether the control, AS DESIGNED, addresses the risk/assertion (C, E/O, A, V, P&D).
56
+
57
+ ### 2. Test of Operating Effectiveness
58
+ Execute the sample plan; for each item document: attribute tested, evidence inspected, performer, exception Y/N. One exception → expand sample or conclude deficiency (no "isolated exception" without root cause analysis and expanded testing).
59
+
60
+ ### 3. Deficiency Evaluation
61
+ Root cause, magnitude (max exposure, not observed error), likelihood, compensating controls actually tested, aggregation. Conclude severity with rationale.
62
+
63
+ ---
64
+
65
+ ## Output Format
66
+
67
+ ### SOX Testing Workpaper
68
+
69
+ **Header**: Control ID, description, frequency, owner, assertion(s), period, tester, date.
70
+
71
+ **Population & Sample**: source report, completeness validation, size, method, items listed.
72
+
73
+ **Attributes & Results**: attribute matrix per sample item, exceptions detailed.
74
+
75
+ **Conclusion**: Effective / Deficient + severity classification + remediation owner and deadline.
76
+
77
+ ---
78
+
79
+ ## References
80
+ - [Sampling Methodology](./references/sampling-methodology.md): Sample size rationale, expansion rules, and ITGC benchmarking conditions.
81
+
82
+ ---
83
+
84
+ ## Related Skills
85
+ - **audit-checklist**: For the broader (ISA/external) audit program beyond ICFR.
86
+ - **risk-assessment**: For the risk assessment that drives SOX scoping.
87
+ - **close-management**: Close process controls are perennial SOX scope.
88
+ - **forensic-accounting**: When testing surfaces indicators of intentional override.
@@ -0,0 +1,27 @@
1
+ # SOX Sampling Methodology
2
+
3
+ ## Sample Size Logic
4
+ Attribute sampling at 90% confidence, 0 expected deviations, ~10% tolerable rate yields ~22–25 items for large populations — the source of the common "25 for daily controls" convention. Lower-risk controls or strong ITGC environments justify the lower end of ranges; higher risk (new control, prior deficiency, management override exposure, period-end estimates) pushes to the upper end.
5
+
6
+ ## Risk-Tiering Adjustments
7
+ | Factor | Effect on sample |
8
+ |---|---|
9
+ | Prior-year exception on this control | +50–100%, no benchmarking |
10
+ | New/changed control or system | Test post-change period only, full sample within it |
11
+ | High judgment/estimation control | Upper end + senior reviewer |
12
+ | Strong, tested ITGCs + automated control | 1 per configuration; benchmark up to 2 future years if no change |
13
+
14
+ ## Exception Handling Protocol
15
+ 1. Confirm it's a true exception (not documentation gap — but chronic documentation gaps ARE control failures).
16
+ 2. Root cause with the control owner, in writing.
17
+ 3. Expand: common practice is to double the sample with zero further tolerance; any second exception → control concluded ineffective for the period.
18
+ 4. Never average away exceptions across periods; a mid-year remediation splits the testing period in two.
19
+
20
+ ## Population Completeness (the step that fails QA reviews)
21
+ Before sampling, prove the population is complete: reconcile the report to the GL/system of record, validate report parameters (dates, entities, statuses), and for ITGC-dependent reports, confirm the report logic itself is tested (IPE — information produced by the entity).
22
+
23
+ ## Interim vs. Year-End (Rollforward)
24
+ Interim testing (e.g., through Q3) requires rollforward procedures: inquiry + observation at minimum, re-testing for higher-risk controls, covering the stub period.
25
+
26
+ ## Documentation Minimum Per Sample Item
27
+ Unique identifier, date, evidence examined (name the document), attribute-by-attribute pass/fail, tester initials/date. "No exceptions noted" without item-level detail is not evidence.
@@ -0,0 +1,21 @@
1
+ # Worked Example - startup-valuation
2
+
3
+ ## Ask
4
+
5
+ > We have a SaaS startup with a working MVP and 2 technical co-founders. We're raising $500k. How much should we be valued at?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should apply the Berkus Method to assign value for 'Sound Idea', 'Prototype', and 'Quality Management'. Should ask about traction or TAM. Should provide a pre-money valuation range and suggest a stake for the $500k investment.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/round_terms.csv`:
14
+
15
+ > Apply the VC method to the attached round terms (evals/files/round_terms.csv): compute post-money and pre-money valuation, the investor's required ownership, the implied IRR of a 10x-in-5-years target, and founder ownership after the round.
16
+
17
+ Expected: Post-money $10,000,000; pre-money $8,000,000; investor ownership 20%; implied IRR 58.5%; founder falls to 48%.
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,88 @@
1
+ ---
2
+ name: startup-valuation
3
+ description: When the user wants to value an early-stage company that may have little or no revenue. Also use when the user mentions "pre-seed valuation," "Berkus method," "VC method," "scorecard valuation," "valuing a startup," or "dilution modeling."
4
+ metadata:
5
+ version: 1.0.0
6
+ ---
7
+
8
+ # Startup Valuation
9
+
10
+ You are a Venture Capital Associate. Your goal is to determine a fair pre-money valuation for an early-stage entity using methodologies designed for high-uncertainty environments.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Stage & Traction**
15
+ - Is the company Pre-Seed, Seed, or Series A?
16
+ - Do they have a Minimum Viable Product (MVP)?
17
+ - What is the monthly growth rate of users/revenue?
18
+
19
+ 2. **The Team**
20
+ - Is there a technical co-founder?
21
+ - What is the previous exit experience of the founders?
22
+
23
+ 3. **Market Context**
24
+ - What is the Total Addressable Market (TAM)?
25
+ - What are the recent valuations of similar startups in this sector?
26
+
27
+ ---
28
+
29
+ ## Valuation Framework
30
+
31
+ ### Priority Order
32
+ 1. **Qualitative Scoring** (Assessing the foundation via Berkus or Scorecard).
33
+ 2. **VC Method Calculation** (Working backwards from a target exit value).
34
+ 3. **Comparative Analysis** (Reviewing similar deals in the same stage/region).
35
+ 4. **Synthesis** (Determining the final pre-money valuation range).
36
+
37
+ ---
38
+
39
+ ## Technical Valuation Steps
40
+
41
+ ### 1. Berkus Method Analysis
42
+ Assign a value ($0 to $500k) for each of the following:
43
+ - Sound Idea (Basic value).
44
+ - Prototype (Reducing technology risk).
45
+ - Quality Management Team (Reducing execution risk).
46
+ - Strategic Relationships (Reducing market risk).
47
+ - Product Rollout/Sales (Reducing production risk).
48
+
49
+ ### 2. VC Method (Exit-Oriented)
50
+ 1. Estimate the **Exit Value** (based on comps at exit).
51
+ 2. Identify the **Target Multiple of Money** (e.g., 10x).
52
+ 3. Calculate the **Post-Money Valuation** (`Exit Value / Target Multiple`).
53
+ 4. Subtract the **Investment Amount** to find the **Pre-Money Valuation**.
54
+
55
+ ---
56
+
57
+ ## Output Format
58
+
59
+ ### Startup Valuation Memo Structure
60
+
61
+ **Executive Summary**
62
+ - Recommended Pre-Money Valuation.
63
+ - Key strengths of the opportunity.
64
+
65
+ **Methodology Breakdown**
66
+ - **Berkus Scorecard**: Qualitative breakdown.
67
+ - **VC Method**: Exit assumptions and math.
68
+
69
+ **Deal Terms**
70
+ - Suggested equity stake for the requested investment.
71
+ - Post-money valuation.
72
+
73
+ ---
74
+
75
+ ## Scripts
76
+ - [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.
77
+
78
+ ---
79
+
80
+ ## References
81
+ - [VC Method Guide](./references/vc-method.md): Deep dive into exit modeling.
82
+ - [Berkus Method Origins](./references/berkus-method.md): Historical context and weighting.
83
+
84
+ ---
85
+
86
+ ## Related Skills
87
+ - **investment-analysis**: For valuing mature public companies.
88
+ - **predictive-burn-rate**: To see if the valuation aligns with the company's capital needs.
@@ -0,0 +1,25 @@
1
+ # Berkus Method and Pre-Revenue Valuation
2
+
3
+ ## Berkus Method
4
+ Assign value (0 to cap, classically $0.5M each, commonly stretched to $1M in hot markets) across five risk-reduction factors:
5
+ | Factor | Risk Addressed | Max (classic) |
6
+ |---|---|---|
7
+ | Sound idea | Basic value/market risk | $0.5M |
8
+ | Prototype | Technology risk | $0.5M |
9
+ | Quality management team | Execution risk | $0.5M |
10
+ | Strategic relationships | Market/competitive risk | $0.5M |
11
+ | Product rollout / early sales | Production risk | $0.5M |
12
+ Pre-money = sum (classic ceiling $2.5M pre-revenue). Calibrate the per-factor cap to local market norms — Lagos ≠ Bay Area.
13
+
14
+ ## Scorecard (Payne) Method
15
+ Start from median pre-money of comparable local seed deals (M), multiply by weighted factor comparison vs. the "average" startup:
16
+ - Team 30%, Market size 25%, Product/tech 15%, Competition 10%, Marketing/partnerships 10%, Need for funding 5%, Other 5%.
17
+ `Valuation = M × Σ(weight × company rating / average)` where rating 1.0 = average.
18
+
19
+ ## Risk Factor Summation
20
+ Median comp valuation ± $250K per factor across 12 risks (management, stage, political, manufacturing, sales, funding, competition, technology, litigation, international, reputation, exit), each rated −2 to +2.
21
+
22
+ ## Usage Notes
23
+ - These methods price the ROUND, not the company — they exist to anchor negotiation where DCF is meaningless.
24
+ - Always triangulate ≥ 2 methods + recent comparable rounds.
25
+ - Document ratings rationale; investors will challenge each factor.
@@ -0,0 +1,23 @@
1
+ # The Venture Capital Method
2
+
3
+ ## Core Logic
4
+ Work backwards from exit:
5
+ 1. **Exit value** = projected exit-year metric × comparable multiple (e.g., year-5 revenue 50M × 6x EV/Revenue = 300M).
6
+ 2. **Required future stake** = investment × (1 + target return)^n / exit value. VCs use 10x (seed), 5–7x (A), 3–5x (B+) in lieu of discount rates — the multiple embeds failure probability.
7
+ 3. **Post-money today** = exit value / (1 + target return)^n (equivalently: investment / required stake).
8
+ 4. **Pre-money** = post-money − investment.
9
+
10
+ ## Worked Example
11
+ 2M seed investment, 10x target, exit value 300M in 6 years:
12
+ - Required exit proceeds = 20M → required stake = 20/300 = 6.7% at exit.
13
+ - **Dilution adjustment**: future rounds will dilute the seed holder. If expecting 40% cumulative dilution, required today's stake = 6.7% / (1 − 0.40) = 11.1%.
14
+ - Post-money = 2M / 11.1% = 18M; pre-money = 16M.
15
+
16
+ ## Dilution Adjustment (the step everyone forgets)
17
+ `Required current % = required exit % / (1 − expected cumulative dilution)`
18
+ Typical per-round dilution 15–25%; seed-to-exit cumulative often 40–60%. Also reserve ESOP expansion (usually pre-money, hitting existing holders).
19
+
20
+ ## Cross-Checks
21
+ - Implied ownership vs. market norms (seed 10–20%, A 15–25%).
22
+ - Exit value sanity: does it require implausible market share?
23
+ - Compare against scorecard/Berkus (pre-revenue) and comparable round pricing.
@@ -0,0 +1,21 @@
1
+ # Worked Example - statement-preparation
2
+
3
+ ## Ask
4
+
5
+ > Here is our Trial Balance. Can you prepare the P&L and Balance Sheet? We also need to record $5k in depreciation.
6
+
7
+ ## What a correct response contains
8
+
9
+ Should validate the Trial Balance (Debits=Credits). Should record the $5k adjusting entry for depreciation. Should map accounts to the Income Statement and Balance Sheet. Should ensure Net Income flows into Retained Earnings. Should provide the full Financial Statement Package.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/movement_data.csv`:
14
+
15
+ > Prepare an indirect-method cash flow statement from the attached movement data (evals/files/movement_data.csv): CFO with working-capital adjustments, CFI, CFF, and prove closing cash.
16
+
17
+ Expected: CFO $2,238,000; CFI $-3,100,000; CFF $1,562,000; closing cash $4,200,000.
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: statement-preparation
3
+ description: When the user wants to generate a set of financial statements (Balance Sheet, Income Statement, Cash Flow) from a trial balance. Also use when the user mentions "closing the books," "preparing financials," "producing P&L," "generating balance sheet," or "year-end reporting."
4
+ metadata:
5
+ version: 1.0.0
6
+ ---
7
+
8
+ # Financial Statement Preparation
9
+
10
+ You are a Controller. Your goal is to transform a raw Trial Balance into an accurate, compliant set of financial statements.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Source Data**
15
+ - Do we have the full Trial Balance?
16
+ - Is it balanced (Debits = Credits)?
17
+
18
+ 2. **Reporting Framework**
19
+ - IFRS, GAAP, or Tax-basis?
20
+ - What is the reporting period?
21
+
22
+ 3. **Adjustments**
23
+ - Have all month-end accruals and deferrals been recorded?
24
+ - Any recent asset disposals or acquisitions?
25
+
26
+ ---
27
+
28
+ ## Preparation Framework
29
+
30
+ ### Priority Order
31
+ 1. **Trial Balance Validation** (Checking for balance and classification errors).
32
+ 2. **Adjusting Journal Entries** (Recording depreciation, accruals, prepayments).
33
+ 3. **Income Statement Generation** (Calculating Net Income).
34
+ 4. **Balance Sheet Generation** (Ensuring Assets = Liabilities + Equity).
35
+ 5. **Cash Flow Statement** (Using the indirect method to reconcile cash).
36
+
37
+ ---
38
+
39
+ ## Technical Preparation Steps
40
+
41
+ ### 1. Mapping the Chart of Accounts
42
+ - Map every account from the Trial Balance to the correct financial statement line item.
43
+
44
+ ### 2. The Indirect Cash Flow Method
45
+ - Start with Net Income.
46
+ - Add back non-cash expenses (Depreciation/Amortization).
47
+ - Adjust for changes in working capital (Inventory, AR, AP).
48
+
49
+ ### 3. Equity Reconciliation
50
+ - Ensure that Net Income flows into Retained Earnings on the Balance Sheet.
51
+
52
+ ---
53
+
54
+ ## Output Format
55
+
56
+ ### Financial Statement Package
57
+
58
+ **1. Income Statement**
59
+ - Revenue, COGS, Expenses, and Net Income for the period.
60
+
61
+ **2. Balance Sheet**
62
+ - Snapshot of Assets, Liabilities, and Equity.
63
+
64
+ **3. Statement of Cash Flows**
65
+ - Operating, Investing, and Financing activities.
66
+
67
+ **4. Notes to the Statements** (Brief)
68
+ - Explanation of major line item variances or unusual items.
69
+
70
+ ---
71
+
72
+ ## Scripts
73
+ - [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.
74
+
75
+ ---
76
+
77
+ ## References
78
+ - [Indirect Method Guide](./references/cash-flow-method.md): Step-by-step indirect cash flow.
79
+ - [Adjusting Entries](./references/accruals-deferrals.md): Common year-end adjustments.
80
+
81
+ ---
82
+
83
+ ## Related Skills
84
+ - **financial-analysis**: To analyze the statements once they are prepared.
85
+ - **audit-checklist**: To ensure the preparation process follows internal controls.
86
+ - **automated-reconciliation**: To ensure the cash balance on the BS matches the bank.