forward-risk

Estimate portfolio losses using Value-at-Risk, Expected Shortfall, and stress testing.

164|33|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/JoelLewis/finance_skills --skill forward-risk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forward-risk
Source: https://github.com/JoelLewis/finance_skills/tree/main/plugins/wealth-management/skills/forward-risk
Command: npx skills add https://github.com/JoelLewis/finance_skills --skill forward-risk

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps users understand and quantify the potential financial losses a portfolio could face under various market conditions, enabling better risk management.

Core Features & Use Cases

  • Value-at-Risk (VaR) Calculation: Estimate maximum potential loss at a given confidence level (e.g., 95% VaR).
  • Conditional VaR (CVaR) / Expected Shortfall: Determine the average loss given that the VaR threshold is breached, providing insight into tail risk.
  • Scenario Analysis & Stress Testing: Simulate portfolio performance under specific adverse market events (e.g., market crashes, interest rate shocks).
  • Risk Decomposition: Identify which specific assets or factors contribute most to the overall portfolio risk (Component VaR, Factor Risk).
  • Use Case: A portfolio manager wants to know the maximum potential loss on their equity portfolio over the next trading day with 99% confidence, and what the average loss would be if that threshold is breached.

Quick Start

Estimate the 95% one-day VaR for a portfolio with given weights and covariance matrix.

Frequently Asked Questions about forward-risk

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

FAQPage Schema
How do I calculate Value at Risk and Expected Shortfall for a portfolio?

Value at Risk and Expected Shortfall are calculated using parametric models, empirical distributions, or Monte Carlo simulations to quantify potential portfolio losses at specific confidence thresholds and analyze tail risk.

How does Monte Carlo simulation work for stress testing portfolio risk?

Monte Carlo simulation for stress testing models portfolio performance under adverse market events like crashes or interest rate shocks, generating distribution scenarios to estimate potential losses and evaluate risk management strategies.

What is the best way to decompose portfolio risk into component and marginal VaR?

Decomposing portfolio risk into component and marginal VaR identifies which specific assets or factors contribute most to overall risk, enabling targeted risk management and quantitative analysis of portfolio vulnerabilities.

Can I use numpy and scipy for regulatory capital calculations and factor risk analysis?

Yes, numpy and scipy support regulatory capital calculations and factor risk analysis by implementing parametric models and quantitative risk management algorithms to estimate potential future losses accurately.

When do I need Conditional VaR instead of standard VaR for risk management?

Conditional VaR is needed when analyzing tail risk beyond standard VaR thresholds, calculating average losses given threshold breaches to provide deeper insight into extreme portfolio loss scenarios.