risk-assessment
Assess risk metrics for a stock or position including volatility, beta, VaR, and drawdown analysis. Use when user asks about risk, volatility, beta, VaR, value at risk, drawdown, or position sizing.
How do I install this agent skill?
npx skills add https://github.com/staskh/trading_skills --skill risk-assessmentIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides financial risk assessment metrics (volatility, beta, VaR) for stocks using standard Python libraries. The implementation follows the stated purpose and uses legitimate dependencies.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
2 files scanned · No issues
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
Risk Assessment
Calculate risk metrics for stocks and positions.
Instructions
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin all commands below.
uv run python scripts/risk.py SYMBOL [--period PERIOD] [--position-size SIZE]
Arguments
SYMBOL- Ticker symbol--period- Analysis period: 1mo, 3mo, 6mo, 1y (default: 1y)--position-size- Dollar amount for position-specific metrics (optional)
Output
Returns JSON with:
volatility- Historical volatility (annualized)beta- Beta vs SPYvar_95- 95% Value at Risk (daily)var_99- 99% Value at Risk (daily)max_drawdown- Maximum drawdown in periodsharpe_ratio- Risk-adjusted returnposition_risk- If position-size provided, dollar VaR
Explain what the risk metrics mean and suggest position sizing if relevant.
Dependencies
numpyyfinance
Timezone
All timestamps and time-based calculations must use the America/New_York timezone. All JSON output must include generated_at (NY time string) and data_delay fields.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/staskh/trading_skills/risk-assessment">View risk-assessment on skillZs</a>