risk-analysis

Compute VaR, CVaR, and maximum drawdown from return series.

Updated Jun 12, 2026
One-click install
npx skills add https://github.com/GGwujun/SigmX --skill risk-analysis-ggwujun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: risk-analysis
Source: https://github.com/GGwujun/SigmX/tree/main/agent/src/skills/risk-analysis
Command: npx skills add https://github.com/GGwujun/SigmX --skill risk-analysis-ggwujun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quantifies and communicates downside risk for portfolios using standardized risk metrics to support informed decision-making.

Core Features & Use Cases

  • VaR/CVaR computation from given return series
  • Maximum drawdown and recovery analysis
  • Monte Carlo simulations and scenario stress testing
  • Tail-risk assessment using EVT fits
  • Use Case: assess risk of a monthly rebalanced portfolio under market shocks

Quick Start

Run a full risk analysis on the provided return data to generate a report with VaR, CVaR, max drawdown, Monte Carlo paths, and tail-risk metrics.

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 from a return series for portfolio risk analysis?

To calculate VaR and CVaR from a return series, you need historical return data and portfolio weights to compute downside risk using historical, parametric, and Monte Carlo methods, generating a structured risk report.

What is the best way to perform stress testing on a monthly rebalanced portfolio?

The best way to perform stress testing on a monthly rebalanced portfolio is by applying predefined market shock scenarios to your return data, evaluating portfolio resilience and downside risk impact.

How does Monte Carlo simulation work for computing portfolio tail risk?

Monte Carlo simulation for portfolio tail risk works by generating random return paths based on historical parameters, calculating VaR and expected shortfall to quantify extreme downside risk probabilities.

Can I use EVT tail distribution fitting for maximum drawdown analysis?

Yes, EVT tail distribution fitting can be used alongside maximum drawdown analysis to model extreme market movements, providing deeper insight into tail risk and recovery periods for your portfolio.

What inputs are required to run a full risk analysis with VaR and stress testing?

Running a full risk analysis requires input return data and portfolio weights, plus an optional benchmark, to produce clear risk recommendations and reproducible VaR, CVaR, and drawdown results.

When should I use Monte Carlo VaR instead of historical VaR for downside risk quantification?

Use Monte Carlo VaR when you need to simulate hypothetical market shocks and model future risk distributions, whereas historical VaR relies strictly on past return data for downside risk quantification.