Stress Testing logo

Stress Testing

Organization
panaversity
stress-testing

Activate for: ICAAP, ILAAP, stress test, capital depletion, reverse stress test, ACS (Annual Cyclical Scenario), DFAST, CCAR, BoE stress test, EBA stress test, stressed capital ratio, Pillar 2, capital planning, going concern, stressed ECL, stressed RWA, stressed NII. NOT for: IFRS 9 macroeconomic scenario weighting (use ifrs9-scenarios), market risk capital under FRTB (use basel-rwa-market), liquidity stress testing for LCR/NSFR purposes (use liquidity-lcr / liquidity-nsfr).

Overview

Publisherpanaversity
Repositoryagentfactory-business-plugins
Skill namestress-testing
Stars
37
Forks
19
Bundled files
Instructions only
LicenseApache-2.0
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 panaversity on GitHub. Read the source before you install it.

Installation

Install the Stress Testing 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/panaversity/agentfactory-business-plugins/tree/main/banking/skills/stress-testing
  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/panaversity/agentfactory-business-plugins.git /tmp/agentfactory-business-plugins
mkdir -p .claude/skills
cp -r /tmp/agentfactory-business-plugins/banking/skills/stress-testing .claude/skills/stress-testing
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Stress Testing 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 Stress Testing 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 Stress Testing 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.

ICAAP PURPOSE AND STRUCTURE

The ICAAP (Internal Capital Adequacy Assessment Process) is the bank's own assessment of how much capital it needs given its specific risk profile, strategic plan, and stress scenarios. The regulator uses the ICAAP output to set Pillar 2 requirements.

Required sections:

  1. Business model and strategic overview
  2. Risk identification — material risks and their capital impact
  3. Capital quantification — Pillar 1 and Pillar 2 needs by risk type
  4. Stress testing — capital depletion under severe macroeconomic scenarios
  5. Capital planning — sources of capital and management actions under stress
  6. Capital adequacy conclusion — does the bank hold sufficient capital?

STRESS TEST FRAMEWORK

Scenario Design

Base case: 3-year capital projection under central business plan assumptions. Adverse scenario: Moderate downturn (unemployment +2pp, GDP -1%, HPI -10%). Severe scenario: Deep recession (unemployment +4pp, GDP -4%, HPI -30%). Bank-specific idiosyncratic scenario: scenario tailored to bank's specific vulnerabilities (e.g., CRE concentration stress, single large counterparty default). Reverse stress test: Work backwards — what scenario causes the bank to fail? (Required in UK by PRA; useful management discipline globally)

Capital Depletion Path — Year-by-Year Model

For each scenario year (typically 3 years): Opening CET1 capital (M)

  • Pre-tax profit (NII + fee income - operating costs)
  • Tax charge (at applicable corporate tax rate)
  • Stressed credit losses (IFRS 9 ECL under scenario conditions)
  • Dividend / AT1 coupon payments (suspended in Year 1-2 of severe stress) +/- Other comprehensive income (AFS securities fair value movements) = Closing CET1 capital (M) / Stressed RWA (M) — see RWA inflation below = Stressed CET1 Ratio (%)

RWA Inflation Under Stress

Credit RWA: Increases as Stage 3 NPLs grow (150% risk weight) and downgrades shift exposures to higher risk weight buckets. Typical severe scenario: credit RWA +10-15% Market RWA: Increases as ES/VaR models expand with higher volatility. Typical severe scenario: market RWA +30-50% Operational RWA: Increases as conduct/AML losses feed into Business Indicator. Typical severe scenario: operational RWA +5-10%

Stressed NII

Asset-sensitive banks (more assets than liabilities repricing in 12 months): Benefit from initial rate rise; hurt by subsequent rate fall Liability-sensitive banks (more liabilities than assets repricing): Hurt by initial rate rise; benefit from subsequent rate fall IRRBB (Interest Rate Risk in the Banking Book) stress: typically +/- 200bp parallel shift, +300bp steepening, -200bp flattening. Load jurisdiction overlay for specific IRRBB scenarios required by the relevant regulator.

CAPITAL DEPLETION PATH — TEMPLATE

Line ItemBase Y1Base Y2Base Y3Severe Y1Severe Y2Severe Y3
Opening CET1 capital (M)
+ Net interest income
+ Non-interest income
- Operating expenses
= Pre-provision profit
- Credit losses (ECL charge)
- Tax
- Dividends and AT1 coupons
+/- OCI movements
= Closing CET1 capital (M)
RWA (M)
CET1 Ratio (%)
Distance to 4.5% minimum (pp)
Distance to MDA trigger (pp)

DISTANCE TO REGULATORY TRIGGER

At each stress year-end, calculate: Distance to hard CET1 minimum (4.5%): Stressed CET1 - 4.5% Distance to combined buffer requirement: Stressed CET1 - [4.5% + CCB + CCyB + surcharge] Distance to MDA trigger: Same as combined buffer requirement Going concern test: Is CET1 above 4.5% at all times? If not: plan capital actions.

MANAGEMENT ACTIONS IN STRESS

Permitted in base case, restricted in severe scenario (per regulator instructions):

  • Dividend suspension (Year 1-2): Preserves ~1% CET1 annually for typical bank
  • Asset disposals: Non-core asset sales raise CET1 but may crystallise losses
  • RWA reduction: Pull back on new lending, reducing RWA growth
  • Capital issuance: Rights issue, AT1 issuance — available in moderate but not severe stress
  • AT1 conversion: CoCos convert to equity at trigger (typically 5.125% or 7% CET1)

Management Action Credibility Assessment

Regulators assess management actions for credibility under stress:

ActionCredible in Adverse?Credible in Severe?Notes
Dividend cut/suspensionYesYes (mandatory if MDA breached)Expected action
AT1 coupon suspensionYesYes (mandatory if MDA breached)Legal discretion
Asset disposalYesUnlikely (fire sale prices)Haircut assumed proceeds
Rights issuePossibleNo (market access lost)Investors unavailable
RWA reductionYesLimited (pipeline committed)6-12 month lag

ICAAP SUBMISSION STANDARDS

The ICAAP is submitted to the regulator (PRA, ECB, APRA, etc.) annually. It must be: approved by the Board; prepared with independent review (CRO, Finance, Audit); consistent with financial plan and IFRS 9 ECL assumptions; stress scenarios materially more severe than the base case.

REVERSE STRESS TEST

Required by PRA (UK) and increasingly by other regulators. Process: Start from a point of failure (e.g., CET1 breaches 4.5%). Work backwards to identify which scenario(s) could cause this outcome. Assess plausibility of those scenarios. Identify mitigants and recovery actions. Purpose: Not prediction — identification of the bank's most acute vulnerabilities and the triggers that management should monitor most closely.

REGULATORY STRESS TEST PROGRAMMES

ProgrammeJurisdictionFrequencyKey Feature
ACS (Annual Cyclical Scenario)UK (BoE/PRA)AnnualHurdle rates published; public disclosure
EBA Stress TestEU (EBA/ECB)BiennialStatic balance sheet; no capital threshold
DFAST (Dodd-Frank Act Stress Test)US (Fed)AnnualSeverely adverse scenario; public disclosure
CCAR (Comprehensive Capital Analysis)US (Fed)AnnualQualitative + quantitative; capital plan approval

OUTPUT FORMAT — STRESS TEST SUMMARY

STRESS TEST SUMMARY
Entity:             [Bank / Group name]
Assessment Date:    [YYYY-MM-DD]
Scenarios:          [Base / Adverse / Severe / Reverse]

CAPITAL DEPLETION — SEVERE SCENARIO:
  Opening CET1 Ratio:          [X.X%]
  Year 1 CET1 Ratio:           [X.X%]  (distance to 4.5%: [+/-X.X pp])
  Year 2 CET1 Ratio:           [X.X%]  (distance to 4.5%: [+/-X.X pp])
  Year 3 CET1 Ratio:           [X.X%]  (distance to 4.5%: [+/-X.X pp])
  Trough CET1 Ratio:           [X.X%] in Year [N]
  MDA breach:                   [Yes/No — in Year N]

KEY DRIVERS:
  Cumulative credit losses:     [Amount M]
  RWA inflation:                [Amount M] ([+X%])
  NII impact:                   [Amount M]

MANAGEMENT ACTIONS ASSUMED:
  [List with credibility assessment]

REVERSE STRESS TEST:
  Failure scenario:             [Description]
  Plausibility assessment:      [Low / Medium / High]

CONCLUSION:
  Capital adequacy:             [Adequate / Requires action]
  Recommended buffer:           [X.X% above minimum]

NEVER DO THESE

  • NEVER assume management actions are fully available in a severe stress scenario — regulators require credibility assessment and will reject actions that are unrealistic under severe market conditions (e.g., equity issuance during a banking crisis)
  • NEVER ignore RWA inflation under stress — credit RWA typically increases 10–15% in severe scenarios due to rating downgrades and increased Stage 3 exposures at 150% risk weight
  • NEVER use IFRS 9 base-case ECL assumptions in a stress scenario — stressed ECL must reflect the stressed macroeconomic variables, not the probability-weighted base case
  • NEVER present a reverse stress test without a plausibility assessment — the purpose is to identify realistic vulnerabilities, not theoretical impossibilities
  • NEVER omit AT1 conversion mechanics from severe stress projections — if CET1 approaches the CoCo trigger (typically 5.125% or 7%), AT1 instruments convert to equity and materially change the capital position

ALL OUTPUTS REQUIRE REVIEW BY A QUALIFIED PROFESSIONAL BEFORE USE IN REGULATORY FILINGS OR BUSINESS DECISIONS.

Frequently asked questions

What does the Stress Testing AI skill do?

Activate for: ICAAP, ILAAP, stress test, capital depletion, reverse stress test, ACS (Annual Cyclical Scenario), DFAST, CCAR, BoE stress test, EBA stress test, stressed capital ratio, Pillar 2, capital planning, going concern, stressed ECL, stressed RWA, stressed NII. NOT for: IFRS 9 macroeconomic scenario weighting (use ifrs9-scenarios), market risk capital under FRTB (use basel-rwa-market), liquidity stress testing for LCR/NSFR purposes (use liquidity-lcr / liquidity-nsfr).

Why use Stress Testing on TypingMind?

Because you install it once and use it with any model. Stress Testing 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 Stress Testing in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/panaversity/agentfactory-business-plugins/tree/main/banking/skills/stress-testing. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Stress Testing?

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 Stress Testing?

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

Is the Stress Testing AI skill free?

Yes. It is published on GitHub by panaversity under the Apache-2.0 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 👇