risk-metrics-calculation

Calculate portfolio risk metrics including VaR, CVaR, and drawdowns.

4|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill risk-metrics-calculation-ai-foundry-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: risk-metrics-calculation
Source: https://github.com/AI-Foundry-Core/ril-agents/tree/main/plugins/quantitative-trading/skills/risk-metrics-calculation
Command: npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill risk-metrics-calculation-ai-foundry-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Calculate portfolio risk metrics to quantify exposure and risk-adjusted performance, helping you understand and manage downside risk.

Core Features & Use Cases

  • Comprehensive risk metrics: volatility, VaR (historical, parametric, Cornish-Fisher), CVaR, drawdown analysis, and risk-adjusted ratios (Sharpe, Sortino, Calmar, Omega).
  • Portfolio-wide analysis: supports single-asset and multi-asset portfolios with rolling risk and stress testing.
  • Use Case: Evaluate a portfolio's risk profile across time horizons and scenarios to inform position sizing and risk limits.

Quick Start

Run risk-metrics-calculation on your returns series to generate a full risk report including VaR, CVaR, drawdowns, and risk-adjusted metrics.

Frequently Asked Questions about risk-metrics-calculation

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

FAQPage Schema
How do I calculate VaR and CVaR for a multi-asset portfolio?

To calculate VaR and CVaR for a multi-asset portfolio, you process your returns series to generate historical, parametric, and Cornish-Fisher VaR variants alongside conditional Value at Risk. This quantifies exposure across historical periods and live monitoring.

What is the best way to run stress testing on portfolio risk metrics?

The best way to run stress testing on portfolio risk metrics is applying deterministic and Monte Carlo scenarios to your returns data. This evaluates your portfolio's risk profile across various time horizons to inform position sizing and risk limits.

Can I calculate rolling risk and drawdown analysis for a single asset?

Yes, you can calculate rolling risk and drawdown analysis for a single asset. The calculation supports both single-asset and multi-asset portfolios, allowing you to monitor volatility and maximum drawdowns across historical periods.

What risk-adjusted ratios do I need to evaluate portfolio performance?

To evaluate portfolio performance you need risk-adjusted ratios including Sharpe, Sortino, Calmar, and Omega. These metrics quantify risk-adjusted performance by comparing returns against volatility and drawdown exposure.

Does portfolio risk calculation work with live monitoring or only historical periods?

Portfolio risk calculation works with both historical periods and live monitoring. It processes your returns series to continuously quantify exposure, track drawdowns, and update risk-adjusted metrics across time horizons.