risk-analysis

Quantify portfolio risk with Value at Risk, Expected Shortfall, and maximum drawdown.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/0xZKnw/vibe-trading-tap --skill risk-analysis-0xzknw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: risk-analysis
Source: https://github.com/0xZKnw/vibe-trading-tap/tree/main/agent/src/skills/risk-analysis
Command: npx skills add https://github.com/0xZKnw/vibe-trading-tap --skill risk-analysis-0xzknw

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, potential drawdowns, and stress-test impacts on their portfolios.

Core Features & Use Cases

  • Advanced Risk Metrics: Calculate VaR, CVaR, and maximum drawdown to identify potential losses.
  • Simulation & Stress Testing: Run Monte Carlo simulations and historical scenario stress tests to evaluate portfolio resilience under extreme market conditions.
  • Use Case: A trader can use this skill to simulate how their current portfolio would perform during a liquidity crisis or a sudden interest rate hike, allowing for proactive risk-control adjustments.

Quick Start

Use the risk-analysis skill to calculate the 95 percent VaR and perform a stress test on the provided portfolio return data.

Frequently Asked Questions about risk-analysis

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?

To calculate Value at Risk and Expected Shortfall, use statistical modeling to quantify potential portfolio losses. This skill computes these risk metrics to identify maximum drawdown and tail risks, moving beyond simple volatility to provide actionable risk-control recommendations.

How does Monte Carlo simulation work for financial stress testing?

Monte Carlo simulation for financial stress testing models portfolio resilience under extreme market conditions. It runs scenario-based simulations to evaluate performance during events like liquidity crises, utilizing extreme value theory to project potential drawdowns.

Can I use Python with numpy and pandas to quantify tail risk in trading?

Yes, you can use Python with numpy, pandas, and scipy to quantify tail risk in trading. This skill utilizes these libraries to perform statistical modeling and calculate risk metrics like CVaR for diverse asset classes.

What is the best way to stress test a portfolio against historical market scenarios?

The best way to stress test a portfolio against historical market scenarios is to apply historical events to current return data. This skill evaluates portfolio resilience by simulating extreme market conditions like sudden interest rate hikes.

When do I need extreme value theory for portfolio risk assessment?

You need extreme value theory for portfolio risk assessment when evaluating tail risks beyond standard volatility metrics. It helps quantify potential losses during extreme market conditions, providing actionable risk-control recommendations for diverse asset classes.

Does this risk analysis approach work for diverse asset classes?

Yes, this risk analysis approach works for diverse asset classes. It calculates maximum drawdown, VaR, and CVaR across varied portfolios, allowing you to evaluate resilience and adjust risk controls proactively.