/ruflo-neural-trader:trader-portfolio [--risk-target NUMBER]from ruflo-neural-trader
Optimizes portfolio allocation using neural-trader's mean-variance engine with risk constraints and rebalancing proposals. Loads current holdings, runs optimization, and stores results.
Ships in ruflo-neural-trader. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Optimize portfolio allocation using neural-trader's portfolio engine.
Steps:
npm ls neural-trader 2>/dev/null || npm install --ignore-scripts neural-tradermcp__plugin_ruflo-core_ruflo__memory_search({ query: "current portfolio holdings", namespace: "trading-portfolio" })npx neural-trader --portfolio optimize --symbols AAPL,MSFT,GOOGL --target-return 0.10
(--risk-target is accepted as an alias of --target-return.) In 2.8.11 this returns EQUAL weights and a risk figure for them, with a note saying the returns matrix is not wired; it does not optimise anything. For real mean-variance weights use /trader-portfolio-cg. --portfolio current and --portfolio rebalance run the same equal-weight demo and ignore the word after --portfolio.--var and --correlation are not CLI flags. Use --risk assess --returns <series> (see /trader-risk) with returns you derived from real data.mcp__plugin_ruflo-core_ruflo__neural_predict({ input: "expected returns for [HOLDINGS] given current regime" })/trader-portfolio-cg returns and the user's stated holdings: trades needed, current vs target weights, estimated costs. Present it as a proposal for the user to act on; this plugin places no orders.mcp__plugin_ruflo-core_ruflo__agentdb_pattern-search({ query: "optimized portfolio Sharpe > 1", namespace: "trading-portfolio" })mcp__plugin_ruflo-core_ruflo__memory_store({ key: "portfolio-optimal-TIMESTAMP", value: "ALLOCATION_JSON", namespace: "trading-portfolio" })What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/trader-backtestRun a historical backtest using npx neural-trader with Rust/NAPI engine (8-19x faster) and walk-forward validation; Ed25519-sign the result for paper→live tamper evidence (ADR-126 Phase 4)/trader-cloud-backtestRun a heavy neural-trader job (long walk-forward, big Monte-Carlo, parameter sweep, model training) on the Anthropic Managed Agent cloud runtime instead of locally/trader-explainRegulator-grade feature attribution for any LSTM/Transformer signal — single-entry PageRank ranks the top-K features that drove the prediction (ADR-126 Phase 6, ADR-123 single-entry PR)/trader-portfolio-cgMean-variance portfolio optimization via Conjugate Gradient — 40-60× faster than the legacy Neumann path (ADR-126 Phase 3, ADR-123 Wedge 8)/trader-regimeDetect current market regime using npx neural-trader — bull/bear/ranging/volatile classification with recommended strategy. Use when the user asks about market conditions, wants to pick a strategy for current conditions, or before running a backtest/signal that should be regime-aware./trader-riskAssess portfolio risk using npx neural-trader — VaR, CVaR, Sharpe, position sizing, circuit breaker statusnpx claudepluginhub ruvnet/ruflo --plugin ruflo-neural-traderOther plugins' skills for the same job