Skip to content
Automation
Skill

/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.

From plugin
staskh-trading-skills
36429 skills
Install
$ npx -y skills add staskh/trading_skills --skill risk-assessment --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/risk-assessment

Context preview

The summary Claude sees to decide when to auto-load this skill.

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.

SKILL.md

risk-assessment.SKILL.md
name: risk-assessment
description: 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.
dependencies: ["trading-skills"]

Risk Assessment

Calculate risk metrics for stocks and positions.

Instructions

> **Note:** If `uv` is not installed or `pyproject.toml` is not found, replace `uv run python` with `python` in 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 SPY
  • `var_95` - 95% Value at Risk (daily)
  • `var_99` - 99% Value at Risk (daily)
  • `max_drawdown` - Maximum drawdown in period
  • `sharpe_ratio` - Risk-adjusted return
  • `position_risk` - If position-size provided, dollar VaR

Explain what the risk metrics mean and suggest position sizing if relevant.

Dependencies

  • `numpy`
  • `yfinance`

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.

Ships withstaskh-trading-skills

Most retail traders juggle 5+ tabs — broker, charting platform, screener, news feed, spreadsheet — just to decide whether to enter a trade. This project collapses all of that into a single conversational interface powered by Claude.

Get the whole plugin
Stats
364
Stars
82
Forks
Active
Maintenance
Python
Language
MIT
License
1d ago
Last commit
6mo ago
Created

Repo: staskh/trading_skills

Other skills on staskh-trading-skills.