backtest · starchild-ai-agent — Claude Code skill: what it does, how to install
backtest runs historical simulations for crypto trading ideas to report actual returns, drawdowns, and performance metrics.
no license 217 installs ★ 33 updated 2026-10-22
npx skills add Starchild-ai-agent/official-skills --skill backtest -a claude-codeWhat backtest does
The skill converts entry and exit rules into runnable Python scripts. Before generating code, the assistant clarifies target assets, time horizons, and triggers. Code runs through existing tools in scripts/ or generates new ones, producing performance charts and summaries in output/.
It handles two core execution modes: fast vectorized passes for basic signal tests and bar-by-bar loops for orders with stop-loss or dynamic position sizing. Logic automatically shifts indicators by one step to counter look-ahead bias and factors in a baseline 0.1% trade fee.
Without a valid COINGECKO_API_KEY and the pandas, numpy, and mplfinance Python packages, data retrieval and execution will fail.
What it helps with
- Test moving average or RSI indicators against historical crypto prices
- Calculate portfolio drawdown, total return, and Sharpe ratios
- Simulate order execution with trading fees and realistic bar delays
- Generate equity curve charts and summary visuals
Example prompts for the agent
- Backtest an EMA crossover strategy on BTC using historical hourly data
- Run an RSI mean-reversion test on ETH and calculate max drawdown with fees
- Evaluate a walk-forward MACD setup and save equity charts to output
How to install backtest
1Skills CLI (Vercel)
npx skills add Starchild-ai-agent/official-skills --skill backtest -a claude-code2Manually: put the files in place
~/.claude/skills/backtest/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/backtest/
1Skills CLI (Vercel)
npx skills add Starchild-ai-agent/official-skills --skill backtest -a codex2Manually: put the files in place
.agents/skills/backtest/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Starchild-ai-agent/official-skills --skill backtest -a cursor2Manually: put the files in place
.cursor/skills/backtest/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Starchild-ai-agent/official-skills backtest2Manually: put the files in place
.github/skills/backtest/SKILL.md1Skills CLI (Vercel)
npx skills add Starchild-ai-agent/official-skills --skill backtest -a gemini-cli2Platform CLI
gemini skills install https://github.com/Starchild-ai-agent/official-skills --path backtestManually: put the files in place
.devin/skills/backtest/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Starchild-ai-agent/official-skills --skill backtest -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about backtest
How to install backtest in Claude Code?
Run npx skills add Starchild-ai-agent/official-skills --skill backtest -a claude-code.
What does the backtest skill do?
It builds and executes backtesting routines for crypto strategies, outputting drawdown numbers, return rates, and equity charts.
What prerequisites are required for backtesting?
You need COINGECKO_API_KEY set in your environment alongside pandas, numpy, and mplfinance installed via pip.
Similar skills
All skills for Finance and business →backtest by other authors comes first.