Skip to content
Skillpedia
Analysis & spreadsheets81k · #1673

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.md

Copy 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

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-neural-trader/skills/trader-risk/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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:

  1. Ensure neural-trader is available: npm ls neural-trader 2>/dev/null || npm install --ignore-scripts neural-trader
  2. 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 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" })
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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills