@v587d/capital-generation 2.7.6 → 2.7.8

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 (203) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/README.md +5 -4
  3. package/THIRD_PARTY_NOTICES.md +14 -3
  4. package/capital-config/client.js +4 -4
  5. package/capital-config/package.json +1 -1
  6. package/capital-watchlist/package.json +1 -1
  7. package/chart-ui/package.json +1 -1
  8. package/lib/agents/selected-skills-provider.js +91 -41
  9. package/lib/index.js +3 -2
  10. package/lib/web-retriever/local-fetch.d.ts +1 -1
  11. package/lib/web-retriever/local-fetch.js +1 -1
  12. package/lib/web-retriever/wind-client.d.ts +1 -1
  13. package/lib/web-retriever/wind-client.js +1 -1
  14. package/package.json +2 -1
  15. package/selected-skills/README.md +3 -1
  16. package/selected-skills/catalog.js +155 -0
  17. package/selected-skills/financeskills/LICENSE +21 -0
  18. package/selected-skills/financeskills/UPSTREAM.md +202 -0
  19. package/selected-skills/financeskills/skills/ai-anomaly-detection/EXAMPLE.md +21 -0
  20. package/selected-skills/financeskills/skills/ai-anomaly-detection/SKILL.md +84 -0
  21. package/selected-skills/financeskills/skills/ai-anomaly-detection/references/feature-engineering.md +20 -0
  22. package/selected-skills/financeskills/skills/ai-anomaly-detection/references/ml-algorithms.md +28 -0
  23. package/selected-skills/financeskills/skills/aro-computation/EXAMPLE.md +21 -0
  24. package/selected-skills/financeskills/skills/aro-computation/SKILL.md +82 -0
  25. package/selected-skills/financeskills/skills/aro-computation/references/aro-standards.md +22 -0
  26. package/selected-skills/financeskills/skills/aro-computation/references/pv-math.md +27 -0
  27. package/selected-skills/financeskills/skills/audit-checklist/EXAMPLE.md +17 -0
  28. package/selected-skills/financeskills/skills/audit-checklist/SKILL.md +77 -0
  29. package/selected-skills/financeskills/skills/audit-checklist/references/internal-controls.md +36 -0
  30. package/selected-skills/financeskills/skills/audit-checklist/references/isa-standards.md +26 -0
  31. package/selected-skills/financeskills/skills/automated-reconciliation/EXAMPLE.md +21 -0
  32. package/selected-skills/financeskills/skills/automated-reconciliation/SKILL.md +87 -0
  33. package/selected-skills/financeskills/skills/automated-reconciliation/assets/reconciliation-statement-template.md +31 -0
  34. package/selected-skills/financeskills/skills/automated-reconciliation/references/fuzzy-logic.md +27 -0
  35. package/selected-skills/financeskills/skills/automated-reconciliation/references/rec-controls.md +28 -0
  36. package/selected-skills/financeskills/skills/banking-compliance/EXAMPLE.md +21 -0
  37. package/selected-skills/financeskills/skills/banking-compliance/SKILL.md +82 -0
  38. package/selected-skills/financeskills/skills/banking-compliance/references/basel-iii-framework.md +26 -0
  39. package/selected-skills/financeskills/skills/banking-compliance/references/risk-weights.md +32 -0
  40. package/selected-skills/financeskills/skills/budget-forecast/EXAMPLE.md +21 -0
  41. package/selected-skills/financeskills/skills/budget-forecast/SKILL.md +87 -0
  42. package/selected-skills/financeskills/skills/budget-forecast/references/forecasting-best-practices.md +26 -0
  43. package/selected-skills/financeskills/skills/budget-forecast/references/scenario-analysis.md +25 -0
  44. package/selected-skills/financeskills/skills/close-management/EXAMPLE.md +17 -0
  45. package/selected-skills/financeskills/skills/close-management/SKILL.md +85 -0
  46. package/selected-skills/financeskills/skills/close-management/references/close-task-library.md +32 -0
  47. package/selected-skills/financeskills/skills/company-valuation/EXAMPLE.md +21 -0
  48. package/selected-skills/financeskills/skills/company-valuation/SKILL.md +80 -0
  49. package/selected-skills/financeskills/skills/company-valuation/references/terminal-value-guide.md +33 -0
  50. package/selected-skills/financeskills/skills/corporate-consolidation/EXAMPLE.md +21 -0
  51. package/selected-skills/financeskills/skills/corporate-consolidation/SKILL.md +84 -0
  52. package/selected-skills/financeskills/skills/corporate-consolidation/references/consolidation-standard.md +28 -0
  53. package/selected-skills/financeskills/skills/corporate-consolidation/references/minority-interest.md +25 -0
  54. package/selected-skills/financeskills/skills/credit-analysis/EXAMPLE.md +21 -0
  55. package/selected-skills/financeskills/skills/credit-analysis/SKILL.md +84 -0
  56. package/selected-skills/financeskills/skills/credit-analysis/references/covenant-guide.md +26 -0
  57. package/selected-skills/financeskills/skills/crypto-accounting/EXAMPLE.md +21 -0
  58. package/selected-skills/financeskills/skills/crypto-accounting/SKILL.md +81 -0
  59. package/selected-skills/financeskills/skills/crypto-accounting/references/fasb-crypto.md +26 -0
  60. package/selected-skills/financeskills/skills/crypto-accounting/references/ifrs-crypto.md +25 -0
  61. package/selected-skills/financeskills/skills/cvp-breakeven/EXAMPLE.md +21 -0
  62. package/selected-skills/financeskills/skills/cvp-breakeven/SKILL.md +78 -0
  63. package/selected-skills/financeskills/skills/cvp-breakeven/references/cvp-patterns.md +28 -0
  64. package/selected-skills/financeskills/skills/debt-payoff/EXAMPLE.md +21 -0
  65. package/selected-skills/financeskills/skills/debt-payoff/SKILL.md +94 -0
  66. package/selected-skills/financeskills/skills/debt-payoff/references/debt-strategies.md +32 -0
  67. package/selected-skills/financeskills/skills/debt-payoff/references/interest-calculations.md +27 -0
  68. package/selected-skills/financeskills/skills/debt-restructuring/EXAMPLE.md +21 -0
  69. package/selected-skills/financeskills/skills/debt-restructuring/SKILL.md +79 -0
  70. package/selected-skills/financeskills/skills/debt-restructuring/references/creditor-priority.md +26 -0
  71. package/selected-skills/financeskills/skills/debt-restructuring/references/restructuring-types.md +24 -0
  72. package/selected-skills/financeskills/skills/deferred-tax/EXAMPLE.md +21 -0
  73. package/selected-skills/financeskills/skills/deferred-tax/SKILL.md +86 -0
  74. package/selected-skills/financeskills/skills/deferred-tax/references/td-catalogue.md +39 -0
  75. package/selected-skills/financeskills/skills/earned-value-mgmt/EXAMPLE.md +21 -0
  76. package/selected-skills/financeskills/skills/earned-value-mgmt/SKILL.md +79 -0
  77. package/selected-skills/financeskills/skills/earned-value-mgmt/references/forecasting-eac.md +27 -0
  78. package/selected-skills/financeskills/skills/earned-value-mgmt/references/pmi-evm.md +29 -0
  79. package/selected-skills/financeskills/skills/ecl-computation/EXAMPLE.md +21 -0
  80. package/selected-skills/financeskills/skills/ecl-computation/SKILL.md +85 -0
  81. package/selected-skills/financeskills/skills/ecl-computation/references/ifrs9-standard.md +27 -0
  82. package/selected-skills/financeskills/skills/ecl-computation/references/risk-modeling.md +26 -0
  83. package/selected-skills/financeskills/skills/esg-reporting/EXAMPLE.md +17 -0
  84. package/selected-skills/financeskills/skills/esg-reporting/SKILL.md +79 -0
  85. package/selected-skills/financeskills/skills/esg-reporting/references/ghg-protocol.md +22 -0
  86. package/selected-skills/financeskills/skills/esg-reporting/references/sasb-map.md +25 -0
  87. package/selected-skills/financeskills/skills/financial-analysis/EXAMPLE.md +21 -0
  88. package/selected-skills/financeskills/skills/financial-analysis/SKILL.md +108 -0
  89. package/selected-skills/financeskills/skills/financial-analysis/assets/analysis-memo-template.md +31 -0
  90. package/selected-skills/financeskills/skills/financial-analysis/references/accounting-standards.md +45 -0
  91. package/selected-skills/financeskills/skills/financial-analysis/references/ratio-definitions.md +14 -0
  92. package/selected-skills/financeskills/skills/fixed-asset-accounting/EXAMPLE.md +21 -0
  93. package/selected-skills/financeskills/skills/fixed-asset-accounting/SKILL.md +78 -0
  94. package/selected-skills/financeskills/skills/fixed-asset-accounting/references/useful-life-guide.md +30 -0
  95. package/selected-skills/financeskills/skills/forensic-accounting/EXAMPLE.md +21 -0
  96. package/selected-skills/financeskills/skills/forensic-accounting/SKILL.md +91 -0
  97. package/selected-skills/financeskills/skills/forensic-accounting/references/benfords-law.md +24 -0
  98. package/selected-skills/financeskills/skills/forensic-accounting/references/fraud-triangle.md +26 -0
  99. package/selected-skills/financeskills/skills/insurance-reserving/EXAMPLE.md +21 -0
  100. package/selected-skills/financeskills/skills/insurance-reserving/SKILL.md +82 -0
  101. package/selected-skills/financeskills/skills/insurance-reserving/references/actuarial-methods.md +33 -0
  102. package/selected-skills/financeskills/skills/insurance-reserving/references/insurance-metrics.md +26 -0
  103. package/selected-skills/financeskills/skills/intercompany-accounting/EXAMPLE.md +21 -0
  104. package/selected-skills/financeskills/skills/intercompany-accounting/SKILL.md +79 -0
  105. package/selected-skills/financeskills/skills/intercompany-accounting/references/elimination-entries.md +35 -0
  106. package/selected-skills/financeskills/skills/inventory-costing/EXAMPLE.md +21 -0
  107. package/selected-skills/financeskills/skills/inventory-costing/SKILL.md +80 -0
  108. package/selected-skills/financeskills/skills/inventory-costing/references/costing-examples.md +31 -0
  109. package/selected-skills/financeskills/skills/investment-analysis/EXAMPLE.md +21 -0
  110. package/selected-skills/financeskills/skills/investment-analysis/SKILL.md +82 -0
  111. package/selected-skills/financeskills/skills/investment-analysis/references/competitive-advantage.md +31 -0
  112. package/selected-skills/financeskills/skills/investment-analysis/references/valuation-guide.md +29 -0
  113. package/selected-skills/financeskills/skills/journal-entry/EXAMPLE.md +21 -0
  114. package/selected-skills/financeskills/skills/journal-entry/SKILL.md +94 -0
  115. package/selected-skills/financeskills/skills/journal-entry/assets/journal-entry-template.md +21 -0
  116. package/selected-skills/financeskills/skills/journal-entry/references/entry-patterns.md +51 -0
  117. package/selected-skills/financeskills/skills/lbo-modeling/EXAMPLE.md +21 -0
  118. package/selected-skills/financeskills/skills/lbo-modeling/SKILL.md +88 -0
  119. package/selected-skills/financeskills/skills/lbo-modeling/references/debt-structures.md +22 -0
  120. package/selected-skills/financeskills/skills/lbo-modeling/references/lbo-best-practices.md +27 -0
  121. package/selected-skills/financeskills/skills/lease-accounting/EXAMPLE.md +21 -0
  122. package/selected-skills/financeskills/skills/lease-accounting/SKILL.md +88 -0
  123. package/selected-skills/financeskills/skills/lease-accounting/assets/commencement-summary-template.md +28 -0
  124. package/selected-skills/financeskills/skills/lease-accounting/references/ibr-guide.md +26 -0
  125. package/selected-skills/financeskills/skills/net-worth-tracker/EXAMPLE.md +21 -0
  126. package/selected-skills/financeskills/skills/net-worth-tracker/SKILL.md +98 -0
  127. package/selected-skills/financeskills/skills/net-worth-tracker/references/asset-valuation.md +40 -0
  128. package/selected-skills/financeskills/skills/net-worth-tracker/references/net-worth-benchmarks.md +33 -0
  129. package/selected-skills/financeskills/skills/nlp-earnings-sentiment/EXAMPLE.md +17 -0
  130. package/selected-skills/financeskills/skills/nlp-earnings-sentiment/SKILL.md +77 -0
  131. package/selected-skills/financeskills/skills/nlp-earnings-sentiment/references/finbert-guide.md +26 -0
  132. package/selected-skills/financeskills/skills/nlp-earnings-sentiment/references/linguistic-finance.md +23 -0
  133. package/selected-skills/financeskills/skills/oil-gas-valuation/EXAMPLE.md +21 -0
  134. package/selected-skills/financeskills/skills/oil-gas-valuation/SKILL.md +86 -0
  135. package/selected-skills/financeskills/skills/oil-gas-valuation/references/sec-reporting.md +22 -0
  136. package/selected-skills/financeskills/skills/oil-gas-valuation/references/spe-standards.md +25 -0
  137. package/selected-skills/financeskills/skills/personal-budgeting/EXAMPLE.md +21 -0
  138. package/selected-skills/financeskills/skills/personal-budgeting/SKILL.md +100 -0
  139. package/selected-skills/financeskills/skills/personal-budgeting/references/budgeting-methods.md +40 -0
  140. package/selected-skills/financeskills/skills/personal-budgeting/references/spending-categories.md +40 -0
  141. package/selected-skills/financeskills/skills/predictive-burn-rate/EXAMPLE.md +21 -0
  142. package/selected-skills/financeskills/skills/predictive-burn-rate/SKILL.md +82 -0
  143. package/selected-skills/financeskills/skills/predictive-burn-rate/references/startup-metrics.md +27 -0
  144. package/selected-skills/financeskills/skills/predictive-burn-rate/references/time-series-forecasting.md +22 -0
  145. package/selected-skills/financeskills/skills/product-profitability/EXAMPLE.md +21 -0
  146. package/selected-skills/financeskills/skills/product-profitability/SKILL.md +83 -0
  147. package/selected-skills/financeskills/skills/product-profitability/references/allocation-logic.md +28 -0
  148. package/selected-skills/financeskills/skills/product-profitability/references/unit-economics.md +30 -0
  149. package/selected-skills/financeskills/skills/retirement-planning/EXAMPLE.md +21 -0
  150. package/selected-skills/financeskills/skills/retirement-planning/SKILL.md +98 -0
  151. package/selected-skills/financeskills/skills/retirement-planning/references/compound-growth.md +38 -0
  152. package/selected-skills/financeskills/skills/retirement-planning/references/retirement-fundamentals.md +29 -0
  153. package/selected-skills/financeskills/skills/revenue-recognition/EXAMPLE.md +21 -0
  154. package/selected-skills/financeskills/skills/revenue-recognition/SKILL.md +86 -0
  155. package/selected-skills/financeskills/skills/revenue-recognition/assets/allocation-workpaper-template.md +30 -0
  156. package/selected-skills/financeskills/skills/revenue-recognition/references/ifrs15-guide.md +28 -0
  157. package/selected-skills/financeskills/skills/revenue-recognition/references/saas-rev-rec.md +26 -0
  158. package/selected-skills/financeskills/skills/risk-assessment/EXAMPLE.md +21 -0
  159. package/selected-skills/financeskills/skills/risk-assessment/SKILL.md +83 -0
  160. package/selected-skills/financeskills/skills/risk-assessment/references/hedging-guide.md +24 -0
  161. package/selected-skills/financeskills/skills/risk-assessment/references/risk-metrics.md +24 -0
  162. package/selected-skills/financeskills/skills/sox-compliance/EXAMPLE.md +17 -0
  163. package/selected-skills/financeskills/skills/sox-compliance/SKILL.md +88 -0
  164. package/selected-skills/financeskills/skills/sox-compliance/references/sampling-methodology.md +27 -0
  165. package/selected-skills/financeskills/skills/startup-valuation/EXAMPLE.md +21 -0
  166. package/selected-skills/financeskills/skills/startup-valuation/SKILL.md +88 -0
  167. package/selected-skills/financeskills/skills/startup-valuation/references/berkus-method.md +25 -0
  168. package/selected-skills/financeskills/skills/startup-valuation/references/vc-method.md +23 -0
  169. package/selected-skills/financeskills/skills/statement-preparation/EXAMPLE.md +21 -0
  170. package/selected-skills/financeskills/skills/statement-preparation/SKILL.md +86 -0
  171. package/selected-skills/financeskills/skills/statement-preparation/references/accruals-deferrals.md +24 -0
  172. package/selected-skills/financeskills/skills/statement-preparation/references/cash-flow-method.md +32 -0
  173. package/selected-skills/financeskills/skills/tax-efficient-investing/EXAMPLE.md +21 -0
  174. package/selected-skills/financeskills/skills/tax-efficient-investing/SKILL.md +97 -0
  175. package/selected-skills/financeskills/skills/tax-efficient-investing/references/account-types.md +33 -0
  176. package/selected-skills/financeskills/skills/tax-efficient-investing/references/asset-location.md +36 -0
  177. package/selected-skills/financeskills/skills/tax-planning/EXAMPLE.md +21 -0
  178. package/selected-skills/financeskills/skills/tax-planning/SKILL.md +93 -0
  179. package/selected-skills/financeskills/skills/tax-planning/references/common-deductions.md +28 -0
  180. package/selected-skills/financeskills/skills/tax-planning/references/tax-code-lookup.md +25 -0
  181. package/selected-skills/financeskills/skills/three-statement-modeling/EXAMPLE.md +21 -0
  182. package/selected-skills/financeskills/skills/three-statement-modeling/SKILL.md +84 -0
  183. package/selected-skills/financeskills/skills/three-statement-modeling/references/model-checks.md +32 -0
  184. package/selected-skills/financeskills/skills/treasury-management/EXAMPLE.md +21 -0
  185. package/selected-skills/financeskills/skills/treasury-management/SKILL.md +83 -0
  186. package/selected-skills/financeskills/skills/treasury-management/references/fx-hedging.md +27 -0
  187. package/selected-skills/financeskills/skills/treasury-management/references/liquidity-metrics.md +24 -0
  188. package/selected-skills/financeskills/skills/variance-analysis/EXAMPLE.md +21 -0
  189. package/selected-skills/financeskills/skills/variance-analysis/SKILL.md +78 -0
  190. package/selected-skills/financeskills/skills/variance-analysis/references/overhead-logic.md +24 -0
  191. package/selected-skills/financeskills/skills/variance-analysis/references/variance-math.md +35 -0
  192. package/selected-skills/financeskills/skills/venture-debt/EXAMPLE.md +21 -0
  193. package/selected-skills/financeskills/skills/venture-debt/SKILL.md +84 -0
  194. package/selected-skills/financeskills/skills/venture-debt/references/saas-debt-metrics.md +26 -0
  195. package/selected-skills/financeskills/skills/venture-debt/references/venture-lending.md +23 -0
  196. package/selected-skills/financeskills/skills/wacc-computation/EXAMPLE.md +21 -0
  197. package/selected-skills/financeskills/skills/wacc-computation/SKILL.md +98 -0
  198. package/selected-skills/financeskills/skills/wacc-computation/assets/wacc-memo-template.md +40 -0
  199. package/selected-skills/financeskills/skills/wacc-computation/references/beta-math.md +24 -0
  200. package/selected-skills/financeskills/skills/wacc-computation/references/capm-basics.md +24 -0
  201. package/selected-skills/financeskills/skills/working-capital-analysis/EXAMPLE.md +21 -0
  202. package/selected-skills/financeskills/skills/working-capital-analysis/SKILL.md +83 -0
  203. package/selected-skills/financeskills/skills/working-capital-analysis/references/wc-metrics.md +30 -0
@@ -0,0 +1,36 @@
1
+ # Internal Control Standards: COSO Framework
2
+
3
+ The gold standard for designing, implementing, and assessing internal control for financial reporting.
4
+
5
+ ## 🏛️ The Five Components of COSO
6
+ The COSO cube identifies five integrated components:
7
+
8
+ ### 1. Control Environment
9
+ The set of standards, processes, and structures that provide the basis for carrying out internal control across the organization.
10
+ - **Key Signal**: The "Tone at the Top" set by management.
11
+
12
+ ### 2. Risk Assessment
13
+ A dynamic and iterative process for identifying and analyzing risks to achieving objectives.
14
+ - **Key Signal**: Regular SWOT analyses and risk registries.
15
+
16
+ ### 3. Control Activities
17
+ The actions established through policies and procedures that help ensure that management’s directives to mitigate risks to the achievement of objectives are carried out.
18
+ - **Examples**: Approvals, authorizations, verifications, reconciliations, and segregation of duties.
19
+
20
+ ### 4. Information & Communication
21
+ The internal and external communication of information necessary to support the functioning of other components of internal control.
22
+
23
+ ### 5. Monitoring Activities
24
+ Ongoing evaluations, separate evaluations, or some combination of the two used to ascertain whether each of the five components of internal control is present and functioning.
25
+
26
+ ---
27
+
28
+ ## 🔍 Common Control Gaps
29
+ - **Lack of Segregation of Duties**: The same person can initiate, approve, and record a transaction.
30
+ - **Inadequate Documentation**: No audit trail for approvals.
31
+ - **Override of Controls**: Management bypassing established procedures.
32
+
33
+ ## 🔗 Sources
34
+ - [COSO Official Website](https://www.coso.org/)
35
+ - [AICPA: Internal Control - Integrated Framework](https://www.aicpa.org/resources/toolkit/coso)
36
+ - [Deloitte: COSO Internal Control Integrated Framework](https://www2.deloitte.com/us/en/pages/advisory/articles/internal-control-integrated-framework.html)
@@ -0,0 +1,26 @@
1
+ # International Standards on Auditing (ISA)
2
+
3
+ Overview of the professional standards for the performance of financial audits of historical financial information.
4
+
5
+ ## 🏛️ Core Principles
6
+
7
+ ### ISA 200: Overall Objectives
8
+ The objective of an audit is to obtain reasonable assurance about whether the financial statements as a whole are free from material misstatement, whether due to fraud or error.
9
+
10
+ ### ISA 240: Auditor’s Responsibilities Relating to Fraud
11
+ Distinguishes between fraud (deliberate) and error (unintentional). Requires auditors to maintain professional skepticism throughout the audit.
12
+
13
+ ### ISA 315: Identifying Risks of Material Misstatement
14
+ The auditor must understand the entity and its environment, including internal controls, to identify and assess the risks of material misstatement.
15
+
16
+ ---
17
+
18
+ ## 🔍 The Audit Opinion Types
19
+ 1. **Unmodified (Unqualified)**: The "Clean" opinion. Statements are presented fairly.
20
+ 2. **Qualified**: Material but not pervasive misstatement found. "Except for [X], everything is fair."
21
+ 3. **Adverse**: Material and pervasive misstatement. The statements are misleading.
22
+ 4. **Disclaimer**: The auditor is unable to obtain sufficient evidence to form an opinion.
23
+
24
+ ## 🔗 Sources
25
+ - [IAASB Standards & Pronouncements](https://www.iaasb.org/standards-pronouncements)
26
+ - [IFAC: International Standards on Auditing](https://www.ifac.org/what-we-do/standards/auditing-assurance)
@@ -0,0 +1,21 @@
1
+ # Worked Example - automated-reconciliation
2
+
3
+ ## Ask
4
+
5
+ > I have 500 bank transactions and 510 ledger entries. Most are exact matches, but 20 have slightly different names like 'AWS' vs 'Amazon'. How can I reconcile this?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should recommend a two-step process: Deterministic matching for exact entries and Probabilistic/Fuzzy matching for name variances. Should mention vendor name normalization. Should provide a Reconciliation Report structure.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/bank_statement.csv`, `evals/files/gl_cash.csv`:
14
+
15
+ > Reconcile the attached May bank statement (evals/files/bank_statement.csv) against the GL cash ledger (evals/files/gl_cash.csv). Both start from an agreed opening balance of $100,000.00. Match transactions, identify deposits in transit, outstanding cheques, and bank-only items, then produce a bank reconciliation statement proving the adjusted balances agree.
16
+
17
+ Expected: Bank ending balance $147,060.00; GL ending balance $154,540.00. Deposit in transit $27,300.00 (INV1045); outstanding cheques $12,640.00 (2206) and $7,120.00 (2207); bank-only items: charges $350.00 and interest $410.00 to be booked in GL. Adjusted balance both sides $154,600.00.
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,87 @@
1
+ ---
2
+ name: automated-reconciliation
3
+ description: When the user wants to match disparate financial data sources (e.g., bank statements vs. general ledger) at scale using AI. Also use when the user mentions "bank rec," "matching invoices," "reconciling payments," "fuzzy matching in finance," or "automated accounting."
4
+ metadata:
5
+ version: 1.0.0
6
+ ---
7
+
8
+ # Automated Reconciliation
9
+
10
+ You are an Accounting Systems Architect. Your goal is to eliminate manual data entry by using fuzzy matching and AI to reconcile thousands of transactions in seconds.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **The Data Sources**
15
+ - Source A: (e.g., Bank Statement PDF/CSV).
16
+ - Source B: (e.g., General Ledger / ERP Export).
17
+ - Are there common IDs (Reference numbers, Check numbers)?
18
+
19
+ 2. **The "Match" Definition**
20
+ - Exact match (Same ID, Same Amount, Same Date).
21
+ - Fuzzy match (Similar Name, Same Amount, +/- 2 days).
22
+
23
+ ---
24
+
25
+ ## Reconciliation Framework
26
+
27
+ ### Technical Limitation
28
+ **LLMs are not good at matching 50,000 rows.**
29
+ For large datasets, this skill uses Python libraries like `pandas` and `RecordLinkage`. LLMs are used to resolve the "Ambiguous Matches" (the 5% the code can't solve).
30
+
31
+ ### Priority Order
32
+ 1. **Data Cleaning** (Standardizing vendor names: "AWS" vs. "Amazon Web Svcs").
33
+ 2. **Deterministic Matching** (Exact matches on IDs).
34
+ 3. **Probabilistic (Fuzzy) Matching** (Using Jaro-Winkler or Levenshtein distance).
35
+ 4. **Exception Handling** (Flagging the items that couldn't be matched).
36
+
37
+ ---
38
+
39
+ ## Technical Reconciliation Steps
40
+
41
+ ### 1. Vendor Name Normalization
42
+ - Use a lookup table or AI to standardize variant vendor names across datasets.
43
+
44
+ ### 2. Fuzzy Amount Matching
45
+ - Use a tolerance window (e.g., match if amounts are within $0.05 to account for rounding errors).
46
+
47
+ ### 3. Many-to-One Resolution
48
+ - Identify cases where one bank deposit represents three separate invoices in the ledger.
49
+
50
+ ---
51
+
52
+ ## Output Format
53
+
54
+ ### Reconciliation Report Structure
55
+
56
+ **The Results**
57
+ - **Match Rate**: (e.g., 94% matched automatically).
58
+ - **Total Reconciled Value**: $X.
59
+
60
+ **The Exceptions**
61
+ - List of "Unmatched" items from both sources.
62
+ - List of "Ambiguous" matches requiring human sign-off (with confidence scores).
63
+
64
+ **Journal Entry Suggestions**
65
+ - Ready-to-copy entries for bank fees or interest detected in the statement but missing from the ledger.
66
+
67
+ ---
68
+
69
+ ## Scripts
70
+ - [calculate.py](./scripts/calculate.py): Exact, tolerance, and subset-sum matching engine. Run with `python3 scripts/calculate.py` to self-test; import the functions for actual computations.
71
+
72
+ ---
73
+
74
+ ## References
75
+ - [Fuzzy Matching for Finance](./references/fuzzy-logic.md): Jaro-Winkler vs. Levenshtein.
76
+ - [Rec Best Practices](./references/rec-controls.md): Maintaining an audit trail.
77
+
78
+ ---
79
+
80
+ ## Assets
81
+ - [reconciliation-statement-template.md](./assets/reconciliation-statement-template.md): Bank rec statement with outstanding-items detail.
82
+
83
+ ---
84
+
85
+ ## Related Skills
86
+ - **financial-statement-prep**: To ensure the cash balance on the balance sheet is accurate.
87
+ - **audit-checklist**: For auditing the reconciliation process itself.
@@ -0,0 +1,31 @@
1
+ # Bank Reconciliation Statement
2
+
3
+ **Account:** {bank, account no} | **Period:** {month} | **Prepared:** {date} | **Preparer:** AI agent (review required)
4
+
5
+ ## Reconciliation
6
+ | | Amount |
7
+ |---|---|
8
+ | Balance per bank statement, {date} | {x} |
9
+ | Add: deposits in transit | {x} |
10
+ | Less: outstanding cheques/payments | ({x}) |
11
+ | **Adjusted bank balance** | **{x}** |
12
+ | Balance per general ledger, {date} | {x} |
13
+ | Add: bank credits not booked (interest, collections) | {x} |
14
+ | Less: bank debits not booked (charges, returned items) | ({x}) |
15
+ | **Adjusted GL balance** | **{x}** |
16
+
17
+ Difference: {must be 0.00 - if not, list unresolved items below}
18
+
19
+ ## Outstanding Items Detail
20
+ | Type | Date | Ref | Description | Amount | Age (days) |
21
+ |---|---|---|---|---|---|
22
+
23
+ ## Adjusting Journal Entries Required
24
+ | Account | Dr | Cr | Memo |
25
+ |---|---|---|---|
26
+
27
+ ## Exceptions / Unresolved
28
+ {Items needing investigation, with owner and due date. Flag anything > 30 days old.}
29
+
30
+ ---
31
+ *Matching performed with scripts/calculate.py. Reviewed by: ____________ Date: ________*
@@ -0,0 +1,27 @@
1
+ # Fuzzy Matching Logic for Reconciliations
2
+
3
+ ## Matching Tiers (run in order, lock matched items after each pass)
4
+ 1. **Exact**: amount + date + reference all equal.
5
+ 2. **Tolerance**: amount within ±0.5% or fixed threshold (e.g., ₦100/$1 for bank fees), date within ±3 business days, reference exact.
6
+ 3. **Fuzzy reference**: amount within tolerance + string similarity on description/reference ≥ threshold.
7
+ 4. **One-to-many / many-to-many**: subset-sum matching (one GL entry vs. several bank lines, e.g., batched settlements). Cap combination size at 5 to control false positives.
8
+
9
+ ## String Similarity Techniques
10
+ - **Normalize first**: uppercase, strip punctuation/whitespace, remove noise tokens ("PAYMENT", "TRF", "REF"), expand known abbreviations from a maintained alias table.
11
+ - **Levenshtein ratio**: good for typos; threshold ≥ 0.85.
12
+ - **Token-set ratio** (rapidfuzz): robust to word reordering ("ACME LTD INVOICE 123" vs "INV123 ACME LIMITED").
13
+ - **Vendor alias map**: persist confirmed matches into a lookup so the same counterparty never needs fuzzy matching twice.
14
+
15
+ ## Python Sketch
16
+ ```python
17
+ from rapidfuzz import fuzz
18
+ def is_match(a, b, amt_a, amt_b, tol=0.005):
19
+ amt_ok = abs(amt_a - amt_b) <= tol * max(abs(amt_a), abs(amt_b))
20
+ return amt_ok and fuzz.token_set_ratio(a, b) >= 85
21
+ ```
22
+
23
+ ## Guardrails
24
+ - Never auto-match across different currencies without FX conversion at transaction-date rate.
25
+ - Flag fuzzy matches ≥ materiality for human review; auto-clear only below threshold.
26
+ - Log match tier + score on every pairing — auditors will ask.
27
+ - False-positive monitoring: sample 25 auto-matches monthly; > 2 errors → raise thresholds.
@@ -0,0 +1,28 @@
1
+ # Reconciliation Controls and Standards
2
+
3
+ ## Control Attributes of a Complete Reconciliation
4
+ 1. **Preparer and reviewer are different people**; reviewer is senior; both sign and date.
5
+ 2. **Timeliness**: completed within close calendar deadline (typically WD3–WD5).
6
+ 3. **Source independence**: GL balance vs. independent source (bank statement, subledger, custodian statement, counterparty confirmation).
7
+ 4. **Reconciling items**: each item aged, explained, owner-assigned, with clearance date. "Unknown difference" is not an explanation.
8
+ 5. **Materiality threshold** documented; unreconciled residual below threshold still listed, never silently plugged.
9
+
10
+ ## Reconciling Item Categories
11
+ | Category | Example | Action |
12
+ |---|---|---|
13
+ | Timing | Deposit in transit, outstanding check | Self-clears; monitor aging |
14
+ | Error — ours | Transposition, wrong account | Correcting JE this period |
15
+ | Error — theirs | Bank error | Dispute with bank, track to resolution |
16
+ | Unidentified | Unmatched residual | Investigate; escalate if > threshold or > 30 days |
17
+
18
+ ## Aging and Escalation Policy (typical)
19
+ - Items > 30 days: escalate to controller.
20
+ - Items > 60 days: written explanation to CFO.
21
+ - Items > 90 days: mandatory resolution or P&L write-off with approval.
22
+
23
+ ## Red Flags (fraud-relevant)
24
+ - Recurring round-amount reconciling items.
25
+ - The same item re-explained differently across months.
26
+ - Reconciliations done but never reviewed (check reviewer timestamps).
27
+ - Suspense/clearing accounts used as permanent parking.
28
+ - Preparer with sole access to both the GL and the source system (SoD breach).
@@ -0,0 +1,21 @@
1
+ # Worked Example - banking-compliance
2
+
3
+ ## Ask
4
+
5
+ > Our bank has $100M in CET1 capital and $800M in Risk-Weighted Assets. Are we Basel III compliant?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should calculate the CET1 ratio ($100M / $800M = 12.5%). Should compare this to the Basel III minimum (4.5% + buffers). Should conclude the bank is currently compliant. Should provide a Regulatory Compliance Dashboard.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/exposures.csv`:
14
+
15
+ > CET1 capital is $410,000,000 and the countercyclical buffer is 1%. Using the attached exposure file (evals/files/exposures.csv), compute RWA under the standardised approach, the CET1 ratio, and assess compliance against minimum 4.5% + 2.5% conservation + 1% CCyB.
16
+
17
+ Expected: RWA $3,645,000,000; CET1 ratio 11.25% vs requirement 8.0%; surplus 3.25% - compliant.
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: banking-compliance
3
+ description: When the user wants to analyze bank capital adequacy or regulatory compliance (Basel III). Also use when the user mentions "Common Equity Tier 1 (CET1)," "RWA," "Risk-Weighted Assets," "liquidity coverage ratio," "leverage ratio," or "bank stress testing."
4
+ metadata:
5
+ version: 1.0.0
6
+ ---
7
+
8
+ # Banking Regulatory Compliance (Basel III)
9
+
10
+ You are a Bank Risk & Compliance Officer. Your goal is to ensure the bank maintains sufficient capital and liquidity buffers to survive economic shocks.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Capital Components**
15
+ - **Common Equity Tier 1 (CET1)**: Common shares + Retained earnings.
16
+ - **Tier 1 Capital**: CET1 + Additional Tier 1.
17
+ - **Total Capital**: Tier 1 + Tier 2.
18
+
19
+ 2. **Asset Risk Profile**
20
+ - What are the **Risk-Weighted Assets (RWA)**? (e.g., Corporate loans carry higher weight than Govt bonds).
21
+
22
+ 3. **Liquidity Markers**
23
+ - **LCR (Liquidity Coverage Ratio)**: High-quality liquid assets / Net cash outflows over 30 days.
24
+
25
+ ---
26
+
27
+ ## Compliance Framework
28
+
29
+ ### Priority Order
30
+ 1. **CET1 Ratio Calculation** (`CET1 / RWA`).
31
+ 2. **Tier 1 & Total Capital Adequacy**.
32
+ 3. **Liquidity Buffer Review** (LCR & NSFR).
33
+ 4. **Leverage Ratio Assessment** (Tier 1 Capital / Total Exposure).
34
+ 5. **Stress Test Modeling** (Impact of credit defaults on capital ratios).
35
+
36
+ ---
37
+
38
+ ## Technical Compliance Steps
39
+
40
+ ### 1. Risk-Weighting
41
+ - Assign 0% weight to cash/sovereigns.
42
+ - Assign 35-100% to mortgages.
43
+ - Assign 100%+ to corporate loans.
44
+
45
+ ### 2. Capital Buffers
46
+ - Calculate the Capital Conservation Buffer (CCB) and Countercyclical Buffer (CCyB).
47
+
48
+ ---
49
+
50
+ ## Output Format
51
+
52
+ ### Regulatory Compliance Dashboard
53
+
54
+ **Capital Adequacy**
55
+ - **CET1 Ratio**: (Target > 4.5% + Buffers).
56
+ - **Tier 1 Ratio**: (Target > 6.0%).
57
+ - **Total Capital Ratio**: (Target > 8.0%).
58
+
59
+ **Liquidity Position**
60
+ - **LCR**: (Target > 100%).
61
+ - **NSFR**: (Net Stable Funding Ratio).
62
+
63
+ **Compliance Status**
64
+ - Green/Yellow/Red status for each regulatory threshold.
65
+
66
+ ---
67
+
68
+ ## Scripts
69
+ - [calculate.py](./scripts/calculate.py): Deterministic functions for this skill's core computations, kept as reviewable material. This plugin's research role has no shell and the scripts are not part of the installed package, so nothing here runs them: work the ratios from [Basel III Standards](./references/basel-iii-framework.md) and the weight bands in [RWA Classification](./references/risk-weights.md), show each calculation in the answer, and hand anything that needs real compute to the delegated `data_junior`.
70
+
71
+ ---
72
+
73
+ ## References
74
+ - [Basel III Standards](./references/basel-iii-framework.md): The official BIS guidelines.
75
+ - [RWA Classification](./references/risk-weights.md): How to weight different bank assets.
76
+
77
+ ---
78
+
79
+ ## Related Skills
80
+ - **ecl-computation**: Basel III capital is the buffer against ECL losses.
81
+ - **risk-assessment**: For evaluating the market and credit risks driving RWA.
82
+ - **corporate-consolidation**: For group-level capital adequacy reporting.
@@ -0,0 +1,26 @@
1
+ # Basel III: Regulatory Capital Framework
2
+
3
+ The global regulatory framework for bank capital adequacy, stress testing, and market liquidity risk.
4
+
5
+ ## 🏛️ The Three Pillars
6
+
7
+ ### Pillar 1: Minimum Capital Requirements
8
+ - **CET1 Ratio**: Minimum 4.5% of Risk-Weighted Assets (RWA).
9
+ - **Tier 1 Ratio**: Minimum 6.0% of RWA.
10
+ - **Total Capital Ratio**: Minimum 8.0% of RWA.
11
+
12
+ ### Pillar 2: Supervisory Review
13
+ Ensures that banks have adequate internal processes to assess their capital adequacy and that supervisors review these assessments.
14
+
15
+ ### Pillar 3: Market Discipline
16
+ Mandatory disclosure requirements to provide market participants with information about a bank's risk profile and capital adequacy.
17
+
18
+ ---
19
+
20
+ ## 🔍 Key Buffers
21
+ - **Capital Conservation Buffer (CCB)**: An additional 2.5% of CET1 to withstand periods of stress.
22
+ - **Countercyclical Buffer (CCyB)**: Applied during periods of high credit growth to protect the banking sector.
23
+
24
+ ## 🔗 Sources
25
+ - [Bank for International Settlements (BIS): Basel III](https://www.bis.org/bcbs/basel3.htm)
26
+ - [Investopedia: Basel III](https://www.investopedia.com/terms/b/basel-iii.asp)
@@ -0,0 +1,32 @@
1
+ # Basel III Standardized Risk Weights (Credit Risk)
2
+
3
+ ## Common Exposure Classes (Standardized Approach, Basel III final)
4
+ | Exposure | Risk Weight |
5
+ |---|---|
6
+ | Sovereigns AAA to AA- | 0% |
7
+ | Sovereigns A+ to A- | 20% |
8
+ | Sovereigns BB+ to B- | 100% |
9
+ | Banks (external rating A) | 30%–50% (by grade/tenor) |
10
+ | Corporates AAA to AA- | 20% |
11
+ | Corporates A | 50% |
12
+ | Corporates BBB | 75%–100% |
13
+ | Corporates unrated | 100% (85% if SME under some regimes) |
14
+ | Regulatory retail (qualifying) | 75% |
15
+ | Residential mortgage | 20%–70% by LTV band |
16
+ | Commercial real estate | 60%–110% by LTV/repayment dependence |
17
+ | Defaulted exposures | 100%–150% |
18
+ | Equity | 250%–400% |
19
+
20
+ National regulators (e.g., CBN) adapt these — always check the local prudential guideline; CBN applies its own weights for FGN securities and state government exposures.
21
+
22
+ ## Capital Ratios
23
+ - `CET1 ratio = CET1 / RWA ≥ 4.5%` (+ capital conservation buffer 2.5% + D-SIB/G-SIB surcharges + countercyclical buffer).
24
+ - Tier 1 ≥ 6%, Total capital ≥ 8%. CBN minimum CAR: 10% (national), 15% (international authorization).
25
+
26
+ ## Off-Balance Sheet
27
+ `Credit equivalent = Notional × CCF` — direct credit substitutes 100%, performance bonds 50%, self-liquidating trade LCs 20%, unconditionally cancellable commitments 10%.
28
+
29
+ ## Other RWA Components
30
+ - Operational risk: Standardized Measurement Approach (BI component × marginal coefficients × ILM).
31
+ - Market risk: FRTB standardized sensitivities-based method.
32
+ - Output floor: aggregate IRB RWA ≥ 72.5% of standardized.
@@ -0,0 +1,21 @@
1
+ # Worked Example - budget-forecast
2
+
3
+ ## Ask
4
+
5
+ > We need a budget for 2025. Last year revenue was $10M with 15% growth. We want to double our marketing spend to $1M. Can you build a high-level roadmap?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should identify revenue drivers (base revenue + growth rate). Should calculate projected revenue ($11.5M). Should account for fixed vs variable costs. Should discuss the impact of doubling marketing spend on EBITDA. Should provide a structured plan with Executive Summary and Scenario Analysis.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/history_and_drivers.csv`:
14
+
15
+ > From the attached history and drivers (evals/files/history_and_drivers.csv): compute the 2023-2025 revenue CAGR, then build the 2026 driver-based budget (units x price, variable % of revenue, fixed costs) and state budgeted operating income. Sanity-check the implied 2026 growth against the historical CAGR.
16
+
17
+ Expected: CAGR 31.5%; 2026 budget revenue $66,000,000, operating income $11,700,000; implied growth 14.6% vs CAGR 31.5%.
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,87 @@
1
+ ---
2
+ name: budget-forecast
3
+ description: When the user wants to create a budget, forecast future performance, or perform variance analysis. Also use when the user mentions "financial projections," "2025 planning," "burn rate forecast," "revenue modeling," "budget vs actual," "planning for next year," or "financial roadmap." Use this for operational planning and strategic forecasting.
4
+ metadata:
5
+ version: 1.1.0
6
+ ---
7
+
8
+ # Budget Forecasting
9
+
10
+ You are a Financial Planning & Analysis (FP&A) Manager. Your goal is to build accurate, data-driven projections that help the business allocate resources effectively.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Forecasting Horizon**
15
+ - Short-term (monthly), Medium-term (annual), or Long-term (3-5 years)?
16
+ - What is the specific business unit or product line?
17
+
18
+ 2. **Driver Identification**
19
+ - What are the primary revenue drivers? (Units, Price, Retention).
20
+ - What are the primary cost drivers? (Headcount, Marketing, COGS).
21
+
22
+ 3. **Historical Context**
23
+ - Do we have 2-3 years of historical Actuals to build from?
24
+ - Any major expected shifts in strategy or market?
25
+
26
+ ---
27
+
28
+ ## Forecasting Framework
29
+
30
+ ### Priority Order
31
+ 1. **Revenue Modeling** (Top-line growth assumptions).
32
+ 2. **Resource Allocation** (Headcount and OpEx planning).
33
+ 3. **Cash Flow Impact** (Timing of inflows/outflows).
34
+ 4. **Scenario Analysis** (Best, Worst, and Base cases).
35
+ 5. **Variance Tracking** (Setting up the Budget vs. Actual framework).
36
+
37
+ ---
38
+
39
+ ## Technical Modeling Steps
40
+
41
+ ### 1. Revenue Drivers
42
+ - Build a bottom-up model based on sales pipeline, churn rates, and average contract value (ACV).
43
+ - Apply seasonal adjustments based on historical trends.
44
+
45
+ ### 2. Expense Planning
46
+ - **Fixed Costs**: Rent, salaries, depreciation.
47
+ - **Variable Costs**: Commissions, cloud hosting, variable marketing.
48
+
49
+ ### 3. Sensitivity Analysis
50
+ - "What-if" modeling: "If churn increases by 1%, what happens to our end-of-year cash balance?"
51
+
52
+ ---
53
+
54
+ ## Output Format
55
+
56
+ ### Financial Plan Structure
57
+
58
+ **Executive Summary**
59
+ - Key Financial Targets (Revenue, EBITDA, Net Cash Flow).
60
+ - Major assumptions list.
61
+
62
+ **The Projections**
63
+ - Monthly/Quarterly P&L forecast.
64
+ - Personnel/Headcount plan.
65
+ - Capital Expenditure (CapEx) roadmap.
66
+
67
+ **Risk & Scenarios**
68
+ - Scenario matrix (Bull vs. Bear).
69
+ - Sensitivity table for primary drivers.
70
+
71
+ ---
72
+
73
+ ## Scripts
74
+ - [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.
75
+
76
+ ---
77
+
78
+ ## References
79
+ - [Forecasting Best Practices](./references/forecasting-best-practices.md): Evidence-backed modeling standards.
80
+ - [Scenario Analysis Guide](./references/scenario-analysis.md): How to structure what-if models.
81
+
82
+ ---
83
+
84
+ ## Related Skills
85
+ - **financial-analysis**: For auditing the 'Actuals' part of Budget vs. Actual.
86
+ - **risk-assessment**: For evaluating the risks inherent in the forecast assumptions.
87
+ - **investment-analysis**: For using the forecast to value the entity.
@@ -0,0 +1,26 @@
1
+ # Forecasting Best Practices
2
+
3
+ Building accurate financial projections requires a blend of historical data, market insight, and statistical discipline.
4
+
5
+ ## 🏛️ Core Principles
6
+
7
+ ### 1. Driver-Based Modeling
8
+ Identify the "Levers" that control the numbers. Instead of just guessing revenue, model it as:
9
+ `Traffic x Conversion Rate x Average Order Value = Revenue`.
10
+
11
+ ### 2. Rolling Forecasts
12
+ Don't just set a budget once a year. Update the forecast monthly or quarterly as actual data comes in (e.g., 4+8, 9+3 reporting).
13
+
14
+ ### 3. Variance Analysis (BvA)
15
+ Regularly compare Budget vs. Actual. Analyze the **Price Variance** (we sold it for less than expected) and **Volume Variance** (we sold fewer units than expected).
16
+
17
+ ---
18
+
19
+ ## 🔍 Common Pitfalls
20
+ - **Over-Optimism Bias**: Underestimating the time or cost to achieve growth.
21
+ - **Sandbagging**: Intentionally lowering targets to ensure they are beaten.
22
+ - **Ignoring Seasonality**: Assuming a straight-line growth in businesses with holiday peaks.
23
+
24
+ ## 🔗 Sources
25
+ - [CFI: Financial Forecasting Guide](https://corporatefinanceinstitute.com/resources/fp-a/financial-forecasting-guide/)
26
+ - [FP&A Trends: Best Practices in Financial Forecasting](https://fpa-trends.com/)
@@ -0,0 +1,25 @@
1
+ # Scenario Analysis: Modeling the Unknown
2
+
3
+ How to structure "What-If" scenarios to test the resilience of a financial plan.
4
+
5
+ ## 🏛️ Types of Scenarios
6
+
7
+ ### 1. The Base Case
8
+ The most likely outcome based on current trends and management's stated strategy.
9
+
10
+ ### 2. The Bull Case (Upside)
11
+ What happens if everything goes right? (e.g., 2x market growth, successful product launch).
12
+
13
+ ### 3. The Bear Case (Downside)
14
+ What happens if things go wrong? (e.g., major competitor enters, recession, supply chain failure).
15
+
16
+ ---
17
+
18
+ ## 🔍 How to Build a Scenario Matrix
19
+ 1. **Identify Key Variables**: Select the 2-3 variables that have the highest impact on EBITDA (e.g., Sales Volume, Labor Cost).
20
+ 2. **Define Thresholds**: Use +/- 10% or historical worst-case data points.
21
+ 3. **Calculate Outcomes**: Run the model with these inputs to see the impact on cash flow and covenant compliance.
22
+
23
+ ## 🔗 Sources
24
+ - [Investopedia: Scenario Analysis](https://www.investopedia.com/terms/s/scenario_analysis.asp)
25
+ - [Harvard Business Review: Why You Need to Model Multiple Futures](https://hbr.org/2020/07/why-you-need-to-model-multiple-futures)
@@ -0,0 +1,17 @@
1
+ # Worked Example - close-management
2
+
3
+ ## Ask
4
+
5
+ > Our close takes 9 working days. Subledgers close WD2, recs finish WD6 because accruals aren't done until WD4, and consolidation waits for one entity that always locks late. Build us a plan to get to 5 days.
6
+
7
+ ## What a correct response contains
8
+
9
+ Should identify the critical path (accruals -> recs -> entity lock -> consolidation), move predictable accruals pre-close, set intercompany/late-entity deadlines with escalation, and produce a day-by-day close calendar with dependencies.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/close_status_day4.csv`:
14
+
15
+ > It is Day 4 of the close. Assess the attached status (evals/files/close_status_day4.csv): identify the critical path to sign-off, what is late, the blocker to escalate, and a recovery plan that still hits Day 5.
16
+
17
+ Expected: Critical path T-03/T-04 -> T-06 -> T-07. T-03 is 2 days late with no dependency - start immediately. T-04 blocked on SubB - escalate today; if statement not received by EOD, eliminate using SubB's prior balance + accrual and true-up next month. T-06 compresses to Day 5 morning; T-07 Day 5 afternoon.