risk-analysis

Calculate VaR, CVaR, and maximum drawdown for financial portfolios.

Updated Jul 10, 2026
One-click install
npx skills add https://github.com/day18708433173-crypto/TradingAgents-Pro --skill risk-analysis-day18708433173-crypto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: risk-analysis
Source: https://github.com/day18708433173-crypto/TradingAgents-Pro/tree/main/agent/src/skills/risk-analysis
Command: npx skills add https://github.com/day18708433173-crypto/TradingAgents-Pro --skill risk-analysis-day18708433173-crypto

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, scipy.

What problem does it solve?

This Skill addresses the difficulty of quantifying complex financial risks, helping users move beyond simple volatility metrics to understand tail risks, drawdown potential, and stress-test resilience.

Core Features & Use Cases

  • Advanced Risk Metrics: Calculate VaR, CVaR, and Maximum Drawdown to quantify potential losses.
  • Stress Testing: Simulate portfolio performance against historical crises or hypothetical market shocks like rate hikes or liquidity crunches.
  • Monte Carlo Simulation: Project future price paths using Geometric Brownian Motion to estimate loss probabilities.
  • Use Case: A portfolio manager can use this to determine if a proposed asset allocation survives a 2008-style market crash or a sudden 100bp interest rate spike.

Quick Start

Use the risk-analysis skill to calculate the 95 percent VaR and perform a stress test on the current portfolio against the 2020 COVID shock scenario.

Frequently Asked Questions about risk-analysis

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

FAQPage Schema
How do I calculate VaR and CVaR to measure portfolio tail risk?

To calculate VaR and CVaR, the skill uses statistical modeling and extreme value theory to quantify potential losses and identify fat-tail risks within your portfolio's loss distribution. It provides professional-grade financial risk metrics for comprehensive assessment.

How do I stress test my portfolio against historical market shocks?

You can stress test your portfolio by simulating its performance against historical crises like the 2020 COVID shock or hypothetical market shocks like sudden rate hikes. This evaluates portfolio resilience under extreme financial conditions.

Can I run Monte Carlo simulations to project future price paths?

Yes, you can run Monte Carlo simulations to project future price paths using Geometric Brownian Motion. This estimates loss probabilities and helps evaluate potential drawdowns for your financial portfolio.

Does this risk analysis tool require numpy and pandas to function?

Yes, this risk analysis tool requires numpy, pandas, and scipy as dependencies to perform statistical modeling and comprehensive financial risk measurement. These libraries support the underlying calculations for VaR and Monte Carlo simulations.

Why use CVaR and maximum drawdown instead of simple volatility metrics?

CVaR and maximum drawdown analysis help you move beyond simple volatility metrics to understand extreme tail risks and potential loss distributions. This approach reveals your portfolio's vulnerability to severe market drops and crisis scenarios.