Audit a market-data CSV for missing bars, timezone drift, weekend handling, stale ticks, duplicate timestamps, and survivorship. Use before running any backtest on new data.
Ships in quant-review-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Garbage in → backtest lies. Before ANY strategy runs on new data, audit it.
timestamp, open, high, low, close, volumelow <= open <= high for every barlow <= close <= high for every barlow <= high (sanity)volume >= 0high == low with non-zero volume → suspiciousimport pandas as pd
def scrub(df: pd.DataFrame, timeframe: str = "1h") -> dict:
issues = {}
expected_delta = pd.Timedelta(timeframe)
issues["dupes"] = df.index.duplicated().sum()
issues["monotonic"] = df.index.is_monotonic_increasing
issues["gaps"] = ((df.index.to_series().diff() > expected_delta).sum())
issues["ohlc_break"] = ((df["low"] > df["open"]) |
(df["low"] > df["close"]) |
(df["high"] < df["open"]) |
(df["high"] < df["close"]) |
(df["low"] > df["high"])).sum()
issues["neg_volume"] = (df["volume"] < 0).sum()
issues["nan_rows"] = df.isna().any(axis=1).sum()
issues["stale_bars"] = ((df["volume"] == 0) &
(df["open"] == df["close"])).sum()
return issues
Single markdown table with Check / Result / Severity / Fix.
Severity:
End with a one-sentence verdict: ready for backtest / fixes required.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/backtest-reviewAudit a trading-strategy backtest for look-ahead bias, overfitting, unrealistic assumptions, and regime-dependence. Use this skill when reviewing backtest code, backtest results, equity curves, or considering whether to deploy a strategy live./hedge-labExplore hedging constructs for a crypto position — delta hedging, basis trading, funding-rate capture, cross-exchange arb. Use when holding directional BTC/ETH exposure and wanting to reduce risk without closing the position./indicator-designInteractive skill for designing custom technical indicators from a trading hypothesis. Claude asks about the hypothesis, helps operationalize it, and generates vectorized pandas implementations. Use when starting from a discretionary trading idea and wanting to test it systematically./quant-review-skills:data-scrubfrom quant-review-skills
quant-review-skills@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin quant-review-skills