Agent skill

Trader Cloud Backtest

by ruvnet in ruvnet/ruflo

Run 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

MITAuto-check: notesBusiness, Finance & HR

Install Trader Cloud Backtest

skills CLI
$ npx skills add ruvnet/ruflo --skill trader-cloud-backtest -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ruvnet/ruflo trader-cloud-backtest --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ruflo-neural-trader/skills/trader-cloud-backtest .claude/skills/trader-cloud-backtest && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
trader-cloud-backtest
GitHub stars
74k
Token cost
~1.8k tokens
SKILL.md length
444 words
Files
1
Skills in repo
264
Repo updated
First seen
Licence
MIT

At a glance

Run 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

  • Works in 7 steps: Estimate first. From the job size, print… → Provision (or reuse) the container —… → Pre-flight cheap. Before a 1000-path /… → …
  • Tasks that involve Trading and backtesting
  • SKILL.md covers When to use this vs…, Steps, Cost rules (don't skip) and Quick example
  • Calls npx; needs ANTHROPIC_API_KEY and CLAUDE_API_KEY

What it does

Trader Cloud Backtest is an agent skill from ruvnet/ruflo. Run 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

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Business, Finance & HR, covering Trading and backtesting and Fine-tuning. It works with Anthropic API. The repository describes itself as: 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory…. The licence is MIT.

When your agent uses it

  • Tasks that involve Trading and backtesting
  • Tasks that involve Fine-tuning

Example prompts

  • “/trader-cloud-backtest”

Requirements

  • Node.js
  • A credential in ANTHROPIC_API_KEY
  • A credential in CLAUDE_API_KEY
  • Pre-approved tools (allowed-tools): mcp__plugin_ruflo-core_ruflo__managed_agent_create, mcp__plugin_ruflo-core_ruflo__managed_agent_prompt, mcp__plugin_ruflo-core_ruflo__managed_agent_events, mcp__plugin_ruflo-core_ruflo__managed_agent_status, mcp__plugin_ruflo-core_ruflo__managed_agent_terminate, mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_retrieve, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__agentdb_pattern-store, Bash, Read

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Estimate first. From the job size, print an estimated cost (≈ container-minutes × rate + tokens) — a long sweep is a deliberate choice…
  2. Provision (or reuse) the container — install neural-trader at container start so the agent doesn't reinstall mid-run
  3. Pre-flight cheap. Before a 1000-path / multi-year run, do a tiny smoke first (1 MC path, ~3 months) — catches a bad strategy name / symbol…
  4. Run the real job
  5. Pull artifacts (if needed): managed_agent_prompt({ sessionId, message: "cat /tmp/equity.csv" }) or managed_agent_events and read the…
  6. Ingest locally + Ed25519 verify (ADR-126 Phase 4 fail-closed gate)
  7. Terminate immediately — results in hand

What it can do on your machine

Read from SKILL.md and the folder at commit de590e1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • mcp__plugin_ruflo-core_ruflo__managed_agent_create
    • mcp__plugin_ruflo-core_ruflo__managed_agent_prompt
    • mcp__plugin_ruflo-core_ruflo__managed_agent_events
    • mcp__plugin_ruflo-core_ruflo__managed_agent_status
    • mcp__plugin_ruflo-core_ruflo__managed_agent_terminate
    • mcp__plugin_ruflo-core_ruflo__memory_store
    • mcp__plugin_ruflo-core_ruflo__memory_retrieve
    • mcp__plugin_ruflo-core_ruflo__memory_search
    • mcp__plugin_ruflo-core_ruflo__agentdb_pattern-store
    • Bash

    …and 1 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ANTHROPIC_API_KEY
    • CLAUDE_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Trader Cloud Backtest loads about 1.8k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 444 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: mcp__plugin_ruflo-core_ruflo__managed_agent_create, mcp__plugin_ruflo-core_ruflo__managed_agent_prom

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ruvnet/ruflo at commit de590e1, republished under its MIT licence (© ruvnet). 444 words, ~1,808 tokens.

Download SKILL.mdSave it as .claude/skills/trader-cloud-backtest/SKILL.md (or your agent's skills folder).
name
trader-cloud-backtest
description
Run 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
allowed-tools
mcp__plugin_ruflo-core_ruflo__managed_agent_create, mcp__plugin_ruflo-core_ruflo__managed_agent_prompt, mcp__plugin_ruflo-core_ruflo__managed_agent_events, mcp__plugin_ruflo-core_ruflo__managed_agent_status, mcp__plugin_ruflo-core_ruflo__managed_agent_terminate, mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_retrieve, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__agentdb_pattern-store, Bash, Read
argument-hint
<backtest|train|sweep> <strategy-or-model> --symbol <TICKER> [--period 2020-2024] [--mc-paths 1000]

Cloud backtest / train (neural-trader on a Managed Agent)

Dispatch a heavy neural-trader job to an Anthropic Claude Managed Agent (cloud container) instead of running it locally. See project ADR-117 (recipe + cost rules) and ADR-115 (the managed_agent_* runtime).

When to use this vs trader-backtest (local)

JobRuntime
Quick sanity check; one short backtest (< ~1 min)local — use the trader-backtest skill
Multi-year walk-forward, big Monte-Carlo count, parameter sweep over a grid, or model training (LSTM/Transformer/N-BEATS)cloud — this skill

Prereq: ANTHROPIC_API_KEY (or CLAUDE_API_KEY) + Managed Agents beta access. If managed_agent_* returns "needs ANTHROPIC_API_KEY", fall back to the local trader-backtest skill.

Steps

  1. Estimate first. From the job size, print an estimated cost (≈ container-minutes × rate + tokens) — a long sweep is a deliberate choice, not a default.

  2. Provision (or reuse) the container — install neural-trader at container start so the agent doesn't reinstall mid-run:

    managed_agent_create({
      name: "nt-cloud",
      model: "claude-haiku-4-5-20251001",            // orchestration only — the compute is the Rust engine, not the LM (ADR-026)
      system: "You operate the `neural-trader` CLI in this container. Run exactly the commands asked, report the metrics, write requested artifacts, then stop.",
      networking: "unrestricted",                     // or "restricted" pinned to your data host
      packages: { npm: ["neural-trader"] },           // add apt:["build-essential"] ONLY if there's no prebuilt NAPI binary for the arch (neural-trader ships prebuilds → usually omit)
      initScript: "npm install -g --ignore-scripts neural-trader >/dev/null 2>&1 || npx -y neural-trader --version >/dev/null 2>&1 || true"
    })
    → { sessionId, agentId, environmentId }

    For a sweep: create the environment once, run all configs in one managed_agent_prompt (one container), not N sessions.

  3. Pre-flight cheap. Before a 1000-path / multi-year run, do a tiny smoke first (1 MC path, ~3 months) — catches a bad strategy name / symbol in seconds:

    managed_agent_prompt({ sessionId, message: "Run `npx neural-trader --backtest --strategy <name> --symbol <TICKER> --period <last 3 months> --mc-paths 1`. Just confirm it ran and report the Sharpe. Then stop.", maxWaitMs: 60000 })

    If that fails, fix the args before the real run (and managed_agent_terminate).

  4. Run the real job:

    managed_agent_prompt({
      sessionId,
      message: "Run `npx neural-trader --backtest --strategy <name> --symbol <TICKER> --period <range> --walk-forward --mc-paths <N>` (for training: `npx neural-trader --train --model <lstm|transformer|nbeats> --symbol <TICKER> --period <range>`; for a sweep: loop the configs and run each). Report: total return, annualized return, Sharpe, Sortino, max drawdown, win rate, profit factor, # trades, 95% CVaR. Write the equity curve to /tmp/equity.csv and the trade log to /tmp/trades.csv. Then stop.",
      maxWaitMs: <generous — minutes>
    })
    → { finished, status, stopReason, assistantText (the metrics), toolUses }

    If finished:false, follow up with managed_agent_events({ sessionId }) until idle.

  5. Pull artifacts (if needed): managed_agent_prompt({ sessionId, message: "cat /tmp/equity.csv" }) or managed_agent_events and read the tool_result.

  6. Ingest locally + Ed25519 verify (ADR-126 Phase 4 fail-closed gate):

    • Build the SignedBacktestArtifact body from the cloud-returned metrics + params hash + runs hash. Sign it locally with signBacktestArtifact(body, privateKeyHex) from plugins/ruflo-neural-trader/src/signed-artifact.mjs (key resolution same as trader-backtest: RUFLO_WITNESS_KEY_PATH → verification/witness-key.json → degraded-unsigned warning).
    • Before storing OR promoting the artifact to a live strategy: call await verifyBacktestArtifact(artifact, trustedPublicKey) where trustedPublicKey is the pinned project-config Ed25519 public key (NOT the artifact.witnessPublicKey field — that's attacker-controllable; see CWE-347 / #1922). If verification returns false: REFUSE to promote — emit a loud error "[ERROR] ruflo-neural-trader: SignedBacktestArtifact signature INVALID against trusted key — refusing to promote to live strategy" and return early. This is the fail-closed gate per ADR-126.
    • On verify success: memory_store({ key: "backtest-<strategy>-<ts>", value: JSON.stringify(signedArtifact), namespace: "trading-backtests" }). The stored value carries witnessSignature + witnessPublicKey.
    • If Sharpe > 1.5: agentdb_pattern-store({ pattern: "profitable-<strategy-type>", data: "<params + results>" }).
    • Record the run's container time + token cost to the cost-tracking namespace (per ADR-117 — cloud sessions bill until terminated).
  7. Terminate immediately — results in hand:

    managed_agent_terminate({ sessionId, environmentId })   → { sessionDeleted: true, environmentDeleted: true }

    Never leave an idle billing container. (ruflo doctor / GC catches orphans — #1931.)

Show full SKILL.md (53 more words)Show less

Cost rules (don't skip)

  • Install once (initScript), reuse the environment, batch sweeps into one prompt, pre-flight cheap, terminate eagerly, use Haiku/Sonnet for the agent loop, estimate before kicking off. (ADR-117 §"Cost optimization".)
  • A cloud backtest that runs for an hour costs an hour of container time + the agent-loop tokens. Be deliberate.

Quick example

managed_agent_create  { "name":"nt-cloud", "model":"claude-haiku-4-5-20251001", "packages":{"npm":["neural-trader"]}, "initScript":"npm install -g --ignore-scripts neural-trader >/dev/null 2>&1 || true" }
  → { sessionId:"sesn_…", environmentId:"env_…" }
managed_agent_prompt   { "sessionId":"sesn_…", "message":"Run `npx neural-trader --backtest --strategy multi-indicator --symbol SPY --period 2020-2024 --walk-forward --mc-paths 1000`. Report Sharpe/Sortino/max-DD/win-rate/CVaR; write /tmp/equity.csv. Then stop.", "maxWaitMs":600000 }
  → { finished:true, status:"idle", assistantText:"<metrics>", toolUses:[{bash:"npx neural-trader --backtest …"}] }
# … memory_store the metrics, agentdb_pattern-store if Sharpe>1.5, record cost …
managed_agent_terminate { "sessionId":"sesn_…", "environmentId":"env_…" }

© ruvnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ruflo-neural-trader/skills/trader-cloud-backtest of ruvnet/ruflo.

Open the folder on GitHubat commit de590e1

Compare with similar skills

Trader Cloud Backtest next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Trader Cloud Backtest compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Trader Cloud Backtest this skillruvnet/ruflo74k—~1.8kAutomated safety check: NotesMIT
Worth Buy Stocksstarriv/worth-buy-stocks174—~4.5kAutomated safety check: NotesNone
DojoNecmttn/ax116—~1.7kAutomated safety check: PassAGPL-3.0
Bankrmajiayu000/claude-skill-registry6663 repos~7kAutomated safety check: NotesMIT
Akshare Online AlphaLeoYeAI/openclaw-master-skills2.2k—~1.6kAutomated safety check: PassMIT
Tushare Datazillionare/zillionare3182 repos~2.3kAutomated safety check: PassNone

Similar skills

  • Worth Buy Stocks

    starriv/worth-buy-stocks

    Evaluate US stocks under an Alpaca trend and relative-strength framework, and prioritize defined-risk net-credit income spreads: Bull Put/Bear Call first, Iron Condor second.

    174 GitHub stars~4.5k tokensUpdated 4 days ago
    Business, Finance & HRAuto-check: notes
  • Dojo

    Necmttn/ax

    Surplus-quota training loop over the ax graph - the agent burns the remaining 5h/7d plan-quota window on self-improvement: locking pending verdicts, filling briefs, backtesting routing classes…

    116 GitHub stars~1.7k tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Bankr

    majiayu000/claude-skill-registry

    AI-powered crypto trading agent and LLM gateway via natural language.

    666 GitHub starsUsed in 3 repos~7k tokens
    Business, Finance & HRAuto-check: notes
  • Akshare Online Alpha

    LeoYeAI/openclaw-master-skills

    Run Wyckoff master-style analysis from stock codes, holdings (symbol/cost/qty), cash, CSV data, and optional chart images.

    2.2k GitHub stars~1.6k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed
  • Tushare Data

    zillionare/zillionare

    面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

    318 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Tradingview MCP

    atilaahmettaner/tradingview-mcp

    AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…

    4.9k GitHub stars~1.3k tokensUpdated today
    Business, Finance & HRAuto-check passed

More from ruvnet/ruflo

All 264 skills in this repo
  • Stores, searches, and retrieves successful patterns with HNSW-indexed semantic search so agents can reuse past solutions instead of relearning them.

    74k GitHub starsUsed in 2 repos~830 tokens
    Auto-check passed
  • Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.

    74k GitHub starsUsed in 2 repos~823 tokens
    Auto-check passed
  • Applies the SPARC method (specification, pseudocode, architecture, refinement, completion) with 17 specialized modes and multi-agent orchestration, from research to deployment.

    74k GitHub starsUsed in 2 repos~829 tokens
    Auto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Auto-check passed
  • Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.

    74k GitHub starsUsed in 1 repo~975 tokens
    Auto-check passed
  • Agent Coordination

    ruvnet/ruflo

    Reference for spawning, listing, monitoring and stopping agents with claude-flow commands, with agent type families, routing codes and coordination tips.

    74k GitHub starsUsed in 2 repos~519 tokens
    Auto-check passed

Works with

Questions about Trader Cloud Backtest

What does Trader Cloud Backtest do?

Run 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 Cloud Backtest is an agent skill from ruvnet/ruflo.

When should I use Trader Cloud Backtest?

Trader Cloud Backtest fits situations like: tasks that involve Trading and backtesting; tasks that involve Fine-tuning.

How do I install Trader Cloud Backtest in Claude Code?

Run `npx skills add ruvnet/ruflo --skill trader-cloud-backtest -a claude-code`. Or copy the skill folder (plugins/ruflo-neural-trader/skills/trader-cloud-backtest in ruvnet/ruflo) into .claude/skills/trader-cloud-backtest in your project. Claude Code loads it when a task matches its description.

How do I install Trader Cloud Backtest in Codex?

Run `npx skills add ruvnet/ruflo --skill trader-cloud-backtest -a codex`. Or copy the skill folder (plugins/ruflo-neural-trader/skills/trader-cloud-backtest in ruvnet/ruflo) into .agents/skills/trader-cloud-backtest in your project. Codex loads it when a task matches its description.

Can I use Trader Cloud Backtest in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ruvnet/ruflo --skill trader-cloud-backtest -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trader-cloud-backtest, .gemini/skills/trader-cloud-backtest, .github/skills/trader-cloud-backtest and .opencode/skills/trader-cloud-backtest in your project.

What does Trader Cloud Backtest need to run?

Going by SKILL.md and its folder, Trader Cloud Backtest needs the command-line tools its instructions call (npx) and credentials named ANTHROPIC_API_KEY and CLAUDE_API_KEY. Our summary lists: Node.js; A credential in ANTHROPIC_API_KEY; A credential in CLAUDE_API_KEY. Its frontmatter pre-approves these tools: mcp__plugin_ruflo-core_ruflo__managed_agent_create, mcp__plugin_ruflo-core_ruflo__managed_agent_prompt, mcp__plugin_ruflo-core_ruflo__managed_agent_events, mcp__plugin_ruflo-core_ruflo__managed_agent_status, mcp__plugin_ruflo-core_ruflo__managed_agent_terminate, mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_retrieve, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__agentdb_pattern-store, Bash, Read.

Does Trader Cloud Backtest access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Trader Cloud Backtest safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Trader Cloud Backtest use?

Trader Cloud Backtest is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Trader Cloud Backtest use?

About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Trader Cloud Backtest?

Skills that share tags, products or a category with Trader Cloud Backtest: Worth Buy Stocks (starriv/worth-buy-stocks, 174 stars), Dojo (Necmttn/ax, 116 stars), Bankr (majiayu000/claude-skill-registry, 666 stars) and Akshare Online Alpha (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Trader Cloud Backtest?

ruvnet (a GitHub user) maintains it in ruvnet/ruflo, which has 74,012 GitHub stars. The repository holds 264 skills in this directory. The repository was last updated on October 7, 2026.

Source: ruvnet/ruflo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.