Individual skill

trader-portfolio

Optimize portfolio allocation using npx neural-trader mean-variance engine with risk constraints and rebalancing plan

plugins/ruflo-neural-trader/skills/trader-portfolio/SKILL.md

Read pinned source

Source commit 722232566ad1fc4e73ba4fefc46d77d380ce61ba

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
No
Skill scan complete
No
Observed behavior
Network or broad shell
Last checked
Nov 6, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
81,186
Repository last updated
Nov 6, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt
Optimize portfolio allocation using neural-trader's portfolio engine.

Steps:
1. Ensure neural-trader is available:
   `npm ls neural-trader 2>/dev/null || npm install --ignore-scripts neural-trader`
2. Load current portfolio:
   `mcp__plugin_ruflo-core_ruflo__memory_search({ query: "current portfolio holdings", namespace: "trading-portfolio" })`
3. Run portfolio optimization:
   ```bash
   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`.
4. Risk metrics: `--var` and `--correlation` are not CLI flags. Use `--risk assess --returns <series>` (see `/trader-risk`) with returns you derived from real data.
5. Use SONA for expected return prediction:
   `mcp__plugin_ruflo-core_ruflo__neural_predict({ input: "expected returns for [HOLDINGS] given current regime" })`