Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

trader-risk — Claude Code skill: what it does, how to install

Evaluates portfolio VaR, CVaR, drawdown limits, and circuit breaker status using the neural-trader risk engine.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ruvnet/ruflo --skill trader-risk -a claude-code
Open on GitHub

What trader-risk does

The skill evaluates market risk through the neural-trader engine. The agent checks for the npm package via npm ls neural-trader and installs it with npm install --ignore-scripts neural-trader when needed. The core calculation runs through npx neural-trader --risk assess.

The --risk assess command processes figures strictly from the --returns flag. The CLI ignores --symbol and --portfolio. Running the command without explicit returns is misleading because the tool silently analyzes a seven-point demo sample. Returns must be extracted first from historical bars or backtests. Standalone flags like --var or --position-sizing fail with an Unknown command error.

Kelly position sizing works only during backtest runs with --position-sizing kelly. The skill monitors circuit breakers including a 3% daily loss, a 5% weekly loss, single-asset concentration over 10%, and volatility spikes where VIX exceeds 2x. It stores the final metrics in mcp__plugin_ruflo-core_ruflo__memory_store under the trading-risk namespace.

What it helps with

  • calculate portfolio VaR and CVaR from return series
  • check daily and weekly loss circuit breakers
  • monitor single-name concentration above 10 percent
  • save risk assessment metrics to ruflo persistent memory

Example prompts for the agent

  • Assess portfolio risk for returns 0.01,-0.005,0.012,-0.02 with portfolio value 100000
  • Check circuit breaker status for daily and weekly drawdown limits
  • Run historical VaR assessment at 0.95 confidence level on the returns series

How to install trader-risk

1Skills CLI (Vercel)

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

2Manually: put the files in place

~/.claude/skills/trader-risk/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/trader-risk/

From the same set104

The whole set →
ruflo ruvnet This skill adds multi-agent orchestration, memory, routing, and MCP tools to a project. Use it for swarm tasks and multi-step workflows. Claude Code CX Codex Cursor +1 4,000installs Swarm Orchestration ruvnet Skill for managing agent swarms with parallel execution, dynamic topology, and automatic load balancing. Use when a single agent is not enough and you need to orchestrate specialists of different types. Claude Code CX Codex Cursor +1 2,100installs github-project-management ruvnet Turns issue triage and board upkeep into gh and ruv-swarm calls: labels, subtasks, duplicate lookup. Useful when the tracker holds more tickets than order. Claude Code CX Codex Cursor +1 1,400installs github-workflow-automation ruvnet Automates GitHub Actions with AI agent coordination. Generates optimised pipelines, manages pull requests, analyzes failed runs, and deploys updates with risk assessment. Claude Code CX Codex Cursor +1 1,300installs github-code-review ruvnet Runs a swarm of specialized AI agents to inspect GitHub pull requests for security, performance, and architecture issues. Claude Code CX Codex Cursor +1 1,300installs stream-chain ruvnet Chains sequential agent steps together using streaming JSON flow and provides ready-to-run pipelines. Claude Code CX Codex Cursor +1 1,200installs flow-nexus-swarm ruvnet Deploy cloud-based AI agent swarms and define event-driven workflows with message queues. Use it to coordinate tasks, inspect runs, and scale a swarm. Claude Code CX Codex Cursor +1 1,200installs performance-analysis ruvnet Detects bottlenecks in Claude Flow swarms, profiles agent operations, and generates reports with actionable optimization recommendations. Claude Code CX Codex Cursor +1 1,200installs

Similar

okx-dex-market okx Read-only DEX skill version 4.6.6 for querying token liquidity, holder clusters, whale signals, wallet PnL, and sniper bundles. Claude Code CX Codex Cursor +1 19,100installs plaid-fintech sickn33 Provides integration patterns for the Plaid API, covering Link tokens, ACH Auth, transaction sync, balance checks, and webhook handling. Claude Code CX Codex Cursor +1 956installs quant-analyst sickn33 A quant skill for the agent: financial models, strategy backtests and risk metrics, built on pandas, numpy and scipy. Claude Code CX Codex Cursor +1 942installs gmgn-cooking GMGNAI Creates crypto tokens on launchpads through gmgn-cli and retrieves launch statistics. Use it when working with Pump.fun, FourMeme, Bonk, and related platforms. Claude Code CX Codex Cursor +1 15,900installs churn-prevention coreyhaines31 A Claude Code skill for subscription churn: an exit survey at cancellation, an offer matched to the stated reason, and recovery of failed payments. Claude Code CX Codex Cursor +1 120,600installs revops coreyhaines31 This skill helps design RevOps workflows for lead stages, scoring, routing, and marketing-to-sales handoffs. Use it when CRM processes need clear rules. Claude Code CX Codex Cursor +1 113,000installs community-marketing coreyhaines31 Builds and grows branded communities on Discord or Slack to drive product retention and turn users into advocates. Claude Code CX Codex Cursor +1 89,100installs ads coreyhaines31 Guides paid advertising campaigns across Google Ads and Meta. It connects agents to rigorous playbooks and forbids guessing missing numbers. Claude Code CX Codex Cursor +1 82,200installs

Questions about trader-risk

How to install trader-risk in Claude Code?

Run npx skills add ruvnet/ruflo --skill trader-risk -a claude-code in your terminal. The file is placed in ~/.claude/skills/trader-risk/SKILL.md.

What does trader-risk do?

It runs the neural-trader risk engine to calculate historical VaR and CVaR, checks loss breaker thresholds, and saves metrics to persistent memory.

Why does trader-risk require an explicit returns series?

The CLI flag --risk assess only reads from --returns, ignoring --symbol and --portfolio. Omitting returns forces a 7-value mock sample rather than actual portfolio data.

Source text

SKILL.md · MIT
---
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" })`

© ruvnet · MIT · ruvnet/ruflo

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor