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

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

Trains neural network models on market data using the neural-trader CLI. Prepares market forecasts with confidence intervals for specific tickers.

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

What trader-train does

The skill automates training LSTM, Transformer, and N-BEATS architectures on market data via neural-trader. The agent verifies the package installation with npm, invokes the command with the mandatory --train flag, and passes the ticker symbol. Results are recorded in memory under the canonical trading-analysis namespace as outlined in ADR-126.

In version 2.8.11 of the library, both neuralTrain and neuralPredict return an upstreamStub: true response. Actual fitting does not take place yet. The skill explicitly notes this placeholder status instead of reporting fake accuracy numbers. It also skips feeding placeholder outputs into SONA training via mcp__plugin_ruflo-core_ruflo__neural_train.

The CLI does not support --model-compare or --horizon flags. The agent reports these missing features directly instead of fabricating benchmark rankings.

What it helps with

  • train an LSTM or Transformer model on ticker price history
  • generate market predictions with confidence intervals
  • store run output under the canonical trading-analysis namespace
  • skip SONA fine-tuning when the underlying library returns a stub

Example prompts for the agent

  • Train an lstm model for ticker BTC using trader-train
  • Run trader-train with transformer model for AAPL with 50 epochs
  • Generate price predictions for ETH with trader-train and nbeats

How to install trader-train

1Skills CLI (Vercel)

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

2Manually: put the files in place

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

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

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

Questions about trader-train

How to install trader-train in Claude Code?

Run the command npx skills add ruvnet/ruflo --skill trader-train -a claude-code. The skill file will be placed in ~/.claude/skills/trader-train/SKILL.md.

What does trader-train do?

It orchestrates the neural-trader CLI to train price forecasting models and generate predictions with confidence intervals. The skill then saves analysis records to memory via MCP tools.

Why does trader-train report an upstreamStub flag?

In version 2.8.11, the underlying ML engine returns placeholder data rather than fitted weights. The skill highlights this limitation and avoids quoting placeholder metrics as real model accuracy.

Source text

SKILL.md · MIT
---
name: trader-train
description: Train neural models (LSTM, Transformer, N-BEATS) on market data using npx neural-trader with confidence intervals
allowed-tools: Bash Read mcp__plugin_ruflo-core_ruflo__memory_store mcp__plugin_ruflo-core_ruflo__memory_search mcp__plugin_ruflo-core_ruflo__neural_train
argument-hint: "<lstm|transformer|nbeats> --symbol <TICKER>"
---
Train neural prediction models using neural-trader's ML engine.

Steps:
1. Ensure neural-trader is available:
   `npm ls neural-trader 2>/dev/null || npm install --ignore-scripts neural-trader`
2. Train the specified model:
   ```bash
   npx neural-trader --train --model lstm --symbol TICKER --epochs 50
   ```
   `--train` is required; `--model X --symbol T` alone is rejected ("Unknown command"), and `--confidence` and `--decompose` do not exist. In 2.8.11 the result carries `upstreamStub: true` ("neuralTrain returns a placeholder shape (no real LSTM/Transformer fit yet)"). Report that no model was fitted; never describe the output as a trained model or quote its numbers as accuracy.
3. Review training output: loss curves, validation metrics, prediction accuracy
4. Generate predictions with confidence intervals:
   ```bash
   npx neural-trader --predict --model MODEL --symbol TICKER [--gpu]
   ```
   `--horizon` is not supported, and `neuralPredict` is also a placeholder (`upstreamStub: true`) in 2.8.11.
5. Model comparison (`--model-compare`) does not exist in the CLI. Without a real fit there is nothing to compare; say so rather than fabricating a ranking.
6. Store model results (canonical `trading-analysis` namespace per ADR-126 Phase 1 — was previously stored to undeclared `trading-models`):
   `mcp__plugin_ruflo-core_ruflo__memory_store({ key: "model-MODEL-TICKER-DATE", value: "TRAINING_RESULTS", namespace: "trading-analysis" })`
7. Train SONA on model outcomes:
   `mcp__plugin_ruflo-core_ruflo__neural_train({ modelType: "moe", epochs: 10 })` (`modelType` is required; there is no `patternType`). Skip this step when step 2 returned a stub, so placeholder runs do not train SONA.

© 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