
risk-metrics-calculation
Calculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino
by wshobsonFree
Description
risk-metrics-calculation is an agent skill from the wshobson/agents collection for calculating portfolio risk metrics. It covers the measures used in portfolio management: Value at Risk (VaR), Expected Shortfall (CVaR), the Sharpe and Sortino ratios that compare returns with risk, and drawdown analysis, which looks at how far a portfolio fell from a previous high. The skill organizes these into risk metric categories, so an analyst can see which measure answers which question. It applies when measuring portfolio risk, implementing risk limits, building risk dashboards, calculating risk-adjusted returns, setting position sizes, and preparing regulatory reports that call for these measures. It is a calculation toolkit for code that analysts or developers build, so the agent writes and checks the calculations, and the results depend on the return data and assumptions supplied. The skill does not provide investment advice and does not recommend what to buy or sell. Risk measures are estimates that depend on the chosen method and history, so their outputs should be reviewed by people who understand the portfolio and the model. The skill is installed with the skills CLI from the wshobson/agents repository. Its skills.sh page showed about 10.7K installs and passing results from three security audits at the time of the scan.…
Highlights
- Value at Risk and Expected Shortfall
- Sharpe and Sortino ratios
- Drawdown analysis
- Risk metric categories
- Use for risk limits and dashboards
- Installs with the skills CLI
Ratings & Reviews
No ratings yet
Be the first to rate risk-metrics-calculation.
People also visit

3-statement-model
Complete, populate and fill out 3-statement financial model templates
risk-metrics-calculation FAQ
Which metrics are covered?
Value at Risk, Expected Shortfall (CVaR), Sharpe and Sortino ratios, and drawdown analysis.
Does it give investment advice?
No. It is a calculation toolkit and does not recommend what to buy or sell.
What do the results depend on?
The return data and the method and assumptions chosen, so the outputs should be reviewed by people who know the portfolio.
Can it help with position sizing?
Setting position sizes is one of its listed uses, alongside risk limits and risk-adjusted returns.
How do I install it?
Run npx skills add https://github.com/wshobson/agents --skill risk-metrics-calculation.
What security audits does it have?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best risk-metrics-calculation alternatives?
Popular alternatives to risk-metrics-calculation include 3-statement-model, bond-futures-basis and comps-analysis. See all risk-metrics-calculation alternatives








