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.
pinned to #cc30858updated 3 months ago
Ask your AI client: “install skills/risk-assessment”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install skills/risk-assessmentmetahub onboarded this repo on the author's behalf.
If you own github.com/staskh/trading_skills on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
288
Last commit
3 months ago
Latest release
published
- #ai-trading
- #claude
- #claude-skills
- #mcp-server
- #option-trading
- #options-trading
About this skill
Pulled from SKILL.md at publish time.
Calculate risk metrics for stocks and positions.
Automated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.cc30858· 3 months ago
Behavioral checks ran but aren't published for this artifact; the static checks above ran at publish time.
Kind-specific
3 passed1 warningSkill: triggers declaredwarn
No `trigger` phrases in SKILL.md frontmatter
Add `trigger:` lines so Claude knows when to activate this skill — e.g. `when building MCP servers` or `for diagram creation`.
Skill: SKILL.md present
found at .claude/skills/risk-assessment/SKILL.md · frontmatter source: SKILL.md
Skill: body content present
167 words · 1,123 chars · 5 sections · 1 code block
Skill: allowed-tools scope
no allowed-tools restriction (Claude may use anything)
Release history
1- releasecurrentcc30858warn3 months ago
Contents
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.
Reviews
No reviews yet. Be the first.
Related
Verification Before Completion
Evidence before assertions, always
Writing Plans
Turn specs into phased implementation plans
Test-Driven Development
Red → green → refactor discipline for any feature or bugfix
mh install skills/risk-assessment