agentleFS
GAJETOsoGAJETOso/financeskills/skills/ecl-computation/SKILL.md

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.

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
  1. Distinctive:

    Use a Provision Matrix based on historical loss rates for different aging buckets (e.g., 0-30 days, 31-60 days).

    line 46

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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: 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: 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.