@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,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.
@@ -0,0 +1,24 @@
1
+ # Accruals and Deferrals
2
+
3
+ ## The Four Period-End Adjustment Types
4
+ | Type | Cash vs. Recognition | Example | Entry |
5
+ |---|---|---|---|
6
+ | Accrued expense | Expense before cash out | Unbilled legal fees | Dr Expense / Cr Accrued Liability |
7
+ | Accrued revenue | Revenue before cash in | Unbilled services delivered | Dr Accrued Receivable / Cr Revenue |
8
+ | Deferred (prepaid) expense | Cash out before expense | Annual insurance premium | Dr Prepaid Asset at payment; amortize Dr Expense / Cr Prepaid |
9
+ | Deferred revenue | Cash in before revenue | Annual SaaS subscription billed upfront | Dr Cash / Cr Deferred Revenue; release Dr Deferred Revenue / Cr Revenue |
10
+
11
+ ## Estimation Standards for Accruals
12
+ - Base on invoices received post-close, PO/GRNI reports, contracts, and run-rates.
13
+ - Document the basis; an accrual without support fails audit.
14
+ - Reverse auto-reversing accruals on day 1 of the next period; true-up against actuals and track accrual accuracy (target: |true-up| < 5% of accrual).
15
+
16
+ ## Cut-Off Rules
17
+ - Goods: recognize when control transfers (shipping terms — FOB shipping point vs. destination).
18
+ - Services: recognize as performed, supported by timesheets/completion evidence.
19
+ - Three-way match exceptions at close → GRNI accrual.
20
+
21
+ ## Red Flags
22
+ - Accruals flat period-over-period (stale, not re-estimated).
23
+ - Deferred revenue declining while billings grow (release schedule error).
24
+ - Round-number accruals with no support.
@@ -0,0 +1,32 @@
1
+ # Cash Flow Statement: Indirect Method
2
+
3
+ ## Structure (IAS 7 / ASC 230)
4
+ 1. **Operating**: Start with net income, add back non-cash items, adjust for working capital deltas.
5
+ 2. **Investing**: Capex, acquisitions, asset disposals, investment purchases/sales.
6
+ 3. **Financing**: Debt draws/repayments, equity issues/buybacks, dividends, lease principal (IFRS 16).
7
+
8
+ ## Operating Section Walk
9
+ ```
10
+ Net Income
11
+ + Depreciation & Amortization
12
+ + Impairment losses
13
+ + Share-based compensation
14
+ +/- Deferred tax expense/(benefit)
15
+ +/- Loss/(gain) on asset disposal
16
+ - Increase in receivables (+ if decrease)
17
+ - Increase in inventory (+ if decrease)
18
+ + Increase in payables (- if decrease)
19
+ + Increase in deferred revenue (- if decrease)
20
+ = Cash Flow from Operations
21
+ ```
22
+
23
+ ## Classification Traps
24
+ - **Interest paid**: Operating under US GAAP; operating OR financing under IFRS (be consistent).
25
+ - **Interest/dividends received**: Operating (US GAAP); operating or investing (IFRS).
26
+ - **Lease payments (IFRS 16)**: Principal → financing; interest → per interest policy.
27
+ - **Capitalized development costs**: Investing, not operating.
28
+
29
+ ## Tie-Out Checks
30
+ 1. Net change in cash = closing cash − opening cash (including FX effect line).
31
+ 2. D&A added back must equal D&A in the fixed asset rollforward.
32
+ 3. Working capital deltas must reconcile to balance sheet movements net of acquisitions/FX (non-cash portions excluded).
@@ -0,0 +1,21 @@
1
+ # Worked Example - tax-efficient-investing
2
+
3
+ ## Ask
4
+
5
+ > I'm in the 24% federal tax bracket, single filer, earning $95,000. I have a 401k at work with a 4% employer match, and I have $10,000 to invest this year. How should I allocate it across account types for maximum tax efficiency?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should first confirm whether the user is capturing the full employer 4% match (free money). Should recommend: (1) contribute enough to 401k to get full match, (2) max Roth IRA ($7,000 for 2024), (3) remaining into 401k or taxable brokerage. Should calculate the tax savings from pre-tax 401k contributions. Should explain Roth vs. traditional trade-off at 24% bracket.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture `evals/files/tax_inputs.csv`:
14
+
15
+ > From the attached tax inputs (evals/files/tax_inputs.csv), calculate the after-tax future value of $10,000 invested in a taxable account vs. a Roth IRA over 25 years at 7% gross return. Quantify the tax drag in dollar terms.
16
+
17
+ Expected: Roth IRA FV $54,274 (no tax drag); Taxable FV $42,415 (15% tax on gains applied annually); tax drag cost $11,859 over 25 years; Roth advantage: 21.8% more wealth.
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,97 @@
1
+ ---
2
+ name: tax-efficient-investing
3
+ description: When the user wants to invest in a tax-efficient way, maximise contributions to tax-advantaged accounts, understand the tax drag on investment returns, compare traditional vs. Roth accounts, or determine the optimal account to hold specific asset classes. Also use when the user mentions "401k vs Roth," "ISA allowance," "tax on investments," "asset location," "tax-loss harvesting," or "after-tax returns."
4
+ metadata:
5
+ version: 1.0.0
6
+ ---
7
+
8
+ # Tax-Efficient Investing
9
+
10
+ You are a Tax-Aware Investment Advisor. Your goal is to help the user legally minimise their tax burden on investments so more of their wealth compounds over time.
11
+
12
+ ## Initial Assessment
13
+
14
+ 1. **Tax Situation**
15
+ - Current marginal income tax rate and capital gains tax rate.
16
+ - Country/jurisdiction (US 401k/IRA/Roth, UK ISA/SIPP, other).
17
+ - Filing status (single, married filing jointly, etc.).
18
+
19
+ 2. **Account Inventory**
20
+ - Existing tax-advantaged accounts and current balances.
21
+ - Annual contribution room remaining.
22
+ - Taxable brokerage accounts and unrealised gains/losses.
23
+
24
+ 3. **Investment Goals**
25
+ - Time horizon and target asset allocation.
26
+ - Expected investment return and income needs.
27
+
28
+ ---
29
+
30
+ ## Tax-Efficiency Framework
31
+
32
+ ### Priority Order (US context — adapt for other jurisdictions)
33
+ 1. **Employer match** — contribute enough to the 401(k) to capture the full match (100% instant return).
34
+ 2. **HSA** (if eligible) — triple tax advantage: deductible contributions, tax-free growth, tax-free withdrawals for medical.
35
+ 3. **Max Roth IRA** — tax-free growth and withdrawals; best for those expecting higher future tax rates.
36
+ 4. **Max 401(k)** — pre-tax contributions reduce current taxable income.
37
+ 5. **Taxable brokerage** — use remaining savings here with tax-efficient funds (index funds, ETFs, municipal bonds).
38
+
39
+ ### Asset Location Strategy
40
+ Place the least tax-efficient assets in tax-advantaged accounts:
41
+ - **In tax-advantaged**: REITs, bonds, high-dividend stocks, actively managed funds.
42
+ - **In taxable**: broad index funds, ETFs, municipal bonds, long-term buy-and-hold equities.
43
+
44
+ ### Tax-Loss Harvesting
45
+ Realise capital losses to offset capital gains, reducing current-year tax liability. Replace with a similar (not substantially identical) fund to maintain exposure.
46
+
47
+ ---
48
+
49
+ ## Technical Concepts
50
+
51
+ ### Tax Drag
52
+ The reduction in annual return caused by taxes on dividends, interest, and realised capital gains.
53
+ `After-Tax Return = Gross Return × (1 − Tax Rate on Gains)`
54
+
55
+ ### Tax-Equivalent Yield
56
+ Converts a tax-free yield into its taxable equivalent for comparison:
57
+ `Tax-Equivalent Yield = Tax-Free Yield / (1 − Marginal Tax Rate)`
58
+
59
+ ### Roth vs. Traditional Break-Even
60
+ Roth is better if future marginal tax rate > current marginal tax rate.
61
+ Traditional is better if future marginal tax rate < current marginal tax rate.
62
+
63
+ ---
64
+
65
+ ## Output Format
66
+
67
+ **Account Priority Plan**
68
+ - Ranked contribution order with dollar amounts for the current tax year.
69
+ - Remaining contribution room per account.
70
+
71
+ **Asset Location Map**
72
+ - Which holdings belong in which account type and why.
73
+
74
+ **Tax Drag Analysis**
75
+ - Estimated annual after-tax return vs. gross return under current structure.
76
+ - Projected 10/20/30-year wealth difference between tax-efficient and tax-inefficient approach.
77
+
78
+ **Action Items**
79
+ - Specific rebalancing or contribution changes to implement.
80
+
81
+ ---
82
+
83
+ ## Scripts
84
+ - [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.
85
+
86
+ ---
87
+
88
+ ## References
89
+ - [Account Types Guide](./references/account-types.md): Overview of US and international tax-advantaged account types, limits, and rules.
90
+ - [Asset Location Research](./references/asset-location.md): Evidence on the value of asset location and tax-loss harvesting strategies.
91
+
92
+ ---
93
+
94
+ ## Related Skills
95
+ - **retirement-planning**: Retirement accounts are the primary tax-efficient vehicle — coordinate contribution strategy.
96
+ - **tax-planning**: Coordinate investment tax strategy with broader income tax planning.
97
+ - **investment-analysis**: Evaluate the after-tax return of specific investment options.
@@ -0,0 +1,33 @@
1
+ # Account Types Guide
2
+
3
+ ## United States
4
+
5
+ ### Tax-Deferred Accounts (Pay tax on withdrawal)
6
+ | Account | Who | 2024 Limit | Key Rule |
7
+ |---|---|---|---|
8
+ | Traditional 401(k) | Employees | $23,000 (+$7,500 catch-up) | RMDs at age 73 |
9
+ | Traditional IRA | Anyone with earned income | $7,000 (+$1,000 catch-up) | Deductibility phases out with 401k |
10
+ | SEP-IRA | Self-employed | 25% of comp, max $69,000 | No catch-up |
11
+ | SIMPLE IRA | Small business | $16,000 (+$3,500 catch-up) | 2-year vesting rule |
12
+
13
+ ### Tax-Free Accounts (Pay tax now, withdraw tax-free)
14
+ | Account | Who | 2024 Limit | Key Rule |
15
+ |---|---|---|---|
16
+ | Roth 401(k) | Employees | Same as 401(k) | No RMDs |
17
+ | Roth IRA | Income limit applies | $7,000 (+$1,000 catch-up) | Phases out at $146k–$161k (single) |
18
+ | HSA | HDHP enrollees | $4,150 individual / $8,300 family | Triple tax advantage |
19
+
20
+ ### Taxable Brokerage
21
+ No contribution limits. Gains taxed at capital gains rates (0%, 15%, or 20% federal depending on income). Qualified dividends also receive preferential rates.
22
+
23
+ ## United Kingdom
24
+ | Account | Annual Allowance | Tax Treatment |
25
+ |---|---|---|
26
+ | ISA | £20,000 | Tax-free growth and withdrawals |
27
+ | SIPP | £60,000 (annual allowance) | Tax-relieved contributions, taxed on withdrawal |
28
+ | Lifetime ISA | £4,000 (25% bonus) | First home or retirement only |
29
+
30
+ ## General Principles (All Jurisdictions)
31
+ 1. Maximise employer-matched accounts first (free money).
32
+ 2. Prefer tax-free over tax-deferred if future tax rate expected to rise.
33
+ 3. Use taxable accounts last, with the most tax-efficient instruments (index ETFs, munis).
@@ -0,0 +1,36 @@
1
+ # Asset Location Research
2
+
3
+ Asset location is the strategy of placing investments in the account type that minimises their tax cost.
4
+
5
+ ## Core Principle
6
+ Different assets generate different types of taxable events:
7
+ - **Interest income** (bonds, CDs): taxed as ordinary income — highest rate.
8
+ - **Dividends**: qualified dividends taxed at capital gains rates; non-qualified at ordinary rates.
9
+ - **Capital gains**: long-term gains taxed at preferential rates (0/15/20%); short-term at ordinary rates.
10
+ - **REIT distributions**: mostly ordinary income — high tax cost.
11
+
12
+ ## Optimal Asset Location
13
+
14
+ | Asset Class | Best Account | Reason |
15
+ |---|---|---|
16
+ | Bonds / Fixed income | Tax-advantaged (traditional) | Interest taxed as ordinary income |
17
+ | REITs | Tax-advantaged | High ordinary income distributions |
18
+ | High-dividend stocks | Tax-advantaged | Avoids annual dividend tax |
19
+ | Actively managed funds | Tax-advantaged | High turnover generates short-term gains |
20
+ | Broad index funds / ETFs | Taxable | Low turnover, qualified dividends, tax-loss harvesting |
21
+ | Municipal bonds | Taxable | Already tax-exempt; wasted in tax-advantaged |
22
+ | International stocks | Taxable | Foreign tax credit only available in taxable accounts |
23
+
24
+ ## Tax-Loss Harvesting
25
+ Selling a position at a loss to realise the loss for tax purposes, then immediately buying a similar (but not "substantially identical") fund to maintain market exposure.
26
+
27
+ **Annual value**: Studies estimate 0.5–1.5% of portfolio value per year in tax alpha for taxable accounts with sufficient volatility and size (Vanguard, 2015).
28
+
29
+ **Wash-sale rule (US)**: Cannot repurchase the same or substantially identical security within 30 days before or after the sale.
30
+
31
+ ## Quantified Value of Asset Location
32
+ Vanguard research (Jaconetti et al., 2018) estimates optimal asset location adds 0–0.75% per year in after-tax returns, depending on tax bracket and asset mix. The benefit is greatest for investors in high tax brackets with significant bond allocations.
33
+
34
+ ## Sources
35
+ - Jaconetti, C., Kinniry, F., & Schlanger, T. (2018). *Vanguard's Principles for Investing Success*.
36
+ - Kitces, M. (2015). *The Asset Location Decision for Optimal After-Tax Returns*. Kitces.com.
@@ -0,0 +1,21 @@
1
+ # Worked Example - tax-planning
2
+
3
+ ## Ask
4
+
5
+ > I'm a freelancer making $150k/year. I'm currently a sole proprietor. Am I paying too much in tax?
6
+
7
+ ## What a correct response contains
8
+
9
+ Should identify the potential benefit of an S-Corp election (to save on self-employment tax). Should discuss common deductions for freelancers. Should emphasize that AI cannot file taxes and a CPA review is required. Should provide a Tax Strategy Report structure with an action plan.
10
+
11
+ ## File-driven variant
12
+
13
+ With fixture(s) `evals/files/income_and_brackets.csv`:
14
+
15
+ > Using the attached bracket schedule and income (evals/files/income_and_brackets.csv): compute total tax, effective rate, and marginal rate. Then quantify the PV benefit of deferring $100,000 of that tax by 3 years at a 10% discount rate.
16
+
17
+ Expected: Tax $308,000; effective 15.4%; marginal 21%; deferral PV benefit $24,869.
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.