$npx skillfedfor your agent

risk-analysis

Risk-analysis provides quantitative methods for measuring portfolio risk through Value at Risk, Conditional Value at Risk, maximum drawdown analysis, and Monte Carlo simulation. It includes historical and parametric VaR calculation, tail-risk analysis via extreme value theory, and stress-testing frameworks using both historical scenarios and hypothetical shock models.

Risk-analysis calculates VaR, CVaR, and maximum drawdown to assess portfolio risk exposure.

AI-generated summary based on this skill's SKILL.md

28,096 4,557 MITupdated by HKUDS

Decision gist · record as of 2026-07-27

Risk-analysis calculates VaR, CVaR, and maximum drawdown to assess portfolio risk exposure. Risk-analysis provides quantitative methods for measuring portfolio risk through Value at Risk, Conditional Value at Risk, maximum drawdown analysis, and Monte Carlo simulation. It includes historical and parametric VaR calculation, tail-risk analysis via extreme value theory, and stress-testing frameworks using both historical scenarios and hypothetical shock models.

manual: git clone https://github.com/HKUDS/Vibe-Trading → cp -r Vibe-Trading/agent/src/skills/risk-analysis ~/.claude/skills/risk-analysis
agent/src/skills/risk-analysis/SKILL.md · version b44d3e38

Use it when

  • Risk-analysis runs Monte Carlo simulations to model tail risk and extreme scenarios across your portfolio.
  • Yes.

Verify before relying

Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

HKUDS/Vibe-Trading/risk-analysis · repository language: Python

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How does risk-analysis calculate VaR and CVaR for portfolio risk?

Risk-analysis computes Value at Risk and Conditional Value at Risk (expected shortfall) using both historical and parametric methods. VaR measures the maximum loss at a given confidence level, while CVaR captures the expected loss beyond that threshold. The skill supports multiple calculation approaches to suit different portfolio structures and risk profiles.

What monte carlo simulation capabilities does risk-analysis offer?

Risk-analysis runs Monte Carlo simulations to model tail risk and extreme scenarios across your portfolio. By generating thousands of potential price paths, it reveals how your holdings behave under stress conditions and helps identify tail-risk exposures that traditional metrics might miss.

Can risk-analysis stress test my portfolio against historical crises?

Yes. Risk-analysis includes stress-testing frameworks that replay historical market shocks—such as the 2008 crisis—against your current portfolio. It also supports hypothetical scenario analysis, letting you model custom shocks to interest rates, volatility, or asset correlations to assess resilience.

How does risk-analysis analyze tail behavior and extreme value theory?

Risk-analysis applies extreme value theory and Generalized Pareto Distribution (GPD) fitting to analyze tail behavior. This approach captures fat-tail risk and rare events more accurately than normal-distribution assumptions, helping you understand the true probability and magnitude of extreme losses.

What risk-control recommendations does risk-analysis generate?

Risk-analysis generates actionable risk-control recommendations based on drawdown analysis, volatility metrics, and stress-test results. These suggestions help you rebalance, hedge, or adjust position sizes to align your portfolio with your risk tolerance and performance objectives.

Does risk-analysis support maximum drawdown and recovery analysis?

Risk-analysis measures maximum drawdown to quantify the largest peak-to-trough decline in your equity curve. It also analyzes recovery patterns, helping you understand how long portfolios typically take to bounce back from losses and informing your risk-management strategy.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Risk Measurement and Stress Testing

Overview

Systematic risk-measurement methodology covering VaR/CVaR calculation, Monte Carlo simulation, stress-test design, and tail-risk analysis. It provides risk evaluation for backtest results and risk-control constraints for asset allocation.

Risk Measurement Methods

1. VaR (Value at Risk)

Definition: the maximum expected loss over a given horizon at a specified confidence level.

Three Calculation Methods
Method Formula / Steps Advantages Disadvantages
Historical simulation Sort historical returns and take the quantile No distribution assumption Depends on historical samples
Parametric (normal) VaR = μ - z_α × σ Easy to compute Assumes a normal distribution
Monte Carlo Simulate N paths and take the quantile Flexible Computationally intensive
Historical Simulation Implementation

```python import numpy as

(truncated - see the full file via the links below)

File tree — 1 file
agent/src/skills/risk-analysis/SKILL.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Calculate VaR, CVaR, and maximum drawdown for portfolio risk assessment”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

risk-analyzer
by CoWork-OS · CoWork-OS/CoWork-OS

Risk Analyzer quantifies portfolio risk through Value at Risk calculations—parametric, historical, and Monte Carlo methods—alongside conditional VaR, stress testing, and drawdown analysis. It identifies key risk concentrations and factor exposures to guide mitigation decisions.

MITupdated Jul 2026
★ 406repo stars
forward-risk
by JoelLewis · JoelLewis/finance_skills

Quantify potential portfolio losses across normal and extreme market conditions using parametric VaR, Monte Carlo simulation, Expected Shortfall, and scenario analysis. Decompose risk by position and factor to identify which holdings drive portfolio volatility. Stress-test portfolios against historical crises and custom market shocks.

MITupdated Jul 2026
★ 159repo stars
risk-metrics-calculation
by wshobson · wshobson/agents

Measure portfolio risk across volatility, tail risk, drawdown, and risk-adjusted performance dimensions. Includes Value at Risk, Expected Shortfall, and drawdown analysis with support for multiple time horizons and stress testing scenarios.

MITupdated Jul 2026
★ 38,308repo stars
portfolio-analytics
by agiprolabs · agiprolabs/claude-trading-skills

Portfolio Analytics calculates comprehensive performance metrics from equity curves and trade logs, including returns, volatility, value-at-risk, Sharpe and Sortino ratios, maximum drawdown, and trade-level statistics. Generate rolling analysis windows and investor-ready performance summaries to evaluate strategy performance against benchmarks.

MITupdated Jun 2026
★ 248repo stars
risk-management
by agiprolabs · agiprolabs/claude-trading-skills

Risk Management establishes a survival-first framework for protecting trading capital through drawdown thresholds, daily and weekly loss limits, and concentration controls across tokens and strategies. It includes automated circuit breakers triggered by consecutive losses or volatility spikes, recovery math tables, and crypto-specific safeguards for smart contract, rug pull, and MEV risks.

MITupdated Jun 2026
★ 248repo stars
historical-risk
by JoelLewis · JoelLewis/finance_skills

Quantify how risky an investment has been using historical price data. This skill computes annualized volatility, maximum drawdown, recovery time, historical VaR, downside deviation, and tracking error—supporting multiple volatility estimators including Parkinson and Yang-Zhang methods. Use it to analyze peak-to-trough losses and asymmetric downside risk.

MITupdated Jul 2026
★ 159repo stars

More skills correlation-analysis (MIT) · cwicr-risk-calculator (MIT) · Montecarlo (NOASSERTION)

Tags
quantitative-risktail-risk-modelingmonte-carlo-methodsdrawdown-analysisstress-scenario-testingextreme-value-theoryportfolio-risk-metricsrisk-decompositionmarket-shock-analysisrisk-budgeting