@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.
- package/CHANGELOG.md +78 -0
- package/README.md +5 -4
- package/THIRD_PARTY_NOTICES.md +14 -3
- package/capital-config/client.js +4 -4
- package/capital-config/package.json +1 -1
- package/capital-watchlist/package.json +1 -1
- package/chart-ui/package.json +1 -1
- package/lib/agents/selected-skills-provider.js +91 -41
- package/lib/index.js +3 -2
- package/lib/web-retriever/local-fetch.d.ts +1 -1
- package/lib/web-retriever/local-fetch.js +1 -1
- package/lib/web-retriever/wind-client.d.ts +1 -1
- package/lib/web-retriever/wind-client.js +1 -1
- package/package.json +2 -1
- package/selected-skills/README.md +3 -1
- package/selected-skills/catalog.js +155 -0
- package/selected-skills/financeskills/LICENSE +21 -0
- package/selected-skills/financeskills/UPSTREAM.md +202 -0
- package/selected-skills/financeskills/skills/ai-anomaly-detection/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/ai-anomaly-detection/SKILL.md +84 -0
- package/selected-skills/financeskills/skills/ai-anomaly-detection/references/feature-engineering.md +20 -0
- package/selected-skills/financeskills/skills/ai-anomaly-detection/references/ml-algorithms.md +28 -0
- package/selected-skills/financeskills/skills/aro-computation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/aro-computation/SKILL.md +82 -0
- package/selected-skills/financeskills/skills/aro-computation/references/aro-standards.md +22 -0
- package/selected-skills/financeskills/skills/aro-computation/references/pv-math.md +27 -0
- package/selected-skills/financeskills/skills/audit-checklist/EXAMPLE.md +17 -0
- package/selected-skills/financeskills/skills/audit-checklist/SKILL.md +77 -0
- package/selected-skills/financeskills/skills/audit-checklist/references/internal-controls.md +36 -0
- package/selected-skills/financeskills/skills/audit-checklist/references/isa-standards.md +26 -0
- package/selected-skills/financeskills/skills/automated-reconciliation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/automated-reconciliation/SKILL.md +87 -0
- package/selected-skills/financeskills/skills/automated-reconciliation/assets/reconciliation-statement-template.md +31 -0
- package/selected-skills/financeskills/skills/automated-reconciliation/references/fuzzy-logic.md +27 -0
- package/selected-skills/financeskills/skills/automated-reconciliation/references/rec-controls.md +28 -0
- package/selected-skills/financeskills/skills/banking-compliance/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/banking-compliance/SKILL.md +82 -0
- package/selected-skills/financeskills/skills/banking-compliance/references/basel-iii-framework.md +26 -0
- package/selected-skills/financeskills/skills/banking-compliance/references/risk-weights.md +32 -0
- package/selected-skills/financeskills/skills/budget-forecast/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/budget-forecast/SKILL.md +87 -0
- package/selected-skills/financeskills/skills/budget-forecast/references/forecasting-best-practices.md +26 -0
- package/selected-skills/financeskills/skills/budget-forecast/references/scenario-analysis.md +25 -0
- package/selected-skills/financeskills/skills/close-management/EXAMPLE.md +17 -0
- package/selected-skills/financeskills/skills/close-management/SKILL.md +85 -0
- package/selected-skills/financeskills/skills/close-management/references/close-task-library.md +32 -0
- package/selected-skills/financeskills/skills/company-valuation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/company-valuation/SKILL.md +80 -0
- package/selected-skills/financeskills/skills/company-valuation/references/terminal-value-guide.md +33 -0
- package/selected-skills/financeskills/skills/corporate-consolidation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/corporate-consolidation/SKILL.md +84 -0
- package/selected-skills/financeskills/skills/corporate-consolidation/references/consolidation-standard.md +28 -0
- package/selected-skills/financeskills/skills/corporate-consolidation/references/minority-interest.md +25 -0
- package/selected-skills/financeskills/skills/credit-analysis/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/credit-analysis/SKILL.md +84 -0
- package/selected-skills/financeskills/skills/credit-analysis/references/covenant-guide.md +26 -0
- package/selected-skills/financeskills/skills/crypto-accounting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/crypto-accounting/SKILL.md +81 -0
- package/selected-skills/financeskills/skills/crypto-accounting/references/fasb-crypto.md +26 -0
- package/selected-skills/financeskills/skills/crypto-accounting/references/ifrs-crypto.md +25 -0
- package/selected-skills/financeskills/skills/cvp-breakeven/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/cvp-breakeven/SKILL.md +78 -0
- package/selected-skills/financeskills/skills/cvp-breakeven/references/cvp-patterns.md +28 -0
- package/selected-skills/financeskills/skills/debt-payoff/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/debt-payoff/SKILL.md +94 -0
- package/selected-skills/financeskills/skills/debt-payoff/references/debt-strategies.md +32 -0
- package/selected-skills/financeskills/skills/debt-payoff/references/interest-calculations.md +27 -0
- package/selected-skills/financeskills/skills/debt-restructuring/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/debt-restructuring/SKILL.md +79 -0
- package/selected-skills/financeskills/skills/debt-restructuring/references/creditor-priority.md +26 -0
- package/selected-skills/financeskills/skills/debt-restructuring/references/restructuring-types.md +24 -0
- package/selected-skills/financeskills/skills/deferred-tax/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/deferred-tax/SKILL.md +86 -0
- package/selected-skills/financeskills/skills/deferred-tax/references/td-catalogue.md +39 -0
- package/selected-skills/financeskills/skills/earned-value-mgmt/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/earned-value-mgmt/SKILL.md +79 -0
- package/selected-skills/financeskills/skills/earned-value-mgmt/references/forecasting-eac.md +27 -0
- package/selected-skills/financeskills/skills/earned-value-mgmt/references/pmi-evm.md +29 -0
- package/selected-skills/financeskills/skills/ecl-computation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/ecl-computation/SKILL.md +85 -0
- package/selected-skills/financeskills/skills/ecl-computation/references/ifrs9-standard.md +27 -0
- package/selected-skills/financeskills/skills/ecl-computation/references/risk-modeling.md +26 -0
- package/selected-skills/financeskills/skills/esg-reporting/EXAMPLE.md +17 -0
- package/selected-skills/financeskills/skills/esg-reporting/SKILL.md +79 -0
- package/selected-skills/financeskills/skills/esg-reporting/references/ghg-protocol.md +22 -0
- package/selected-skills/financeskills/skills/esg-reporting/references/sasb-map.md +25 -0
- package/selected-skills/financeskills/skills/financial-analysis/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/financial-analysis/SKILL.md +108 -0
- package/selected-skills/financeskills/skills/financial-analysis/assets/analysis-memo-template.md +31 -0
- package/selected-skills/financeskills/skills/financial-analysis/references/accounting-standards.md +45 -0
- package/selected-skills/financeskills/skills/financial-analysis/references/ratio-definitions.md +14 -0
- package/selected-skills/financeskills/skills/fixed-asset-accounting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/fixed-asset-accounting/SKILL.md +78 -0
- package/selected-skills/financeskills/skills/fixed-asset-accounting/references/useful-life-guide.md +30 -0
- package/selected-skills/financeskills/skills/forensic-accounting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/forensic-accounting/SKILL.md +91 -0
- package/selected-skills/financeskills/skills/forensic-accounting/references/benfords-law.md +24 -0
- package/selected-skills/financeskills/skills/forensic-accounting/references/fraud-triangle.md +26 -0
- package/selected-skills/financeskills/skills/insurance-reserving/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/insurance-reserving/SKILL.md +82 -0
- package/selected-skills/financeskills/skills/insurance-reserving/references/actuarial-methods.md +33 -0
- package/selected-skills/financeskills/skills/insurance-reserving/references/insurance-metrics.md +26 -0
- package/selected-skills/financeskills/skills/intercompany-accounting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/intercompany-accounting/SKILL.md +79 -0
- package/selected-skills/financeskills/skills/intercompany-accounting/references/elimination-entries.md +35 -0
- package/selected-skills/financeskills/skills/inventory-costing/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/inventory-costing/SKILL.md +80 -0
- package/selected-skills/financeskills/skills/inventory-costing/references/costing-examples.md +31 -0
- package/selected-skills/financeskills/skills/investment-analysis/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/investment-analysis/SKILL.md +82 -0
- package/selected-skills/financeskills/skills/investment-analysis/references/competitive-advantage.md +31 -0
- package/selected-skills/financeskills/skills/investment-analysis/references/valuation-guide.md +29 -0
- package/selected-skills/financeskills/skills/journal-entry/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/journal-entry/SKILL.md +94 -0
- package/selected-skills/financeskills/skills/journal-entry/assets/journal-entry-template.md +21 -0
- package/selected-skills/financeskills/skills/journal-entry/references/entry-patterns.md +51 -0
- package/selected-skills/financeskills/skills/lbo-modeling/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/lbo-modeling/SKILL.md +88 -0
- package/selected-skills/financeskills/skills/lbo-modeling/references/debt-structures.md +22 -0
- package/selected-skills/financeskills/skills/lbo-modeling/references/lbo-best-practices.md +27 -0
- package/selected-skills/financeskills/skills/lease-accounting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/lease-accounting/SKILL.md +88 -0
- package/selected-skills/financeskills/skills/lease-accounting/assets/commencement-summary-template.md +28 -0
- package/selected-skills/financeskills/skills/lease-accounting/references/ibr-guide.md +26 -0
- package/selected-skills/financeskills/skills/net-worth-tracker/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/net-worth-tracker/SKILL.md +98 -0
- package/selected-skills/financeskills/skills/net-worth-tracker/references/asset-valuation.md +40 -0
- package/selected-skills/financeskills/skills/net-worth-tracker/references/net-worth-benchmarks.md +33 -0
- package/selected-skills/financeskills/skills/nlp-earnings-sentiment/EXAMPLE.md +17 -0
- package/selected-skills/financeskills/skills/nlp-earnings-sentiment/SKILL.md +77 -0
- package/selected-skills/financeskills/skills/nlp-earnings-sentiment/references/finbert-guide.md +26 -0
- package/selected-skills/financeskills/skills/nlp-earnings-sentiment/references/linguistic-finance.md +23 -0
- package/selected-skills/financeskills/skills/oil-gas-valuation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/oil-gas-valuation/SKILL.md +86 -0
- package/selected-skills/financeskills/skills/oil-gas-valuation/references/sec-reporting.md +22 -0
- package/selected-skills/financeskills/skills/oil-gas-valuation/references/spe-standards.md +25 -0
- package/selected-skills/financeskills/skills/personal-budgeting/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/personal-budgeting/SKILL.md +100 -0
- package/selected-skills/financeskills/skills/personal-budgeting/references/budgeting-methods.md +40 -0
- package/selected-skills/financeskills/skills/personal-budgeting/references/spending-categories.md +40 -0
- package/selected-skills/financeskills/skills/predictive-burn-rate/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/predictive-burn-rate/SKILL.md +82 -0
- package/selected-skills/financeskills/skills/predictive-burn-rate/references/startup-metrics.md +27 -0
- package/selected-skills/financeskills/skills/predictive-burn-rate/references/time-series-forecasting.md +22 -0
- package/selected-skills/financeskills/skills/product-profitability/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/product-profitability/SKILL.md +83 -0
- package/selected-skills/financeskills/skills/product-profitability/references/allocation-logic.md +28 -0
- package/selected-skills/financeskills/skills/product-profitability/references/unit-economics.md +30 -0
- package/selected-skills/financeskills/skills/retirement-planning/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/retirement-planning/SKILL.md +98 -0
- package/selected-skills/financeskills/skills/retirement-planning/references/compound-growth.md +38 -0
- package/selected-skills/financeskills/skills/retirement-planning/references/retirement-fundamentals.md +29 -0
- package/selected-skills/financeskills/skills/revenue-recognition/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/revenue-recognition/SKILL.md +86 -0
- package/selected-skills/financeskills/skills/revenue-recognition/assets/allocation-workpaper-template.md +30 -0
- package/selected-skills/financeskills/skills/revenue-recognition/references/ifrs15-guide.md +28 -0
- package/selected-skills/financeskills/skills/revenue-recognition/references/saas-rev-rec.md +26 -0
- package/selected-skills/financeskills/skills/risk-assessment/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/risk-assessment/SKILL.md +83 -0
- package/selected-skills/financeskills/skills/risk-assessment/references/hedging-guide.md +24 -0
- package/selected-skills/financeskills/skills/risk-assessment/references/risk-metrics.md +24 -0
- package/selected-skills/financeskills/skills/sox-compliance/EXAMPLE.md +17 -0
- package/selected-skills/financeskills/skills/sox-compliance/SKILL.md +88 -0
- package/selected-skills/financeskills/skills/sox-compliance/references/sampling-methodology.md +27 -0
- package/selected-skills/financeskills/skills/startup-valuation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/startup-valuation/SKILL.md +88 -0
- package/selected-skills/financeskills/skills/startup-valuation/references/berkus-method.md +25 -0
- package/selected-skills/financeskills/skills/startup-valuation/references/vc-method.md +23 -0
- package/selected-skills/financeskills/skills/statement-preparation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/statement-preparation/SKILL.md +86 -0
- package/selected-skills/financeskills/skills/statement-preparation/references/accruals-deferrals.md +24 -0
- package/selected-skills/financeskills/skills/statement-preparation/references/cash-flow-method.md +32 -0
- package/selected-skills/financeskills/skills/tax-efficient-investing/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/tax-efficient-investing/SKILL.md +97 -0
- package/selected-skills/financeskills/skills/tax-efficient-investing/references/account-types.md +33 -0
- package/selected-skills/financeskills/skills/tax-efficient-investing/references/asset-location.md +36 -0
- package/selected-skills/financeskills/skills/tax-planning/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/tax-planning/SKILL.md +93 -0
- package/selected-skills/financeskills/skills/tax-planning/references/common-deductions.md +28 -0
- package/selected-skills/financeskills/skills/tax-planning/references/tax-code-lookup.md +25 -0
- package/selected-skills/financeskills/skills/three-statement-modeling/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/three-statement-modeling/SKILL.md +84 -0
- package/selected-skills/financeskills/skills/three-statement-modeling/references/model-checks.md +32 -0
- package/selected-skills/financeskills/skills/treasury-management/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/treasury-management/SKILL.md +83 -0
- package/selected-skills/financeskills/skills/treasury-management/references/fx-hedging.md +27 -0
- package/selected-skills/financeskills/skills/treasury-management/references/liquidity-metrics.md +24 -0
- package/selected-skills/financeskills/skills/variance-analysis/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/variance-analysis/SKILL.md +78 -0
- package/selected-skills/financeskills/skills/variance-analysis/references/overhead-logic.md +24 -0
- package/selected-skills/financeskills/skills/variance-analysis/references/variance-math.md +35 -0
- package/selected-skills/financeskills/skills/venture-debt/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/venture-debt/SKILL.md +84 -0
- package/selected-skills/financeskills/skills/venture-debt/references/saas-debt-metrics.md +26 -0
- package/selected-skills/financeskills/skills/venture-debt/references/venture-lending.md +23 -0
- package/selected-skills/financeskills/skills/wacc-computation/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/wacc-computation/SKILL.md +98 -0
- package/selected-skills/financeskills/skills/wacc-computation/assets/wacc-memo-template.md +40 -0
- package/selected-skills/financeskills/skills/wacc-computation/references/beta-math.md +24 -0
- package/selected-skills/financeskills/skills/wacc-computation/references/capm-basics.md +24 -0
- package/selected-skills/financeskills/skills/working-capital-analysis/EXAMPLE.md +21 -0
- package/selected-skills/financeskills/skills/working-capital-analysis/SKILL.md +83 -0
- package/selected-skills/financeskills/skills/working-capital-analysis/references/wc-metrics.md +30 -0
package/selected-skills/financeskills/skills/financial-analysis/assets/analysis-memo-template.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Financial Analysis Memo
|
|
2
|
+
|
|
3
|
+
**Entity:** {entity} | **Period:** {period} | **Prepared:** {date} | **Currency:** {ccy}
|
|
4
|
+
|
|
5
|
+
## Executive Summary
|
|
6
|
+
{2-4 sentences: overall health, the one number that matters most, the key risk.}
|
|
7
|
+
|
|
8
|
+
## Ratio Dashboard
|
|
9
|
+
| Category | Metric | {prior} | {current} | Trend | Benchmark |
|
|
10
|
+
|---|---|---|---|---|---|
|
|
11
|
+
| Liquidity | Current ratio | | | | |
|
|
12
|
+
| Liquidity | Quick ratio | | | | |
|
|
13
|
+
| Profitability | Gross margin | | | | |
|
|
14
|
+
| Profitability | Net margin | | | | |
|
|
15
|
+
| Profitability | ROE (avg equity) | | | | |
|
|
16
|
+
| Efficiency | DSO / DIO / DPO | | | | |
|
|
17
|
+
| Leverage | Debt / Equity | | | | |
|
|
18
|
+
| Coverage | Interest coverage | | | | |
|
|
19
|
+
|
|
20
|
+
## Key Findings
|
|
21
|
+
1. {Finding - quantified, with cause}
|
|
22
|
+
2. {Finding}
|
|
23
|
+
|
|
24
|
+
## Red Flags
|
|
25
|
+
- {Anything deteriorating faster than revenue, covenant proximity, quality-of-earnings issues}
|
|
26
|
+
|
|
27
|
+
## Recommended Actions
|
|
28
|
+
1. {Action - owner - timeframe}
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
*Calculations verified by code ({script reference}). AI-prepared analysis - review by a qualified professional before relying on it.*
|
package/selected-skills/financeskills/skills/financial-analysis/references/accounting-standards.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Accounting Standards: IFRS vs US GAAP
|
|
2
|
+
|
|
3
|
+
Detailed comparison of the two primary financial reporting frameworks. Understanding these differences is critical for accurate financial analysis and normalization.
|
|
4
|
+
|
|
5
|
+
## 🏛️ Framework Overview
|
|
6
|
+
|
|
7
|
+
### IFRS (International Financial Reporting Standards)
|
|
8
|
+
- **Governance**: International Accounting Standards Board (IASB).
|
|
9
|
+
- **Usage**: Used in 140+ countries (EU, Canada, Australia, most of Africa).
|
|
10
|
+
- **Philosophy**: Principles-based. Focuses on the "substance over form" of a transaction.
|
|
11
|
+
|
|
12
|
+
### US GAAP (Generally Accepted Accounting Principles)
|
|
13
|
+
- **Governance**: Financial Accounting Standards Board (FASB).
|
|
14
|
+
- **Usage**: Mandatory for all US public companies.
|
|
15
|
+
- **Philosophy**: Rules-based. Highly detailed with specific guidance for various industries.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 🔍 Key Differences
|
|
20
|
+
|
|
21
|
+
### 1. Inventory Valuation
|
|
22
|
+
- **IFRS**: LIFO (Last-In-First-Out) is prohibited. Only FIFO and Weighted Average are allowed.
|
|
23
|
+
- **GAAP**: LIFO is allowed and commonly used for tax benefits.
|
|
24
|
+
- **Impact**: Using LIFO in a period of rising prices results in higher COGS and lower net income compared to FIFO.
|
|
25
|
+
|
|
26
|
+
### 2. Revaluation of Assets
|
|
27
|
+
- **IFRS**: Allows the revaluation of assets (PPE, Intangibles) to fair value if it can be measured reliably.
|
|
28
|
+
- **GAAP**: Revaluation is generally prohibited (assets are carried at historical cost).
|
|
29
|
+
|
|
30
|
+
### 3. Development Costs
|
|
31
|
+
- **IFRS**: Development costs can be capitalized if certain criteria are met (future economic benefit).
|
|
32
|
+
- **GAAP**: Development costs are generally expensed as incurred (except for certain software development costs).
|
|
33
|
+
|
|
34
|
+
### 4. Statement of Cash Flows
|
|
35
|
+
- **Interest Paid**:
|
|
36
|
+
- IFRS: Can be Operating or Financing.
|
|
37
|
+
- GAAP: Must be Operating.
|
|
38
|
+
- **Dividends Received**:
|
|
39
|
+
- IFRS: Can be Operating or Investing.
|
|
40
|
+
- GAAP: Must be Operating.
|
|
41
|
+
|
|
42
|
+
## 🔗 Sources
|
|
43
|
+
- [IASB Official Standards](https://www.ifrs.org/issued-standards/)
|
|
44
|
+
- [FASB Official Guidance](https://www.fasb.org/standards/)
|
|
45
|
+
- [PwC: IFRS and US GAAP: Similarities and Differences](https://www.pwc.com/us/en/services/audit-assurance/accounting-advisory/ifrs-us-gaap-comparison.html)
|
package/selected-skills/financeskills/skills/financial-analysis/references/ratio-definitions.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Financial Ratio Definitions
|
|
2
|
+
|
|
3
|
+
### Liquidity Ratios
|
|
4
|
+
- **Current Ratio**: Current Assets / Current Liabilities. Measures ability to pay short-term obligations.
|
|
5
|
+
- **Quick Ratio**: (Current Assets - Inventory) / Current Liabilities. A more stringent liquidity test.
|
|
6
|
+
|
|
7
|
+
### Profitability Ratios
|
|
8
|
+
- **Gross Margin**: (Revenue - COGS) / Revenue. Percentage of revenue exceeding cost of goods sold.
|
|
9
|
+
- **Net Margin**: Net Income / Revenue. The "bottom line" profitability.
|
|
10
|
+
- **ROE (Return on Equity)**: Net Income / Shareholders' Equity. How effectively management uses equity to generate profit.
|
|
11
|
+
|
|
12
|
+
### Solvency Ratios
|
|
13
|
+
- **Debt-to-Equity**: Total Liabilities / Shareholders' Equity. The company's financial leverage.
|
|
14
|
+
- **Interest Coverage**: EBIT / Interest Expense. Ability to pay interest on outstanding debt.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Worked Example - fixed-asset-accounting
|
|
2
|
+
|
|
3
|
+
## Ask
|
|
4
|
+
|
|
5
|
+
> We bought a generator: invoice 12,000,000 NGN, delivery 400,000, installation 600,000, staff training 250,000, 10-year life, 1,000,000 residual, straight-line. What do we capitalize and what's annual depreciation?
|
|
6
|
+
|
|
7
|
+
## What a correct response contains
|
|
8
|
+
|
|
9
|
+
Capitalize 13,000,000 (invoice + delivery + installation); expense training 250,000. Annual depreciation = (13,000,000 - 1,000,000)/10 = 1,200,000.
|
|
10
|
+
|
|
11
|
+
## File-driven variant
|
|
12
|
+
|
|
13
|
+
With fixture(s) `evals/files/asset_register.xlsx`:
|
|
14
|
+
|
|
15
|
+
> Compute year-1 depreciation for each asset in the attached register (evals/files/asset_register.xlsx) using the stated method, and total the charge. The mould has a 200,000-unit life and produced 35,000 units this year.
|
|
16
|
+
|
|
17
|
+
Expected: Press $20,000 (SL); trucks $40,000 (DDB y1); mould $17,500 (UoP); total $77,500.
|
|
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,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fixed-asset-accounting
|
|
3
|
+
description: When the user wants to account for property, plant and equipment or intangibles — capitalization, depreciation, disposals, impairment, or the fixed asset register. Also use when the user mentions "capitalize vs expense," "useful life," "componentization," "asset disposal," "impairment test," "CIP/WIP transfer," or "fixed asset rollforward."
|
|
4
|
+
metadata:
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Fixed Asset Accounting (IAS 16 / IAS 36 / ASC 360)
|
|
9
|
+
|
|
10
|
+
You are a Fixed Assets Accountant. Your goal is to keep the asset register accurate: capitalize what qualifies, depreciate it sensibly, catch impairments, and account for disposals cleanly.
|
|
11
|
+
|
|
12
|
+
## Initial Assessment
|
|
13
|
+
|
|
14
|
+
1. **Transaction Type**
|
|
15
|
+
- Acquisition, self-construction (CIP), subsequent expenditure, disposal/retirement, impairment indicator, or register maintenance.
|
|
16
|
+
|
|
17
|
+
2. **Policy Inputs**
|
|
18
|
+
- Capitalization threshold, useful life table by asset class, residual value conventions, depreciation methods, componentization policy.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Accounting Framework
|
|
23
|
+
|
|
24
|
+
### Capitalization Decision
|
|
25
|
+
Capitalize: purchase price + directly attributable costs to bring the asset to working condition (delivery, installation, testing net of sample proceeds rules, professional fees, irrecoverable taxes) + initial restoration estimate (aro-computation). Borrowing costs on qualifying assets (IAS 23).
|
|
26
|
+
Expense: training, relocation, admin overhead, abnormal waste, repairs/maintenance. Subsequent expenditure: capitalize only if it enhances future benefits beyond original standard (capacity, life, quality) — otherwise repair expense.
|
|
27
|
+
|
|
28
|
+
### Depreciation
|
|
29
|
+
- Methods: straight-line `(cost − residual)/life`, reducing balance, units of production (E&P, mining equipment).
|
|
30
|
+
- Start when AVAILABLE for use (not when used); stop at derecognition or held-for-sale.
|
|
31
|
+
- **Componentization (IAS 16)**: depreciate significant parts separately (aircraft engines vs. frame; plant turnarounds; building roof/lifts/shell).
|
|
32
|
+
- Annual review of life, residual, method = change in ESTIMATE (prospective, never restate).
|
|
33
|
+
|
|
34
|
+
### Impairment (IAS 36)
|
|
35
|
+
Indicators (external: market decline, rates, obsolescence; internal: damage, idle, restructuring, underperformance) → test: `Recoverable amount = max(fair value − costs of disposal, value in use)`; impair carrying amount down to it. CGU level if no standalone cash flows. Reversals allowed under IFRS (not goodwill, not US GAAP).
|
|
36
|
+
|
|
37
|
+
### Disposal
|
|
38
|
+
`Gain/(loss) = proceeds − carrying amount`; derecognize cost AND accumulated depreciation. Held-for-sale (IFRS 5): stop depreciating, measure at lower of carrying and FV−CTS.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Technical Analysis Steps
|
|
43
|
+
|
|
44
|
+
1. **Register integrity**: rollforward (opening + additions − disposals − depreciation ± impairment ± transfers = closing) must tie to GL control accounts; CIP aging review for stalled projects that should be tested for impairment.
|
|
45
|
+
2. **Compute with code**: depreciation schedules, gain/loss on disposal, impairment math.
|
|
46
|
+
3. **Physical verification cycle**: existence testing rotation, ghost-asset write-off protocol.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Output Format
|
|
51
|
+
|
|
52
|
+
### Fixed Asset Memo / Schedule
|
|
53
|
+
|
|
54
|
+
**Conclusion**: capitalize/expense decision or disposal/impairment outcome with standard reference.
|
|
55
|
+
|
|
56
|
+
**Computation**: depreciation schedule or gain/loss calculation.
|
|
57
|
+
|
|
58
|
+
**Entries**: full journal entries (journal-entry format).
|
|
59
|
+
|
|
60
|
+
**Register Impact**: rollforward line movement.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Scripts
|
|
65
|
+
- [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.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## References
|
|
70
|
+
- [Useful Life Benchmarks](./references/useful-life-guide.md): Typical lives, componentization and policy guidance by asset class.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Related Skills
|
|
75
|
+
- **aro-computation**: Restoration cost capitalized into the asset.
|
|
76
|
+
- **journal-entry**: For the entries this skill produces.
|
|
77
|
+
- **deferred-tax**: Tax-vs-book depreciation creates temporary differences.
|
|
78
|
+
- **lease-accounting**: ROU assets follow similar depreciation logic.
|
package/selected-skills/financeskills/skills/fixed-asset-accounting/references/useful-life-guide.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Useful Life Benchmarks and Policy Guidance
|
|
2
|
+
|
|
3
|
+
## Typical Useful Lives (calibrate to entity experience — these are starting points)
|
|
4
|
+
| Asset Class | Life (years) | Method Notes |
|
|
5
|
+
|---|---|---|
|
|
6
|
+
| Buildings — shell | 30–50 | Straight-line; componentize |
|
|
7
|
+
| Buildings — roof, HVAC, lifts | 10–20 | Separate components |
|
|
8
|
+
| Leasehold improvements | Shorter of life and lease term | Include reasonably certain renewals only |
|
|
9
|
+
| Plant & machinery (general) | 8–15 | SL or UoP if usage-driven wear |
|
|
10
|
+
| Oil & gas production facilities | Field life | Units of production on proved developed reserves |
|
|
11
|
+
| Pipelines | 20–40 | SL; integrity-driven component reviews |
|
|
12
|
+
| Motor vehicles | 4–6 | Residual values meaningful — set and review |
|
|
13
|
+
| IT hardware | 3–5 | Zero residual typical |
|
|
14
|
+
| Servers/network infra | 4–6 | Hyperscalers have stretched to 6 — follow entity evidence |
|
|
15
|
+
| Office furniture & fittings | 5–10 | — |
|
|
16
|
+
| Software (purchased/internally developed) | 3–7 | Amortize from go-live; cloud config costs usually EXPENSED (SaaS arrangements — IFRIC agenda decision) |
|
|
17
|
+
|
|
18
|
+
## Componentization Triggers
|
|
19
|
+
Component is "significant" if its cost is a meaningful share (rule of thumb ≥ 10–20%) of the asset AND its life differs materially. Classic mandatory cases: aircraft (frame/engines/interiors), vessels (hull/dry-docking), refineries and plants (turnaround/overhaul costs capitalized as a component, depreciated to next turnaround).
|
|
20
|
+
|
|
21
|
+
## Residual Values
|
|
22
|
+
Use only with credible disposal markets (vehicles, aircraft, some plant). Review annually; residual ≥ carrying amount → depreciation stops. Document the evidence (auction data, dealer quotes).
|
|
23
|
+
|
|
24
|
+
## Estimate Change Mechanics (prospective)
|
|
25
|
+
New annual depreciation = (carrying amount − revised residual) / remaining revised life, from the date of change. No restatement, but disclose if material.
|
|
26
|
+
|
|
27
|
+
## Register Hygiene Rules
|
|
28
|
+
- CIP > 12 months without spend movement → investigate, impairment-test, or write off.
|
|
29
|
+
- Fully depreciated assets still in use → flag for life-policy recalibration (chronic pattern = lives too short, distorting margins).
|
|
30
|
+
- Ghost assets: physical verification on rotation (high-value annually, full population over 2–3 years); write-offs need approval and root-cause (theft? records?).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Worked Example - forensic-accounting
|
|
2
|
+
|
|
3
|
+
## Ask
|
|
4
|
+
|
|
5
|
+
> Our petty cash is missing $5,000 over the last 3 months. Only the office manager has the key. Can you investigate?
|
|
6
|
+
|
|
7
|
+
## What a correct response contains
|
|
8
|
+
|
|
9
|
+
Should recognize this as a potential asset misappropriation investigation. Should ask for the petty cash log and bank withdrawal records. Should recommend a reconciliation of physical cash vs log. Should suggest checking for 'top-up' patterns. Should provide a structured Forensic Report structure with Evidence Chain and Control Recommendations.
|
|
10
|
+
|
|
11
|
+
## File-driven variant
|
|
12
|
+
|
|
13
|
+
With fixture(s) `evals/files/disbursements.csv`:
|
|
14
|
+
|
|
15
|
+
> Run a Benford first-digit analysis on the attached disbursements (evals/files/disbursements.csv) - overall AND segmented by the 'segment' column. Report chi-square per segment against the 15.507 critical value and identify which population deviates.
|
|
16
|
+
|
|
17
|
+
Expected: Operations chi2 16 (conforms); Procurement-VendorX chi2 544 (strong deviation - first digits cluster 4-8); overall chi2 217. Flags VendorX for follow-up, noting deviation is an indicator not proof.
|
|
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,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: forensic-accounting
|
|
3
|
+
description: When the user wants to investigate financial discrepancies, fraud, or hidden assets. Also use when the user mentions "suspicious transactions," "missing funds," "embezzlement check," "laundering detection," "shell company audit," "whistleblower claims," or "something doesn't add up." Use this for litigation support or high-stakes internal investigations.
|
|
4
|
+
metadata:
|
|
5
|
+
version: 1.1.0
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Forensic Accounting
|
|
9
|
+
|
|
10
|
+
You are a Forensic Accountant and Certified Fraud Examiner (CFE). Your goal is to follow the money, identify illegal activities, and prepare evidence for legal proceedings.
|
|
11
|
+
|
|
12
|
+
## Initial Assessment
|
|
13
|
+
|
|
14
|
+
1. **Investigation Context**
|
|
15
|
+
- Is this for a legal case (litigation)?
|
|
16
|
+
- What is the specific suspicion (e.g., asset misappropriation, financial statement fraud)?
|
|
17
|
+
- What is the time period in question?
|
|
18
|
+
|
|
19
|
+
2. **Access & Confidentiality**
|
|
20
|
+
- Do we have access to bank statements, emails, and ERP logs?
|
|
21
|
+
- Who is authorized to see the findings? (Privileged vs. Non-privileged).
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Investigation Framework
|
|
26
|
+
|
|
27
|
+
### Evidence Detection Limitation
|
|
28
|
+
|
|
29
|
+
**No retrieval path in this plugin — delegated or otherwise — reaches secure banking portals, private ERP environments or any corporate system.** Ledger detail, bank statements and vendor masters have to arrive from the user: pasted figures, an export the user supplies, or a filed document the host retrieval channel can read.
|
|
30
|
+
Forensic evidence must be provided as static files (CSV exports, PDF statements) rather than assumed reachable. Do not claim to "verify" transactions without raw source data.
|
|
31
|
+
|
|
32
|
+
### Priority Order
|
|
33
|
+
1. **Source of Funds** (Where did the money come from?)
|
|
34
|
+
2. **Use of Funds** (Where did the money go?)
|
|
35
|
+
3. **Internal Control Gaps** (How was the fraud possible?)
|
|
36
|
+
4. **Intent Detection** (Was it an error or deliberate?)
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Technical Investigation Steps
|
|
41
|
+
|
|
42
|
+
### 1. Benford's Law Analysis
|
|
43
|
+
- Run a statistical analysis on the leading digits of transaction amounts.
|
|
44
|
+
- Significant deviations from Benford's distribution indicate potentially manufactured numbers.
|
|
45
|
+
|
|
46
|
+
### 2. Vendor Link Analysis
|
|
47
|
+
- Match employee addresses/phone numbers with vendor databases.
|
|
48
|
+
- Flag "Ghost Vendors" or shell companies owned by insiders.
|
|
49
|
+
|
|
50
|
+
### 3. Round-Trip Tracking
|
|
51
|
+
- Identify transactions that leave the entity and return via a series of intermediaries.
|
|
52
|
+
- Check for "Lazy Round-Tripping" (identical amounts/dates).
|
|
53
|
+
|
|
54
|
+
### 4. Lifestyle Audit
|
|
55
|
+
- (If external data is available) Compare known employee compensation with visible assets or spending.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Output Format
|
|
60
|
+
|
|
61
|
+
### Forensic Report Structure
|
|
62
|
+
|
|
63
|
+
**Executive Summary**
|
|
64
|
+
- Summary of the alleged scheme.
|
|
65
|
+
- Quantified loss (Total amount of fraud detected).
|
|
66
|
+
|
|
67
|
+
**Evidence Chain**
|
|
68
|
+
- **The Scheme**: Step-by-step description of how the fraud occurred.
|
|
69
|
+
- **Key Suspects**: List of entities/individuals involved.
|
|
70
|
+
- **Evidence Logs**: Table of specific transactions with reference IDs.
|
|
71
|
+
|
|
72
|
+
**Control Recommendations**
|
|
73
|
+
- Specific hardening steps to prevent recurrence.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Scripts
|
|
78
|
+
- [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 expected digit frequencies and thresholds from [Benford's Law Guide](./references/benfords-law.md), show the test and its sample size in the answer, and hand anything that needs real compute to the delegated `data_junior`.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## References
|
|
83
|
+
- [Benford's Law Guide](./references/benfords-law.md): Statistical analysis of leading digits.
|
|
84
|
+
- [Fraud Triangle](./references/fraud-triangle.md): Understanding Pressure, Opportunity, and Rationalization.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Related Skills
|
|
89
|
+
- **audit-checklist**: For baseline control reviews.
|
|
90
|
+
- **financial-analysis**: For detecting macro-level swings caused by fraud.
|
|
91
|
+
- **risk-assessment**: For evaluating the impact of the detected fraud.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Benford’s Law: Statistical Fraud Detection
|
|
2
|
+
|
|
3
|
+
A mathematical tool used by forensic accountants to detect manufactured or manipulated numbers in financial datasets.
|
|
4
|
+
|
|
5
|
+
## 🏛️ The Concept
|
|
6
|
+
Benford's Law (the First-Digit Law) states that in many naturally occurring collections of numbers, the leading significant digit is likely to be small.
|
|
7
|
+
- The digit **1** appears as the first digit about **30%** of the time.
|
|
8
|
+
- The digit **9** appears as the first digit less than **5%** of the time.
|
|
9
|
+
|
|
10
|
+
## 🔍 When to Apply
|
|
11
|
+
- **Accounts Payable**: Large datasets of vendor payments.
|
|
12
|
+
- **Inventory Counts**: Checking for "plug numbers."
|
|
13
|
+
- **Sales Data**: Identifying fabricated invoices.
|
|
14
|
+
|
|
15
|
+
**Warning**: Benford's Law does not work on datasets with assigned numbers (e.g., zip codes, phone numbers) or datasets with a narrow range (e.g., heights of humans).
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 🛠️ Interpretation
|
|
20
|
+
If a dataset significantly deviates from the Benford curve (e.g., an unusual spike in numbers starting with **7**), it indicates that the numbers may have been invented by a human, as humans tend to distribute digits uniformly when guessing.
|
|
21
|
+
|
|
22
|
+
## 🔗 Sources
|
|
23
|
+
- [Journal of Accountancy: Benford's Law and Fraud Detection](https://www.journalofaccountancy.com/issues/2017/apr/benfords-law-fraud-detection.html)
|
|
24
|
+
- [ACFE: Using Benford's Law in Fraud Examination](https://www.acfe.com/fraud-resources/benfords-law)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# The Fraud Triangle: Why People Steal
|
|
2
|
+
|
|
3
|
+
A model for explaining the factors that cause someone to commit occupational fraud.
|
|
4
|
+
|
|
5
|
+
## 🏛️ The Three Elements
|
|
6
|
+
|
|
7
|
+
### 1. Pressure (Incentive)
|
|
8
|
+
The person has a "non-sharable" financial problem.
|
|
9
|
+
- **Examples**: High personal debt, gambling addiction, or pressure to meet aggressive earnings targets.
|
|
10
|
+
|
|
11
|
+
### 2. Opportunity
|
|
12
|
+
The person sees a way to abuse their position of trust with low perceived risk of detection.
|
|
13
|
+
- **Examples**: Weak internal controls, lack of segregation of duties, or management override.
|
|
14
|
+
|
|
15
|
+
### 3. Rationalization
|
|
16
|
+
The person justifies the act to themselves to maintain their self-image as a "good person."
|
|
17
|
+
- **Examples**: "I'm only borrowing the money," "I'm underpaid," or "Everyone else is doing it."
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 🔍 Mitigation Strategy
|
|
22
|
+
Management can mostly control **Opportunity** by hardening internal controls. They can influence **Pressure** via fair compensation and **Rationalization** by fostering an ethical corporate culture.
|
|
23
|
+
|
|
24
|
+
## 🔗 Sources
|
|
25
|
+
- [ACFE: The Fraud Triangle](https://www.acfe.com/fraud-resources/fraud-triangle)
|
|
26
|
+
- [AICPA: The Fraud Triangle](https://www.aicpa.org/resources/article/the-fraud-triangle)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Worked Example - insurance-reserving
|
|
2
|
+
|
|
3
|
+
## Ask
|
|
4
|
+
|
|
5
|
+
> Our paid losses for Accident Year 2023 are $500k. Historically, this line develops to 2.0x its current value by year 5. What's our IBNR?
|
|
6
|
+
|
|
7
|
+
## What a correct response contains
|
|
8
|
+
|
|
9
|
+
Should calculate Projected Ultimate Loss ($500k * 2.0 = $1M). Should identify IBNR as the difference between Ultimate and Paid ($1M - $500k = $500k). Should discuss the loss ratio. Should provide an Insurance Reserve Report.
|
|
10
|
+
|
|
11
|
+
## File-driven variant
|
|
12
|
+
|
|
13
|
+
With fixture(s) `evals/files/paid_triangle.csv`:
|
|
14
|
+
|
|
15
|
+
> Apply the chain-ladder method to the attached cumulative paid triangle (evals/files/paid_triangle.csv): compute volume-weighted development factors, ultimate losses per accident year, and total IBNR reserve.
|
|
16
|
+
|
|
17
|
+
Expected: LDFs [1.5, 1.2, 1.1]; ultimates ['8,316,000', '9,108,000', '10,098,000', '10,890,000']; IBNR $8,666,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,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: insurance-reserving
|
|
3
|
+
description: When the user wants to calculate insurance loss reserves or analyze insurance financial health. Also use when the user mentions "IBNR," "loss development triangles," "actuarial reserving," "claims reserves," "combined ratio," or "loss ratio."
|
|
4
|
+
metadata:
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Insurance Loss Reserving
|
|
9
|
+
|
|
10
|
+
You are an Insurance Actuarial Analyst. Your goal is to ensure the insurer has set aside enough capital to cover future claims arising from past events.
|
|
11
|
+
|
|
12
|
+
## Initial Assessment
|
|
13
|
+
|
|
14
|
+
1. **Line of Business**
|
|
15
|
+
- Short-tail (e.g., Auto, Home) vs. Long-tail (e.g., Workers Comp, Liability).
|
|
16
|
+
|
|
17
|
+
2. **Claim Data**
|
|
18
|
+
- Do we have the **Loss Triangle**? (Paid or Incurred losses by accident year and development year).
|
|
19
|
+
|
|
20
|
+
3. **Loss Ratio History**
|
|
21
|
+
- What is the historical "Ultimate Loss Ratio" for this line?
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Reserving Framework
|
|
26
|
+
|
|
27
|
+
### Priority Order
|
|
28
|
+
1. **Data Organization** (Building the loss development triangles).
|
|
29
|
+
2. **Age-to-Age Factor Calculation** (Determining how claims grow over time).
|
|
30
|
+
3. **Link Ratio Selection** (Choosing the most representative factors).
|
|
31
|
+
4. **IBNR Calculation** (Incurred But Not Reported).
|
|
32
|
+
5. **Combined Ratio Analysis** (Losses + Expenses / Premiums).
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Technical Actuarial Steps
|
|
37
|
+
|
|
38
|
+
### 1. Chain Ladder Method
|
|
39
|
+
- Use historical loss development factors to project current losses to their "Ultimate" value.
|
|
40
|
+
|
|
41
|
+
### 2. Bornhuetter-Ferguson (BF) Method
|
|
42
|
+
- Combine the Chain Ladder with an initial expected loss ratio (useful for immature years).
|
|
43
|
+
|
|
44
|
+
### 3. IBNR Determination
|
|
45
|
+
`IBNR = Projected Ultimate Loss - Incurred Loss to Date`
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Output Format
|
|
50
|
+
|
|
51
|
+
### Insurance Reserve Report
|
|
52
|
+
|
|
53
|
+
**Key Ratios**
|
|
54
|
+
- **Loss Ratio**: (Claims / Premiums).
|
|
55
|
+
- **Expense Ratio**: (Operating Costs / Premiums).
|
|
56
|
+
- **Combined Ratio**: (The target should be < 100%).
|
|
57
|
+
|
|
58
|
+
**The Reserve**
|
|
59
|
+
- **Case Reserves**: $X.
|
|
60
|
+
- **IBNR**: $Y.
|
|
61
|
+
- **Total Loss Reserve**: $Z.
|
|
62
|
+
|
|
63
|
+
**Triangle Visualization**
|
|
64
|
+
- Description of the loss development trend (e.g., "Deterioration in Accident Year 2022").
|
|
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 factor selections from [Chain Ladder Basics](./references/actuarial-methods.md) and the ratio definitions in [Combined Ratio Guide](./references/insurance-metrics.md), show each step in the answer, and hand anything that needs real compute to the delegated `data_junior`.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## References
|
|
74
|
+
- [Chain Ladder Basics](./references/actuarial-methods.md): Math behind loss development.
|
|
75
|
+
- [Combined Ratio Guide](./references/insurance-metrics.md): Evaluating underwriting profitability.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Related Skills
|
|
80
|
+
- **risk-assessment**: For identifying the underlying underwriting risks.
|
|
81
|
+
- **financial-statement-prep**: For reporting the massive loss reserve liability.
|
|
82
|
+
- **ecl-computation**: For the credit risk on the insurer's investment portfolio.
|
package/selected-skills/financeskills/skills/insurance-reserving/references/actuarial-methods.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Actuarial Reserving Methods
|
|
2
|
+
|
|
3
|
+
## Chain Ladder (development triangle)
|
|
4
|
+
1. Build cumulative paid (or incurred) loss triangle by accident year × development period.
|
|
5
|
+
2. Age-to-age factors: `f(d) = Σ C(i,d+1) / Σ C(i,d)` (volume-weighted; exclude distorted years with judgment, documented).
|
|
6
|
+
3. Cumulative development factor (CDF) to ultimate = product of remaining factors × tail factor.
|
|
7
|
+
4. `Ultimate = latest cumulative × CDF`; `IBNR = Ultimate − reported incurred`; reserve = ultimate − paid.
|
|
8
|
+
Weakness: leveraged by latest diagonal — bad for immature/volatile years.
|
|
9
|
+
|
|
10
|
+
## Bornhuetter-Ferguson (the stabilizer)
|
|
11
|
+
`Ultimate = Reported + Expected ultimate × (1 − 1/CDF)`
|
|
12
|
+
Blends an a priori loss ratio (pricing or historical, adjusted) with actual emergence. Use for recent accident years, low-credibility lines, and after large one-off events.
|
|
13
|
+
|
|
14
|
+
## Expected Loss Ratio Method
|
|
15
|
+
`Ultimate = Premium × a priori loss ratio` — for brand-new lines with no credible development data.
|
|
16
|
+
|
|
17
|
+
## Frequency-Severity & Cape Cod
|
|
18
|
+
- Freq-sev: project claim counts and average severities separately — better insight into drivers (inflation vs. claim volume).
|
|
19
|
+
- Cape Cod: like BF but derives the a priori loss ratio from the data itself, weighted by used-up premium.
|
|
20
|
+
|
|
21
|
+
## Method Selection Matrix
|
|
22
|
+
| Accident year maturity | Preferred |
|
|
23
|
+
|---|---|
|
|
24
|
+
| Mature (CDF < 1.1) | Chain ladder |
|
|
25
|
+
| Mid (CDF 1.1–2.0) | Weighted CL/BF |
|
|
26
|
+
| Green (CDF > 2.0) | BF or ELR |
|
|
27
|
+
|
|
28
|
+
## Diagnostics Before Signing Off
|
|
29
|
+
- Calendar-year diagonals for inflation/process change distortions.
|
|
30
|
+
- Paid vs. incurred method divergence — investigate case reserve adequacy drift.
|
|
31
|
+
- Actual vs. expected emergence since last review.
|
|
32
|
+
- Tail factor sensitivity (long-tail liability: ±0.02 on tail swings reserves materially).
|
|
33
|
+
- IFRS 17: add risk adjustment + discounting (locked-in vs. current rates per measurement model); reserve ranges, not points.
|
package/selected-skills/financeskills/skills/insurance-reserving/references/insurance-metrics.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Insurance Financial Metrics
|
|
2
|
+
|
|
3
|
+
## Underwriting Ratios
|
|
4
|
+
- **Loss ratio** = Incurred losses / Earned premium. Include LAE/claims handling (be explicit which).
|
|
5
|
+
- **Expense ratio** = UW expenses / Written premium (trade basis) or earned (statutory basis — state which).
|
|
6
|
+
- **Combined ratio** = loss + expense. < 100% = underwriting profit. 95% is strong for P&C; > 105% needs investment income to survive.
|
|
7
|
+
- **Operating ratio** = combined − investment income ratio.
|
|
8
|
+
|
|
9
|
+
## Reserve Health Indicators
|
|
10
|
+
- **Reserve-to-premium ratio** trend by line: shrinking ratio in a growing long-tail book = likely under-reserving.
|
|
11
|
+
- **Paid-to-incurred ratio**: rising = reserves running off true; spiking = possible case reserve weakening.
|
|
12
|
+
- **Survival ratio** (reserves / avg annual paid): for latent exposures (asbestos-style), benchmark vs. peers.
|
|
13
|
+
- **One-year reserve development / opening reserves**: persistent favorable development > 5% = padding; persistent adverse = deficiency. Track 5 years.
|
|
14
|
+
|
|
15
|
+
## Premium Metrics
|
|
16
|
+
- GWP vs. NWP (after reinsurance) vs. earned; unearned premium reserve roll.
|
|
17
|
+
- Rate change vs. loss trend: margin expands only if rate > trend.
|
|
18
|
+
|
|
19
|
+
## Solvency / Capital
|
|
20
|
+
- Solvency II SCR coverage ≥ 100% (comfort > 150%); NAIC RBC ratio ≥ 200% of ACL avoids action levels; Nigeria: NAICOM minimum capital + solvency margin per Insurance Act.
|
|
21
|
+
- Premium-to-surplus ≤ 2–3x (P&C heuristic); reserves-to-surplus by line tail length.
|
|
22
|
+
|
|
23
|
+
## IFRS 17 Lens
|
|
24
|
+
- CSM balance and release pattern = future profit emergence.
|
|
25
|
+
- Loss component on onerous contracts hits P&L immediately — watch cohort-level onerous classifications.
|
|
26
|
+
- Risk adjustment confidence level disclosure: compare across peers (65th–85th percentile typical).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Worked Example - intercompany-accounting
|
|
2
|
+
|
|
3
|
+
## Ask
|
|
4
|
+
|
|
5
|
+
> Parent shows due-from Sub A of 125M; Sub A shows due-to Parent of 117M. Walk me through resolving the 8M difference.
|
|
6
|
+
|
|
7
|
+
## What a correct response contains
|
|
8
|
+
|
|
9
|
+
Apply the hierarchy: check in-transit items around cut-off, FX rate differences (different sources/dates), missing bookings on one side, then pricing disputes. Fix entity books before consolidation; never eliminate a mismatch.
|
|
10
|
+
|
|
11
|
+
## File-driven variant
|
|
12
|
+
|
|
13
|
+
With fixture(s) `evals/files/ic_receivables_parent.csv`, `evals/files/ic_payables_subs.csv`:
|
|
14
|
+
|
|
15
|
+
> Match the attached intercompany balances (evals/files/ic_receivables_parent.csv vs evals/files/ic_payables_subs.csv) and identify mismatches. Separately, the parent sold inventory to SubB for $300,000 (cost $200,000) and SubB still holds 40%: compute the unrealized profit to eliminate and draft the elimination entry, proving it balances.
|
|
16
|
+
|
|
17
|
+
Expected: SubB mismatch $20,000 (cash/goods in transit to investigate); SubC and SubD agree. URP $40,000; elimination: Dr IC Revenue 300,000 / Cr IC COGS 260,000 / Cr Inventory 40,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.
|