credit-model-validation-banking

Automate credit risk ML model validation with performance, stability, and regulatory reports.

Updated Oct 31, 2025
One-click install
npx skills add https://github.com/00060633/credit-model-validation-skill --skill credit-model-validation-banking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: credit-model-validation-banking
Source: https://github.com/00060633/credit-model-validation-skill/tree/main
Command: npx skills add https://github.com/00060633/credit-model-validation-skill --skill credit-model-validation-banking

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, scikit-learn, matplotlib, seaborn, scipy, xgboost, lightgbm, catboost, joblib, pyyaml, python-docx, openpyxl, plotly, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates independent validation of credit risk machine learning models for banks by producing performance, stability, business, visualization, and regulator-aligned evidence in a single workflow.

Core Features & Use Cases

  • End-to-end validation pipeline: covers data quality checks, model scoring, and regulatory readiness for credit risk use cases.
  • Model performance metrics: computes core discrimination and classification quality metrics such as AUC, Gini, KS, Recall, Precision, F1, Accuracy, Specificity, and Confusion Matrix.
  • Stability analysis (PSI/CSI): evaluates population drift for input features and score drift over time with PSI/CSI thresholds and status labeling.
  • Business-oriented cut-off evaluation: estimates approval rate, bad rate, expected loss, and identifies an optimal threshold using business cost logic.
  • Audit-ready outputs: generates validation plots (ROC, PR, confusion matrix heatmap, KS, calibration curve, score distributions, PSI charts, lift/gain charts) and compiles them into a final report aligned with Kazakhstan regulatory expectations.
  • Optional interactive mode and code review guidance: supports step-by-step validation and a checklist-driven review of model development quality.

Quick Start

Run the full validation flow for a pickled bank credit risk model using your out-of-sample data to generate metrics, PSI/CSI stability outputs, plots, and a regulator-oriented validation report.

Frequently Asked Questions about credit-model-validation-banking

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

FAQPage Schema
How do I automate credit model validation for banking PD models?

Automate credit model validation by running executable scripts on out-of-sample data to evaluate discrimination metrics, stability drift, and business cutoffs, generating a regulator-aligned validation report.

What is PSI and CSI stability analysis in credit risk models?

PSI and CSI stability analysis evaluates population drift for input features and score drift over time by applying threshold checks and status labeling to monitor credit risk model performance.

How do I calculate ROC AUC, Gini, and KS metrics for a credit scoring model?

Calculate ROC AUC, Gini, and KS metrics for credit scoring models using built-in scripts that compute core discrimination and classification quality metrics on out-of-sample datasets.

Can I optimize business cutoffs and expected loss for credit risk models?

Optimize business cutoffs and expected loss by estimating approval rates, bad rates, and identifying optimal thresholds using business cost logic applied to credit risk model outputs.

Does this credit model validation workflow support Kazakhstan regulatory compliance?

This credit model validation workflow supports Kazakhstan regulatory compliance by generating audit-ready outputs and evidence aligned with local regulatory expectations for banking credit risk models.

What plots are needed for a credit risk model validation report?

Credit risk model validation reports require ROC curves, PR curves, confusion matrix heatmaps, KS statistics, calibration curves, score distributions, PSI charts, and lift/gain charts to provide comprehensive audit evidence.