backtest-diagnose

Diagnose failed backtests by inspecting artifacts, code, and configuration.

Updated May 15, 2026
One-click install
npx skills add https://github.com/philipcoller-777/Vibe-Trading-TV2 --skill backtest-diagnose-philipcoller-777
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backtest-diagnose
Source: https://github.com/philipcoller-777/Vibe-Trading-TV2/tree/main/agent/src/skills/backtest-diagnose
Command: npx skills add https://github.com/philipcoller-777/Vibe-Trading-TV2 --skill backtest-diagnose-philipcoller-777

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Backtest runs fail or produce unreliable results; this skill guides you to locate root causes and implement fixes.

Core Features & Use Cases

  • Read and inspect artifacts (artifacts/metrics.csv, equity.csv, trades.csv) to surface failure signals.
  • Inspect code and configuration (code/signal_engine.py, config.json) to identify root causes.
  • Classify issues using a defined taxonomy (runtime errors, logic bugs, data errors) and prescribe fixes.
  • After fixes, re-run the backtest and verify metrics to ensure stability.

Quick Start

Provide a diagnosis workflow for a given backtest by examining artifacts, code, and configuration, then apply a targeted fix and re-run.

Frequently Asked Questions about backtest-diagnose

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a failing trading backtest using Python artifacts?

To debug a failing trading backtest, you inspect Python artifacts like metrics.csv, equity.csv, and trades.csv to surface failure signals, then examine code and configuration to pinpoint the root cause before applying fixes.

What causes unreliable backtest results in a trading workflow?

Unreliable backtest results are typically caused by runtime errors, logic bugs in signal_engine.py, or data errors, which can be identified by inspecting output artifacts and configuration files using a structured diagnostic taxonomy.

How do I fix logic bugs in a trading signal engine after a failed backtest?

Fixing logic bugs in a signal engine involves diagnosing the issue in signal_engine.py or config.json, applying a targeted code update via edit_file, and re-running the backtest to verify that the metrics are stable.

Can I diagnose data errors in backtest trades.csv and equity.csv files?

Yes, you can diagnose data errors in backtest trades.csv and equity.csv files by reading and inspecting these artifacts to surface failure signals, classifying the issue, and prescribing fixes to the underlying source code.

What is the best way to troubleshoot a Python backtest that produces runtime errors?

The best way to troubleshoot a Python backtest with runtime errors is to apply a hard-gate checklist that inspects metrics and code files, classifies the error, and guides you through editing the source and re-running the test.

Why does my trading backtest fail after updating config.json?

A trading backtest may fail after updating config.json due to introduced data errors or logic bugs, requiring a diagnostic inspection of artifacts and configuration to classify the issue and apply a corrective edit.