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

trader-regime — Claude Code skill: market regime detection

The skill asks neural-trader which market regime is running and suggests a strategy type to match. Handy before a backtest or a signal.

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

What trader-regime does

The skill calls npx neural-trader --regime --symbol TICKER and sorts the answer into bull, bear, ranging or volatile. Then the agent runs a SONA prediction through the ruflo-core MCP tools, picks a strategy type, and searches memory for past conditions that look alike. The finished write-up goes back to memory under a regime-DATE key.

Before the first run it checks whether the package is present and installs neural-trader through npm with --ignore-scripts if not. One ticker per call: the CLI answers "Unknown command" to --symbols and --regime-detect.

Watch the version. In 2.8.11 --regime classifies a built-in sample price series and says so in the output: "Synthetic prices used for demo". You get the shape of the report, not a reading on TICKER. Real bars come from --backtest --live with the yahoo-finance source. Indicator flags are gone in that release (--indicators is rejected), so RSI and SMA are library calls, nt.calculateRsi and nt.calculateSma, run over those bars.

What it helps with

  • See which regime the market is in before picking a strategy
  • Get a suggested strategy type for present conditions
  • Find earlier periods with a similar regime in memory
  • Store the analysis under a regime-DATE key for later checks
  • Check the regime before a backtest or a signal

Example prompts for the agent

  • What regime is SPY in right now? Run the trader-regime skill.
  • trader-regime --symbol AAPL: classify the regime and tell me which strategy fits.
  • Before the backtest, run trader-regime on MSFT and save the analysis to memory.

How to install trader-regime

1Skills CLI (Vercel)

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

2Manually: put the files in place

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

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

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

okx-dex-market okx Read-only DEX skill version 4.6.6 for querying token liquidity, holder clusters, whale signals, wallet PnL, and sniper bundles. Claude Code CX Codex Cursor +1 19,100installs plaid-fintech sickn33 Provides integration patterns for the Plaid API, covering Link tokens, ACH Auth, transaction sync, balance checks, and webhook handling. Claude Code CX Codex Cursor +1 956installs quant-analyst sickn33 A quant skill for the agent: financial models, strategy backtests and risk metrics, built on pandas, numpy and scipy. Claude Code CX Codex Cursor +1 942installs gmgn-cooking GMGNAI Creates crypto tokens on launchpads through gmgn-cli and retrieves launch statistics. Use it when working with Pump.fun, FourMeme, Bonk, and related platforms. Claude Code CX Codex Cursor +1 15,900installs churn-prevention coreyhaines31 A Claude Code skill for subscription churn: an exit survey at cancellation, an offer matched to the stated reason, and recovery of failed payments. Claude Code CX Codex Cursor +1 120,600installs revops coreyhaines31 This skill helps design RevOps workflows for lead stages, scoring, routing, and marketing-to-sales handoffs. Use it when CRM processes need clear rules. Claude Code CX Codex Cursor +1 113,000installs community-marketing coreyhaines31 Builds and grows branded communities on Discord or Slack to drive product retention and turn users into advocates. Claude Code CX Codex Cursor +1 89,100installs ads coreyhaines31 Guides paid advertising campaigns across Google Ads and Meta. It connects agents to rigorous playbooks and forbids guessing missing numbers. Claude Code CX Codex Cursor +1 82,200installs

Questions about trader-regime

How do I install trader-regime in Claude Code?

Run npx skills add ruvnet/ruflo --skill trader-regime -a claude-code. The skill lands at ~/.claude/skills/trader-regime/SKILL.md.

What does trader-regime do?

It classifies the market regime with npx neural-trader, recommends a strategy type for it, and keeps the result in ruflo-core memory so later questions can reuse it.

Why does `--regime` return synthetic prices?

In 2.8.11 the flag classifies a built-in demo series, and the output states it. For real bars use --backtest --live with the yahoo-finance source, then compute indicators with nt.calculateRsi and nt.calculateSma.

Source text

SKILL.md · MIT
---
name: trader-regime
description: Detect 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.
allowed-tools: Bash Read mcp__plugin_ruflo-core_ruflo__memory_store mcp__plugin_ruflo-core_ruflo__memory_search mcp__plugin_ruflo-core_ruflo__neural_predict
argument-hint: "[--symbol SPY] [--symbols AAPL,MSFT]"
---
Detect the current market regime using neural-trader's regime detection engine.

Steps:
1. Ensure neural-trader is available:
   `npm ls neural-trader 2>/dev/null || npm install --ignore-scripts neural-trader`
2. Run regime detection:
   ```bash
   npx neural-trader --regime --symbol TICKER
   ```
   One symbol per call (`--regime-detect` and `--symbols` are not recognised; the CLI answers "Unknown command"). In 2.8.11 this classifies a built-in sample price series (the result says "Synthetic prices used for demo"), so it is a demo of the output shape, not a read on TICKER. Say so in the report. For a real read, get the symbol's bars with `--backtest --live` (`dataSource: "yahoo-finance"`) and classify from those.
3. Technical indicators have no standalone CLI flag in 2.8.11 (`--indicators` is rejected). Use the `nt.calculateRsi` / `nt.calculateSma` library functions on real bars, or the `multi-indicator` strategy inside a backtest.
4. Use SONA for regime prediction:
   `mcp__plugin_ruflo-core_ruflo__neural_predict({ input: "indicators: RSI=X, ADX=Y, VIX=Z" })`
5. Search for similar historical regimes:
   `mcp__plugin_ruflo-core_ruflo__memory_search({ query: "regime similar to CURRENT", namespace: "trading-analysis" })`
6. Present: regime classification, confidence, recommended strategy type, historical precedents. If step 2 returned the synthetic sample, present only the output shape and state that no regime was measured.
7. Store analysis:
   `mcp__plugin_ruflo-core_ruflo__memory_store({ key: "regime-DATE", value: "REGIME_ANALYSIS", namespace: "trading-analysis" })`

© 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