credit-risk

Estimates credit risk metrics and aggregates losses at portfolio level.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/GhostOf0days/codex-quant-skills --skill credit-risk-ghostof0days
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: credit-risk
Source: https://github.com/GhostOf0days/codex-quant-skills/tree/main/credit-risk
Command: npx skills add https://github.com/GhostOf0days/codex-quant-skills --skill credit-risk-ghostof0days

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the critical need to measure, manage, and control credit loss risk across various levels of an organization, from individual obligors to entire portfolios.

Core Features & Use Cases

  • Risk Estimation: Calibrates Probability of Default (PD), Loss Given Default (LGD), and Exposure at Default (EAD) models.
  • Portfolio Aggregation: Aggregates expected and stressed losses at portfolio and desk levels.
  • Validation & Control: Implements rigorous validation checks and risk controls for stable and explainable risk metrics.
  • Use Case: When tasks involve expected-loss modeling, tail-loss stress testing, obligor-level risk scoring, or production credit limit controls, this Skill provides the necessary framework.

Quick Start

Run the credit risk validation script with the input file 'input.csv' and save the output to 'validation.json'.

Frequently Asked Questions about credit-risk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate probability of default and loss given default for a credit portfolio?

To calculate credit risk metrics, you calibrate probability of default (PD), loss given default (LGD), and exposure at default (EAD) models. This Skill provides the framework to estimate these metrics and validate them against historical data and stress scenarios.

What is loss aggregation in credit risk modeling?

Loss aggregation in credit risk modeling is the process of aggregating expected and stressed losses at portfolio and desk levels. It combines individual obligor risk estimates to quantify total portfolio exposure and tail-loss risk.

Can I perform tail-loss stress testing on credit portfolios using pandas?

Yes, you can perform tail-loss stress testing on credit portfolios. This Skill requires pandas and implements stress testing by validating calibrated risk metrics against predefined stress scenarios to measure portfolio resilience.

How do I validate credit risk models against historical data?

You validate credit risk models against historical data by running segment-aware calibration and validation checks. This Skill provides scripts to process input data and output validation results in JSON format for stable and explainable metrics.

Does this credit risk scoring approach support production credit limit controls?

Yes, this credit risk scoring approach supports production credit limit controls. It estimates obligor-level risk scores and aggregates losses to enforce risk controls across various organizational levels.