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 2 weeks 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
2 weeks 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.
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.cc30858· 2 weeks ago
Kind-specific
31Skill: 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: 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: allowed-tools scope
no allowed-tools restriction (Claude may use anything)
Release history
1- releasecurrentcc30858warn2 weeks 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
Planning With Files
Claude Code skill implementing Manus-style persistent markdown planning — the workflow pattern behind the $2B acquisition.
Frontend Slides
Create beautiful slides on the web using Claude's frontend skills
Gpt Researcher
An autonomous agent that conducts deep research on any data using any LLM providers
mh install skills/risk-assessment