tcx-anti-overfit

tcx-anti-overfit is a skill for Codex from monarchjuno/tradingcodex. It costs 32 tokens per session (612 once invoked), scanned A, original, Apache-2.0.

A review procedure for checking whether trading backtests and model results are likely to hold up outside the historical data used to create them. A backtest is a test of a trading idea on past market data.

In plain words
What is it for?
Use it to review signals, strategies, papers, and performance claims for data leakage, survivorship bias, repeated testing, out-of-sample coverage, trading costs, liquidity, changing market conditions, and signal decay.
Why use it?
It helps uncover misleading results caused by looking ahead, trying too many variations, ignoring costs, or testing only easy-to-trade assets. It separates results seen on paper from what may be possible in live trading.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to review signals, strategies, papers, and performance claims for data leakage, survivorship bias, repeated testing, out-of-sample coverage, trading costs, liquidity, changing market conditions, and signal decay.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/monarchjuno/tradingcodex/tcx-anti-overfit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add monarchjuno/tradingcodex --skill tcx-anti-overfit
Clone the repo
git clone --depth 1 https://github.com/monarchjuno/tradingcodex

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tcx-anti-overfit

README.md
[![agentmods](https://agentmods.dev/badge/skills/monarchjuno/tradingcodex/tcx-anti-overfit/github.svg)](https://agentmods.dev/skills/monarchjuno/tradingcodex/tcx-anti-overfit)
Your own site
<a href="https://agentmods.dev/skills/monarchjuno/tradingcodex/tcx-anti-overfit"><img src="https://agentmods.dev/badge/skills/monarchjuno/tradingcodex/tcx-anti-overfit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tcx-anti-overfit

Your own site · 80×15
<a href="https://agentmods.dev/skills/monarchjuno/tradingcodex/tcx-anti-overfit"><img src="https://agentmods.dev/badge/skills/monarchjuno/tradingcodex/tcx-anti-overfit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 612 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00612
Opus 5 $0.00016 $0.00306
Sonnet 5 $0.00006 $0.00122
Haiku 4.5 $0.00003 $0.00061

Measured 10d ago against content hash b045b6fbd620, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

tcx-anti-overfit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-anti-overfit/SKILL.md · 64 lines

What it actually says

Anti-Overfit Validation

Use this procedure when a workflow reviews a backtest, signal, model result, technical rule, or paper-alpha claim.

Required output shape:

  • look-ahead leakage
  • survivorship bias
  • data snooping and multiple testing
  • walk-forward or out-of-sample coverage
  • transaction costs, slippage, borrow, funding, and taxes where relevant
  • liquidity and capacity constraints
  • regime sensitivity
  • signal decay
  • paper alpha versus live implementation friction

Quality floor:

  • Treat validation as review, not strategy creation.
  • Before comparing candidates, freeze the hypothesis, selection rule, parameter trial budget, chronological train/validation/holdout windows, and costs. Log every generated, tried, revised, or discarded variant rather than only the winner.
  • Treat a holdout as single-use. Repeated inspection or tuning on its result turns it into training feedback and requires a new untouched holdout or live-forward period.
  • In the data_snooping result, state the observed trial count or defensible effective count and the multiple-testing adjustment used. Use methods such as a reality check, Deflated Sharpe Ratio, or probability of backtest overfitting only when their assumptions and required inputs are actually supported; do not make one statistic a universal gate.
  • Mark unsupported performance claims not-decision-ready, revise, or blocked.
  • Do not imply execution readiness from a chart, backtest, or signal alone.
  • Separate empirical performance from economic plausibility. A high in-sample Sharpe ratio alone is not evidence of a robust effect.

When these checks are in scope, set anti_overfit_required: true and write an anti_overfit_checks object into artifact frontmatter. Include every key below with status (pass, fail, or not_applicable), a non-empty reason, and an evidence_refs list; pass and fail require at least one exact evidence reference.

anti_overfit_checks:
  leakage:
    status: pass
    reason: "State the observed check result."
    evidence_refs: ["exact-artifact-or-source-snapshot-id"]

Use that object shape for leakage, survivorship_bias, data_snooping, out_of_sample, walk_forward_consistency, monte_carlo_permutation, bootstrap_sharpe_ci, cost_assumptions, capacity, and live_friction. Replace the example with observed status and exact evidence. Do not rely on English body keywords to activate or prove validation; the structured fields are language-neutral machine contracts.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 64 lines · 32 tokens per session scan A b045b6fbd620

Subscribe to this mod's changes

tcx-anti-overfit is a skill published in the GitHub repository monarchjuno/tradingcodex (368 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 32 tokens to every session and 612 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.