ecl-computation
Skill47 starsChanged 6 months agoMITView on GitHub
When the user wants to calculate Expected Credit Losses (ECL) under IFRS 9 or CECL (ASC 326). Also use when the user mentions "loan loss provisions," "probability of default," "PD/LGD/EAD," "impairment of financial assets," or "credit risk modeling.
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- ai-anomaly-detectionSkill
- aro-computationSkill
- audit-checklistSkill
- automated-reconciliationSkill
- banking-complianceSkill
- budget-forecastSkill
- close-managementSkill
- company-valuationSkill
- corporate-consolidationSkill
- credit-analysisSkill
- crypto-accountingSkill
- cvp-breakevenSkill
- debt-payoffSkill
- debt-restructuringSkill
- deferred-taxSkill
- earned-value-mgmtSkill
- esg-reportingSkill
- financial-analysisSkill
- fixed-asset-accountingSkill
- forensic-accountingSkill
- insurance-reservingSkill
- intercompany-accountingSkill
- inventory-costingSkill
- investment-analysisSkill
- journal-entrySkill
- lbo-modelingSkill
- lease-accountingSkill
- net-worth-trackerSkill
- nlp-earnings-sentimentSkill
- oil-gas-valuationSkill
- personal-budgetingSkill
- predictive-burn-rateSkill
- product-profitabilitySkill
- retirement-planningSkill
- revenue-recognitionSkill
- risk-assessmentSkill
- sox-complianceSkill
- startup-valuationSkill
- statement-preparationSkill
- tax-efficient-investingSkill
- tax-planningSkill
- three-statement-modelingSkill
- treasury-managementSkill
- variance-analysisSkill
- venture-debtSkill
- wacc-computationSkill
- working-capital-analysisSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 46
Use a Provision Matrix based on historical loss rates for different aging buckets (e.g., 0-30 days, 31-60 days).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ECL 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

