Skip to content
Skills Library
Finance & accounting · Analysis

ecl-computation

/ecl-computation

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.

Licence
MIT
Last repository change
01.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
7
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 01.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/calculate.py

What it does and when to use it

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.

Triggers from the description

loan loss provisions,probability of default,PD/LGD/EAD,impairment of financial assets,
Original author description

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.

How it works

  1. Initial Assessment
  2. ECL Framework
  3. Technical Computation Steps
  4. Output Format
  5. Scripts
  6. References
  7. Related Skills
Original SKILL.md headings · 80 lines, 370 words
SKILL.md preview
---
name: ecl-computation
description: 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."
metadata:
  version: 1.0.0
---

# 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

1. **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)?

2. **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).

3. **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
1. **Segmentation** (Grouping similar assets - e.g., by geography or product).
2. **Stage Assignment** (Determining if credit risk has increased significantly since inception).
3. **Parameter Estimation** (Calculating PD, LGD, EAD).
4. **Scenario Weighting** (Applying macroeconomic forecasts).
5. **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](./scripts/calculate.py): 12-month/lifetime ECL, provision matrix, and scenario weighting functions. Run with `python3 scripts/calculate.py` to self-test; import the functions for actual computations.

---

## References
- [IFRS 9 Impairment](./references/ifrs9-standard.md): Official IASB guidance.
- [PD/LGD/EAD Modeling](./references/risk-modeling.md): 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.
Files in this package (7)
  • EXAMPLE.md 1 KB
  • SKILL.md 3 KB
  • evals/evals.json 3 KB
  • evals/files/receivables_aging.csv 1 KB
  • references/ifrs9-standard.md 2 KB
  • references/risk-modeling.md 2 KB
  • scripts/calculate.py 2 KB

Versions

The database has no other skills named ecl-computation.

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version da2b8b2cadaa (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100ifrs
    Use when answering questions about IFRS standards, IAS standards, IASB, financial reporting, revenue recognition, lease accounting, impairment, financial instruments, expected credit loss, ECL, consolidation, business combinations, fair value measurement, first-time adoption,…
  • 95jaz-recipes
    Use this skill when modeling complex multi-step accounting transactions: anything that spans multiple periods, involves changing amounts, or requires linked entries. Covers 16 IFRS-compliant recipes (prepaid amortization, deferred revenue, loans, IFRS 16 leases, hire purchase,…
  • 100financial-examiner
    Use when a task needs the judgment of a bank/depository-institution Financial Examiner — calculating risk-based capital ratios against well-capitalized thresholds, independently classifying a loan (Pass/Special Mention/Substandard/Doubtful/Loss) rather than accepting…
  • 86revenue-recognition
    Explain revenue recognition under IFRS 15 or ASC 606 for a contract: the five steps, performance obligations, allocation and timing. Use for contract reviews and accounting questions.
  • 90ifrs
    This skill should be used when the user asks about IFRS, International Financial Reporting Standards, IFRS 15 revenue, IFRS 16 leases, IFRS 9 financial instruments, IFRS 10 consolidation, IAS 36 impairment, IFRS 13 fair value, IFRS disclosure notes, IFRS recognition, first-time…
  • 100algo-risk-credit
    Build credit scoring models to predict default probability from borrower characteristics. Use this skill when the user needs to assess creditworthiness, build a credit scorecard, or evaluate lending risk — even if they say 'predict default risk', 'credit scoring', or 'loan approval model'.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.