risk-metrics-calculation

Calculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino, and drawdown.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/PriyanshKuniyal/gemini-cli-resources --skill risk-metrics-calculation-priyanshkuniyal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: risk-metrics-calculation
Source: https://github.com/PriyanshKuniyal/gemini-cli-resources/tree/main/extensions/claude-code-workflows/plugins/quantitative-trading/skills/risk-metrics-calculation
Command: npx skills add https://github.com/PriyanshKuniyal/gemini-cli-resources --skill risk-metrics-calculation-priyanshkuniyal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of manually calculating complex portfolio risk metrics like Value at Risk (VaR), Conditional Value at Risk (CVaR), Sharpe Ratio, Sortino Ratio, and drawdown analysis, providing a streamlined solution for portfolio risk management.

Core Features & Use Cases

  • Calculate VaR, CVaR, Sharpe, Sortino, and Drawdown: Offers a comprehensive toolkit for measuring portfolio risk.
  • Automated Risk Analysis: Streamlines the process of portfolio risk analysis, allowing for quicker decision-making.
  • Use Case: Imagine you need to assess the risk profile of a portfolio. This Skill can automatically compute key risk metrics to help inform your strategy.

Quick Start

Execute the skill to automatically calculate portfolio risk metrics for the current month's returns.

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 Value at Risk and Conditional Value at Risk for a portfolio?

To calculate portfolio risk metrics like Value at Risk (VaR), Conditional Value at Risk (CVaR), Sharpe Ratio, Sortino Ratio, and drawdown, execute the Skill on your current month's returns. It automatically computes these measures to streamline portfolio risk analysis and inform your investment strategy.

What is the best way to automate Sharpe Ratio and Sortino Ratio calculations?

Automating Sharpe Ratio and Sortino Ratio calculations requires a tool that processes your returns data directly. This Skill automatically calculates these ratios, alongside VaR and drawdown, to provide a comprehensive risk profile and streamline portfolio risk analysis for quicker decision-making.

Do I need to understand financial risk principles to use portfolio risk analysis tools?

Yes, you need a basic understanding of financial risk principles to use this portfolio risk analysis tool effectively. It utilizes standard risk calculation methodologies to compute metrics like VaR, CVaR, and drawdown analysis, assuming you can interpret these financial risk measures.

Can I run drawdown analysis on my current month's portfolio returns?

Yes, you can run drawdown analysis on your current month's portfolio returns by executing the Skill. It automatically calculates drawdown alongside other critical risk metrics like VaR and Sharpe Ratio to help you assess the risk profile of your portfolio.

Why calculate CVaR instead of just using standard Value at Risk for portfolio analysis?

Calculating CVaR alongside standard Value at Risk provides a more comprehensive portfolio analysis by measuring the expected loss in extreme tail-risk scenarios. This Skill computes both metrics, plus Sharpe Ratio and drawdown, to deliver a complete evaluation of portfolio health.