Assess portfolio risk using npx neural-trader — VaR, CVaR, Sharpe, position sizing, circuit breaker status
Install
npx skills add https://github.com/ruvnet/ruflo --skill trader-riskSKILL.md
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" })
Related skills
swarm-orchestrationruvnet2.1KMulti-agent swarm coordination for complex tasks. Uses hierarchical topology with specialized agents to break down and execute complex work across multiple files and modules. Use when: 3+ files need changes, new feature implementation, cross-module refactoring, API changes with tests, security-related changes, performance optimization across codebase, database schema changes. Skip when: single file edits, simple bug fixes (1-2 lines), documentation updates, configuration changes, quick exploratiagent-arch-system-designruvnet1.4KAgent skill for arch-system-design - invoke with $agent-arch-system-designagent-workflowruvnet1.4KAgent skill for workflow - invoke with $agent-workflowsecurity-auditruvnet1.4KComprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enforcement. Use when: authentication implementation, authorization logic, payment processing, user data handling, API endpoint creation, file upload handling, database queries, external API integration. Skip when: read-only operations on public data, internal development tooling, static documentation, styling changes.