Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

run-variant-cycle

Skill by tradingstrategy-ai

Creates a variant of a backtesting or optimiser notebook, runs it, and reports the results to GitHub and the chat. It is for researchers who test trading strategies in notebooks.

  • Score 62
  • 265 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install run-variant-cycle

Built from the published package, never by AI.

git clone --depth 1 https://github.com/tradingstrategy-ai/getting-started /tmp/getting-started && mkdir -p ~/.claude/skills && cp -r /tmp/getting-started/.claude/skills/run-variant-cycle ~/.claude/skills/run-variant-cycle

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install run-variant-cycle in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill takes an existing backtesting or optimiser notebook, usually a previous experiment or one the user links. It creates a new numbered notebook with updated parameters, a new title, and a reference to the original notebook. For optimiser notebooks, it resets iterations to 18 so the first run finishes sooner.

The skill runs the notebook with the jupyter-execute-agent runner and fixes any bugs it finds. It then summarises the equity curve and key portfolio metrics, checks for lucky single trades or suspicious results, and posts the findings as a GitHub PR comment and a chat message. The source describes it as a workflow for researchers running repeated backtest experiments.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create notebook variantCopies a backtest or optimiser notebook into a new numbered file with updated parameters and title.
  • Reset optimiser iterationsSets iterations to 18 in optimiser variants so the first run is quicker.
  • Run notebookExecutes the notebook with the jupyter-execute-agent runner and reruns it after fixing bugs.
  • Analyse resultsAdds a summary metrics table to the notebook and checks positions and equity curve jumps.
  • Quantify single tradesUses curator.py to measure whether a result depends on one trade on one vault.
  • Post GitHub PR commentPosts the results, charts and notebook viewer URL as a titled PR comment.
  • Post chat summarySends the same results to the chat, with the equity curve image where images are supported.

What you need

  • Poetry for running the repository commands
  • A GitHub pull request, branch and worktree
  • The notebook-static-server running on a tailnet URL

Try asking

  • Create a variant of my last backtest notebook with a 20-day lookback and run it
  • Turn this optimiser notebook into a variant that tests a new target function
  • Run a variant of notebook 40 with a different trading universe and post the results to the PR

Good to know

  • Notebook viewer URLs are internal tailnet URLs and must not be exposed through a public unauthenticated tunnel
  • Optimiser iterations are reset to 18 for the first run, so the user must raise them later
  • Results must be posted to a GitHub PR, which requires an open worktree, branch and PR

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/run-variant-cycle/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to run-variant-cycle

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

run-variant-cycle: common questions

What kind of notebook does this skill work on?

It works on backtesting or optimiser notebooks, usually a previous experiment notebook or one linked by the user. The source also covers other research notebooks.

Does it run the notebook automatically?

Yes. It runs the notebook with the jupyter-execute-agent runner, using a subagent, and reruns it after bug fixes.

Where are the results posted?

The results are posted as a GitHub PR comment and as a chat message, including the notebook viewer URL.

How do I install run-variant-cycle?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is run-variant-cycle free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is run-variant-cycle safe to use?

It scores 62 of 100. Grades: maintenance B, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to run-variant-cycle?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

run-variant-cycle Install

Add to stack

Loading.