Skip to content
alyn
staskh

Risk Assessment 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.

$npx skills add staskh/trading_skills --skill risk-assessment
View this skill on GitHubstaskh/trading_skills/.claude/skills/risk-assessment/SKILL.md
Pack stars
407
Pack installs
3.1k
Alyn Score
51/99
Updated
2 days ago
License
MIT
– views – installs via Alyn

Install Risk Assessment

Pick your agent. Every command is ready to paste.

$npx skills add staskh/trading_skills --skill risk-assessment

The open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads risk-assessment when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the risk-assessment skill”. In Codex, type $risk-assessment.

The skill itself

SKILL.md

FolderGitHub

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.

Tips for Risk Assessment

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • This skill ships scripts. Read them before the first run, and run it in a project without secrets first.
  • • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Risk Assessment

What does the Risk Assessment skill do?

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 Risk Assessment?

Run "npx skills add staskh/trading_skills --skill risk-assessment" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Risk Assessment work in Cursor and Codex?

Yes. Risk Assessment uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

Is Risk Assessment free?

Risk Assessment is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.

Who made Risk Assessment?

Risk Assessment is published by staskh in the staskh/trading_skills repository, together with 29 other skills.

Similar skills. From other creators.