Ecl Calculation logo

Ecl Calculation

Community
vivy-yi
ecl-calculation

ECL 计量 — 对每个 Stage 的敞口计算预期信用损失(12 个月或存续期), 应用 PD / LGD / EAD 参数,生成 ECL 计量结果。 适用情形:完成 Stage 分类后,风险经理计算每个敞口的 ECL, 汇总 Stage 级别 ECL,准备迁徙分析和覆盖率验证。

Overview

Publishervivy-yi
Repositoryfinance-skills
Skill nameecl-calculation
Stars
43
Forks
13
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by vivy-yi on GitHub. Read the source before you install it.

Installation

Install the Ecl Calculation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/vivy-yi/finance-skills/tree/master/finance-skills/skills/ifrs9-credit-risk/skills/ecl-calculation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vivy-yi/finance-skills.git /tmp/finance-skills
mkdir -p .claude/skills
cp -r /tmp/finance-skills/finance-skills/skills/ifrs9-credit-risk/skills/ecl-calculation .claude/skills/ecl-calculation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ecl Calculation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ecl Calculation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ecl Calculation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

加载上下文

首次使用时: 读取 ../../CLAUDE.md 获取 PD/LGD/EAD 参数配置和前瞻调整要求。


/ecl-calculation — ECL 计量

第一步:确认参数配置

□ PD 来源:
□ 内部评级系统:[✅ 可用 / ⚠️ 须手动映射]
□ 外部评级映射:[✅ 已建立 / ⚠️ 须建立]
□ 内部历史数据年限:[X] 年

□ LGD 来源:
□ 内部历史回收数据:[✅ 可用 / ⚠️ 须参照外部]
□ 抵押品处理历史:[✅ 可用 / ⚠️ 须补录]

□ EAD 来源:
□ 表内:账面余额 [✅ 直接取数]
□ 表外:已承诺金额 × CCF [X]%

□ 前瞻调整:
□ 是否须应用宏观调整:[是/否]
□ 宏观情景权重:[乐观 X]% / [基准 X]% / [悲观 X]%

第二步:Stage 1 ECL 计量

□ 计量公式:
□ ECL = EAD × PD(12个月) × LGD × [1/(1+r)^t](折现因子)

□ 对每个 Stage 1 敞口计算:
□ [客户 A] — EAD [X]万 × PD [X]% × LGD [X]% × 折现 = ECL [X]元
□ [客户 B] — ...

□ Stage 1 汇总:
□ Stage 1 敞口:[X] 万元
□ Stage 1 ECL:[X] 万元
□ Stage 1 覆盖率:ECL / 敞口 = [X]%

□ PD 合理性验证:
□ Stage 1 加权平均 PD:[X]% — [✅ 与预期一致 / ⚠️ 偏高]

第三步:Stage 2 ECL 计量

□ 计量公式(存续期):
□ ECL = EAD × PD(存续期,当前评级) × LGD × 折现因子

□ PD(存续期) 计算:
□ 当前评级 [X] → 对应存续期 PD [X]%
□ 须使用存续期 PD(不是 12 个月 PD)

□ 对每个 Stage 2 敞口计算:
□ [客户 C] — EAD [X]万 × PD(存续) [X]% × LGD [X]% × 折现 = ECL [X]元
□ ...

□ Stage 2 汇总:
□ Stage 2 敞口:[X] 万元
□ Stage 2 ECL:[X] 万元
□ Stage 2 覆盖率:[X]% — [✅ 充足 / ⚠️ 偏低]

□ PD 合理性验证:
□ Stage 2 加权平均 PD(存续):[X]% — [✅ 与预期一致 / ⚠️ 偏高]
□ Stage 2 vs Stage 1 PD 差异:[X]x — [✅ 合理差异 / ⚠️ 差异过大]

第四步:Stage 3 ECL 计量

□ 计量公式(已减值):
□ ECL = (EAD + 逾期利息资本化) × LGD × 折现因子
□ PD = 100%(已违约)

□ 抵押品处理:
□ 抵押品评估价值:[X] 万元
□ 折现率:[X]%
□ 抵押品净可回收:[X] 万元
□ ECL 扣除抵押品后净额:[X] 万元

□ Stage 3 汇总:
□ Stage 3 敞口:[X] 万元
□ Stage 3 ECL(扣除抵押品前):[X] 万元
□ 抵押品价值:[X] 万元
□ Stage 3 ECL(扣除抵押品后):[X] 万元
□ Stage 3 覆盖率:[X]% — [✅ 充足 / ⚠️ 偏低]

第五步:ECL 汇总与覆盖率验证

□ ECL 汇总:

| Stage | 敞口(万)| ECL(万)| 覆盖率 |
|-------|-----------|----------|---------|
| Stage 1 | [X]     | [X]      | [X]%   |
| Stage 2 | [X]     | [X]      | [X]%   |
| Stage 3 | [X]     | [X]      | [X]%   |
| **合计** | **[X]** | **[X]** | **[X]%** |

□ 覆盖率合理性检查:
□ Stage 1 覆盖率 vs 监管最低 [X]%:[✅ 达标 / ❌ 不达标]
□ Stage 2 覆盖率 vs 监管最低 [X]%:[✅ 达标 / ❌ 不达标]
□ Stage 3 覆盖率 vs 监管最低 [X]%:[✅ 达标 / ❌ 不达标]

□ 与上期对比:
□ 上期 ECL:[X] 万元 → 本期 [X] 万元
□ 变动:[±X] 万元 / [±X]%
□ 主要变动驱动因素:[...]

输出格式

═══════════════════════════════════════
ECL 计量结果
评估截止日:[YYYY-MM-DD]
═══════════════════════════════════════

【Stage 1 ECL】

| 客户 | EAD(万)| PD(12M) | LGD | ECL(元)|
|------|----------|---------|-----|----------|
| [A]  | [X]      | [X]%    | [X]% | [X]     |
| ...  | ...      | ...     | ... | ...     |
| **合计** | **[X]** | **[X]%** | **[X]%** | **[X]** |

□ Stage 1 加权平均 PD:[X]%

【Stage 2 ECL】

| 客户 | EAD(万)| PD(LTD) | LGD | ECL(元)|
|------|----------|---------|-----|----------|
| [C]  | [X]      | [X]%    | [X]% | [X]     |
| ...  | ...      | ...     | ... | ...     |
| **合计** | **[X]** | **[X]%** | **[X]%** | **[X]** |

□ Stage 2 加权平均 PD(存续):[X]%

【Stage 3 ECL】

| 客户 | EAD(万)| 逾期利息 | LGD | 抵押品 | ECL(万)|
|------|----------|----------|-----|--------|----------|
| [D]  | [X]      | [X]      | [X]% | [X]    | [X]     |
| **合计** | **[X]** | **[X]** | **[X]%** | **[X]** | **[X]** |

【合计】

□ 合计 ECL:[X] 万元
□ 合计覆盖率:[X]%
□ vs 上期:[±X] 万元 / [±X]%

【覆盖率验证】

□ Stage 1:[X]% — [✅ / ❌]
□ Stage 2:[X]% — [✅ / ❌]
□ Stage 3:[X]% — [✅ / ❌]

═══════════════════════════════════════

Frequently asked questions

What does the Ecl Calculation AI skill do?

ECL 计量 — 对每个 Stage 的敞口计算预期信用损失(12 个月或存续期), 应用 PD / LGD / EAD 参数,生成 ECL 计量结果。 适用情形:完成 Stage 分类后,风险经理计算每个敞口的 ECL, 汇总 Stage 级别 ECL,准备迁徙分析和覆盖率验证。

Why use Ecl Calculation on TypingMind?

Because you install it once and use it with any model. Ecl Calculation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ecl Calculation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vivy-yi/finance-skills/tree/master/finance-skills/skills/ifrs9-credit-risk/skills/ecl-calculation. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Ecl Calculation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ecl Calculation?

As many as you like. As long as a model supports skills, you can use Ecl Calculation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ecl Calculation AI skill free?

Yes. It is published on GitHub by vivy-yi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇