trader-risk
What it does
This skill calculates risk figures such as value at risk, expected shortfall and drawdown from a series of returns you supply. It is for people who want to understand how much a portfolio could lose.
When to use it
- ✓When you want risk figures for a portfolio built from your own return history.
- ✓When you want to check the circuit breaker limits on your trading rules.
- ✓When you want to understand a position size before making a decision.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-neural-trader/skills/trader-risk/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Calculate the value at risk and drawdown for these daily returns on a 100,000 portfolio.”
5 new skills a week. 1 minute to read.
How it works
The skill runs the neural-trader risk command on the daily returns you give, then reports value at risk, expected shortfall and drawdown. Without returns, the tool uses a built-in demo sample, which the skill says is not a real reading.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Assess portfolio and position risk using neural-trader's risk engine.
Steps:
- Ensure neural-trader is available:
npm ls neural-trader 2>/dev/null || npm install --ignore-scripts neural-trader - Run risk assessment:
# VaR, CVaR and drawdown from a returns series YOU supply (daily returns as decimals) npx neural-trader --risk assess --returns 0.01,-0.005,0.012,-0.02 --portfolio-value 100000 --confidence-level 0.95 --method historical--risk assesscomputes from--returnsonly.--symboland--portfolioare ignored, and with no--returnsit uses a built-in 7-value sample (inputs.returnsCount: 7), which is a demo, not a risk read on anything. Derive the returns from real bars first (a--backtest --liverun withdataSource: "yahoo-finance", or the user's own history).--var,--correlation,--risk-toleranceand--position-sizingas standalone flags are rejected by the CLI ("Unknown command"). - Position sizing: Kelly sizing exists only inside a backtest (
--backtest ... --position-sizing kelly). For a standalone figure, compute it from the win rate and payoff in the backtest output and state the assumptions; do not present it as an instruction to trade. - Check circuit breaker status:
- Daily loss limit (3%), weekly loss limit (5%)
- Correlation spike (>0.85), volatility regime (VIX > 2x)
- Max positions, single-name concentration (>10%)
- Present: risk metrics, position sizing recommendation, active breakers, alerts
- Store assessment:
mcp__plugin_ruflo-core_ruflo__memory_store({ key: "risk-TICKER-DATE", value: "RISK_METRICS", namespace: "trading-risk" })
FAQ
What returns should I give it?
Daily returns as decimals, taken from real market data or your own history. The built-in sample is only a demo.
Does it size positions for me?
Standalone position sizing is only an estimate. The source says not to present it as an instruction to trade.
What limits does it check?
The skill checks loss limits, correlation spikes, volatility regime and position counts against the rules in the source.
Details
Original description by the author
Assess portfolio risk using npx neural-trader — VaR, CVaR, Sharpe, position sizing, circuit breaker status
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1673
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.