ac-backtest-integrity
БесплатноБез исполняемых скриптовНе проверенAuditing whether a trading backtest can be believed: multiple-testing deflation, look-ahead and survivorship leakage, sample and regime adequacy…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Backtest Integrity and Validation Desk
Overview
The Backtest Integrity skill provides a rigorous framework for auditing, validating, and stress-testing quantitative trading strategies. In quantitative finance and digital asset markets, apparent predictive power is frequently an artifact of data snooping, multiple testing, look-ahead bias, and unrealistic cost assumptions. This skill establishes an epistemological defense against false discoveries, ensuring that trading strategies deployed for operational consideration possess genuine statistical edge rather than phantom alpha generated by flawed backtest engineering.
Rooted in academic consensus—including Bailey and López de Prado on the Deflated Sharpe Ratio, Harvey and Liu on multiple testing haircuts, White's Reality Check, and empirical findings on alpha decay (arXiv 2605.16895)—the skill enforces strict pre-registration protocols, robust null hypothesis testing, realistic transaction cost modeling, and definitive binary kill verdicts.
Primary sources for the claims in this section: https://doi.org/10.3905/jpm.2014.40.5.094 and https://doi.org/10.3905/jpm.2015.42.1.013.
When to use
- Pre-registering hypothesis specifications, parameter grids, and decision rules prior to data execution.
- Issuing definitive PROCEED or KILL verdicts and enforcing re-registration barriers for failed strategies.
When NOT to use
- Collecting raw market data, historical price feeds, or building general data-engineering pipelines (use
ac-market-data-collection). - Performing forensic post-mortem analysis on historical liquidation crashes or market cascades (use
ac-cascade-forensics). - Recording individual live trade executions, position sizing ledgers, or discretionary trading journals (use
ac-crypto-trading-discipline). - Deploying live trading algorithms or managing real-time exchange API connections and order routing infrastructure.
Index of Subskills
| Leaf | Domain segment | Scope (one line) |
|---|---|---|
multiple-testing.md |
crypto-trading/multiple-testing |
How many trials actually happened; deflated Sharpe; Harvey-Liu haircuts; White's Reality Check; the 42-cell/41-window arithmetic as a worked example. |
look-ahead-and-leakage.md |
crypto-trading/look-ahead-and-leakage |
Point-in-time discipline (universe, restatements, feature availability), survivorship, and how a single leaked feature invalidates a backtest. |
sample-and-regime.md |
crypto-trading/sample-and-regime |
Regime heterogeneity (herd vs arbitrage regimes with identical distributions), sample size vs effect size, the one-year/five-ticker limits, and subcriticality's implication (no self-sustaining cascade to simulate). |
cost-and-execution.md |
crypto-trading/cost-and-execution |
Commission, spread, impact, funding, and the Sharpe 0.43→0.22 example; fill assumptions that flatter a backtest. |
placebo-and-null.md |
crypto-trading/placebo-and-null |
Shifted placebos, permutation and bootstrap nulls, the collider problem (sample conditioned on its own outcome), and what a null must be able to reject. |
pre-registration.md |
crypto-trading/pre-registration |
Fixing the analysis before the data: hypothesis, window, cells, test statistic, decision rule; the 42-cell/Bonferroni example; versioning the pre-registration. |
verdict-and-kill.md |
crypto-trading/verdict-and-kill |
The decision rule that kills a strategy, documenting the kill, and the conditions under which a killed strategy may be revisited (new data, new pre-registration — never a re-run on the same sample). |
Status and Honest Limits
This skill operates under strict epistemic boundaries. It evaluates quantitative strategies based on published statistical methods, econometric standards, and empirical findings. It does not predict future market returns, guarantee trading profitability, or endorse specific financial assets. All backtest validations are probabilistic assessments subject to model risk, parameter instability, and structural regime shifts.
Sources
- Bailey, D. H., & López de Prado, M. (2014). The Deflated Sharpe Ratio. Journal of Portfolio Management. https://doi.org/10.3905/jpm.2014.40.5.094
- Harvey, C. R., & Liu, Y. (2015). Backtesting. Journal of Portfolio Management. https://doi.org/10.3905/jpm.2015.42.1.013
- White, H. (2000). A Reality Check for Data Snooping. Econometrica. https://doi.org/10.1111/1468-0262.00152
- arXiv:2605.16895. Alpha Illusion. https://arxiv.org/abs/2605.16895
- Open Science Framework (OSF). Pre-Registration Standards. https://osf.io/prereg/
Установить ac-backtest-integrity в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ac-backtest-integrity?
Auditing whether a trading backtest can be believed: multiple-testing deflation, look-ahead and survivorship leakage, sample and regime adequacy, execution-cost honesty, placebo and null tests, pre-registration, and the decision rule that kills a strategy. Audits evidence; never recommends a strategy. Use when asking "is this backtest real", "validate my strategy", "deflated Sharpe", "look-ahead bias", "pre-register a study". Not for data collection (ac-market-data-collection), forensics (ac-cascade-forensics), or the trade record (ac-crypto-trading-discipline).
Как установить скилл ac-backtest-integrity?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ac-backtest-integrity запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic