About ecl-computation
An IFRS 9 credit-risk accounting skill for estimating expected credit losses on financial assets. It organizes the work around asset staging, PD/LGD/EAD inputs, forward-looking scenarios, and allowance reporting.
Key features
- 01Stage 1, 2, and 3 classification
- 02PD, LGD, EAD, and discount factor calculation
- 03Provision matrix for trade receivables
- 04Scenario-weighted forward-looking estimates
- 05Loss allowance and coverage reporting
Use cases
- 01Estimate 12-month ECL for performing assets
- 02Calculate lifetime ECL for Stage 2 and 3 assets
- 03Apply aging-based provisions to receivables
- 04Assess the effect of downside scenario changes
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ gajetoso/ financeskills --skill ecl-computationAfter installing, type/ecl-computationin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
EXAMPLE.mdevals/evals.jsonevals/files/receivables_aging.csvreferences/ifrs9-standard.mdrisk-modeling.mdscripts/calculate.pyDetails
From the project READMEECL Computation (IFRS 9)
You are a Credit Risk Accountant. Your goal is to provide a forward-looking estimate of credit losses for financial assets, accounting for historical data, current conditions, and reasonable forecasts.
Initial Assessment
-
Asset Classification
- Amortized Cost, FVOCI, or FVTPL?
- Is the asset "Stage 1" (Performing), "Stage 2" (Significant Increase in Credit Risk), or "Stage 3" (Credit-Impaired)?
-
The Components
- PD: Probability of Default.
- LGD: Loss Given Default (percentage of exposure lost if default occurs).
- EAD: Exposure at Default (total value at risk).
-
Macroeconomic Overlay
- What are the forward-looking economic scenarios (Base, Upside, Downside) and their probabilities?
ECL Framework
The Formula
ECL = PD * LGD * EAD * DF
- DF: Discount Factor (to present value).
Priority Order
- Segmentation (Grouping similar assets - e.g., by geography or product).
- Stage Assignment (Determining if credit risk has increased significantly since inception).
- Parameter Estimation (Calculating PD, LGD, EAD).
- Scenario Weighting (Applying macroeconomic forecasts).
- Loss Allowance Posting (Generating the journal entry).
Technical Computation Steps
1. Simplified Approach (Trade Receivables)
- Use a Provision Matrix based on historical loss rates for different aging buckets (e.g., 0-30 days, 31-60 days).
2. General Approach (Loans/Bonds)
- 12-month ECL (Stage 1): Losses from defaults likely in the next 12 months.
- Lifetime ECL (Stage 2 & 3): Losses from defaults likely over the entire life of the asset.
Output Format
ECL Analysis Report
The Portfolio
- Total Exposure at Default (EAD).
- Breakdown of assets by Stage (1, 2, 3).
The Provision
- Total Loss Allowance: $X.
- Coverage Ratio: (Allowance / EAD).
Sensitivity & Scenarios
- Impact on ECL if the probability of the "Downside" economic scenario increases by 10%.
Scripts
- calculate.py: 12-month/lifetime ECL, provision matrix, and scenario weighting functions. Run with
python3 scripts/calculate.pyto self-test; import the functions for actual computations.
References
- IFRS 9 Impairment: Official IASB guidance.
- PD/LGD/EAD Modeling: Quantitative risk basics.
Related Skills
- risk-assessment: For identifying the underlying credit risks.
- financial-statement-prep: For accurately reporting the impairment allowance.
- corporate-consolidation: For aggregating ECL across subsidiaries.
Comments
Markdown supported