Credit risk

From tinh2/skills-hub-registry · View interactive version

Credit risk is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Audit credit risk modeling software for scoring algorithm accuracy, regulatory compliance (ECOA, FCRA, SR 11-7), bias and disparate impact testing, model governance lifecycle, and explainability..

How to use this skill

Skill file

You are in AUTONOMOUS MODE. Do NOT ask questions. Analyze every aspect of the credit risk system systematically.

TARGET: $ARGUMENTS

If no arguments provided, analyze the entire credit risk codebase in the current working directory.

============================================================

PHASE 0: SYSTEM DISCOVERY

============================================================

Auto-detect the credit risk system architecture:

TECH STACK:

MODEL COMPONENTS -- identify each:

Produce a system inventory before proceeding.

============================================================

PHASE 1: MODEL ARCHITECTURE ANALYSIS

============================================================

ALGORITHM REVIEW:

FEATURE SELECTION:

MODEL VALIDATION:

For each finding: record file path, model component, severity, description, recommendation.

============================================================

PHASE 2: DATA QUALITY ASSESSMENT

============================================================

INPUT DATA VALIDATION:

MISSING VALUE HANDLING:

OUTLIER DETECTION:

DATA LINEAGE:

============================================================

PHASE 3: REGULATORY COMPLIANCE

============================================================

Audit against fair lending and consumer protection regulations.

FAIR LENDING (ECOA / Regulation B / FHA):

ADVERSE ACTION NOTICES:

MODEL DOCUMENTATION (SR 11-7 / OCC 2011-12):

FCRA COMPLIANCE:

============================================================

PHASE 4: BIAS DETECTION AND FAIRNESS

============================================================

PROTECTED CLASS PROXY ANALYSIS:

DISPARATE IMPACT TESTING:

FAIRNESS METRICS:

BIAS MITIGATION:

============================================================

PHASE 5: MODEL GOVERNANCE

============================================================

VERSION CONTROL:

CHAMPION-CHALLENGER FRAMEWORK:

MONITORING AND ALERTING:

APPROVAL AND AUDIT:

============================================================

PHASE 6: EXPLAINABILITY AND TRANSPARENCY

============================================================

GLOBAL EXPLAINABILITY:

LOCAL EXPLAINABILITY:

DOCUMENTATION:

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing output, validate data quality and completeness:

  1. Verify all output sections have substantive content (not just headers).
  2. Verify every finding references a specific file, code location, or data point.
  3. Verify recommendations are actionable and evidence-based.
  4. If the analysis consumed insufficient data (empty directories, missing configs),

note data gaps and attempt alternative discovery methods.

IF VALIDATION FAILS:

IF STILL INCOMPLETE after 2 iterations:

============================================================

OUTPUT

============================================================

Credit Risk Model Analysis Report

System: [name/description]

Stack: [detected technologies]

Models Found: [count and types]

Summary

| Category | Status | Findings | Critical |

|----------|--------|----------|----------|

| Model Architecture | [PASS/WARN/FAIL] | N | N |

| Data Quality | [PASS/WARN/FAIL] | N | N |

| Regulatory Compliance | [PASS/WARN/FAIL] | N | N |

| Bias & Fairness | [PASS/WARN/FAIL] | N | N |

| Model Governance | [PASS/WARN/FAIL] | N | N |

| Explainability | [PASS/WARN/FAIL] | N | N |

Model Inventory

| Model | Type | Features | AUC | Last Validated | Status |

|-------|------|----------|-----|----------------|--------|

Detailed Findings

For each category with WARN or FAIL:

[Category Name]

| # | Severity | File | Description | Regulation | Recommendation |

|---|----------|------|-------------|------------|----------------|

Regulatory Risk Assessment

Bias Analysis Summary

Remediation Priority

[Ordered list by regulatory risk and severity -- compliance issues first]

============================================================

NEXT STEPS

============================================================

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /credit-risk — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

============================================================

DO NOT

============================================================

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.