Skip to content
Back to skills

Trader Risk

ASecurity

Assess portfolio risk using npx neural-trader — VaR, CVaR, Sharpe, position sizing, circuit breaker status

  • 82,861 stars
  • 0 votes
  • 0 copies
  • 11 views
  • Added May 27, 2026
data-aibash

Works with

  • cli
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 9, 2026

npx -y skills add ruvnet/ruflo --skill trader-risk --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Trader Risk?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Trader Risk
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ruvnet-trader-risk/badge)](https://www.skillsdirectory.com/skills/ruvnet-trader-risk)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: trader-risk
description: Assess portfolio risk using npx neural-trader — VaR, CVaR, Sharpe, position sizing, circuit breaker status
allowed-tools: Bash Read mcp__plugin_ruflo-core_ruflo__memory_store mcp__plugin_ruflo-core_ruflo__memory_search
argument-hint: "[--symbol TICKER] [--portfolio NAME]"
---
Assess portfolio and position risk using neural-trader's risk engine.

Steps:
1. Ensure neural-trader is available:
   `npm ls neural-trader 2>/dev/null || npm install --ignore-scripts neural-trader`
2. Run risk assessment:
   ```bash
   # 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 assess` computes from `--returns` only. `--symbol` and `--portfolio` are ignored, and with no `--returns` it 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 --live` run with `dataSource: "yahoo-finance"`, or the user's own history). `--var`, `--correlation`, `--risk-tolerance` and `--position-sizing` as standalone flags are rejected by the CLI ("Unknown command").
3. 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.
4. 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%)
5. Present: risk metrics, position sizing recommendation, active breakers, alerts
6. Store assessment:
   `mcp__plugin_ruflo-core_ruflo__memory_store({ key: "risk-TICKER-DATE", value: "RISK_METRICS", namespace: "trading-risk" })`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.