Agent skill

Quant Validation

by avelikiy in avelikiy/great_cto

The methods a financial-ML result has to survive before it is evidence — purged cross-validation with an embargo, triple-barrier labelling, sample uniqueness under overlapping labels, fractional…

MITAuto-check passedBusiness, Finance & HR

Install Quant Validation

skills CLI
$ npx skills add avelikiy/great_cto --skill quant-validation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install avelikiy/great_cto quant-validation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/avelikiy/great_cto.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/quant-validation .claude/skills/quant-validation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
quant-validation
GitHub stars
103
Used in
1 other repo
Token cost
~1.9k tokens
SKILL.md length
1,050 words
Files
1
Skills in repo
30
Repo updated
First seen
Licence
MIT

At a glance

The methods a financial-ML result has to survive before it is evidence — purged cross-validation with an embargo, triple-barrier labelling, sample uniqueness under overlapping labels, fractional…

  • Works in 6 steps: Purged cross-validation with an embargo → Triple-barrier labelling → Sample uniqueness under overlapping labels → …
  • Tasks that involve Trading and backtesting
  • SKILL.md covers 1. Purged cross-validation…, 2. Triple-barrier labelling, 3. Sample uniqueness under… and 4. Fractional differentiation, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Quant Validation is an agent skill from avelikiy/great_cto. The methods a financial-ML result has to survive before it is evidence — purged cross-validation with an embargo, triple-barrier labelling, sample uniqueness under overlapping labels, fractional differentiation, meta-labelling, and multiple-testing correction. Written because the invariants were required of quant-researcher and nothing in the project explained how to satisfy them: a rule without a method produces either an invention or a block. Applied whenever a backtest, a feature or a label is being designed…

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Business, Finance & HR, covering Trading and backtesting and Machine learning. The repository describes itself as: You already have the agent. This is everything around it. greatcto runs Claude Code as a pipeline of 70 specialist agents — an independent model checks each stage before the next… The licence is MIT.

When your agent uses it

  • Tasks that involve Trading and backtesting
  • Tasks that involve Machine learning

Example prompts

  • “/quant-validation”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Grep, Glob

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Purged cross-validation with an embargo
  2. Triple-barrier labelling
  3. Sample uniqueness under overlapping labels
  4. Fractional differentiation
  5. Meta-labelling
  6. The multiple-testing problem

What it can do on your machine

Read from SKILL.md and the folder at commit 0658773. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Quant Validation loads about 1.9k tokens when it runs. Until then it costs about 136 tokens; SKILL.md has 1,050 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~136
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from avelikiy/great_cto at commit 0658773, republished under its MIT licence (© avelikiy). 1,050 words, ~1,941 tokens.

Download SKILL.mdSave it as .claude/skills/quant-validation/SKILL.md (or your agent's skills folder).
name
quant-validation
description
The methods a financial-ML result has to survive before it is evidence — purged cross-validation with an embargo, triple-barrier labelling, sample uniqueness under overlapping labels, fractional differentiation, meta-labelling, and multiple-testing correction. Written because the invariants were required of quant-researcher and nothing in the project explained how to satisfy them: a rule without a method produces either an invention or a block. Applied whenever a backtest, a feature or a label is being designed or judged.
allowed-tools
Read, Write, Grep, Glob
when_to_use
Apply when work touches the validity of a financial model, not its returns: - quant-researcher designs or judges a backtest, a feature set, or a labelling…
effort
low
paths
docs/research/**, docs/architecture/**

Validating a financial model — the five ways the number lies

A backtest that looks excellent and loses money live is not usually a bad strategy. It is a good measurement of the wrong thing. Each section below is one mechanism by which a number becomes convincing without becoming true.

On sourcing. The methods here are standard and attributable — most of them to Marcos López de Prado's Advances in Financial Machine Learning, with the information-ratio framing from Grinold & Kahn. This file states the MECHANISM and what to check, and deliberately does not restate formulas from memory. Where an implementation needs an exact expression — the deflated Sharpe ratio in particular — verify it against the primary source before shipping a number that depends on it. A formula recalled approximately is worse here than no formula: it produces a specific, wrong, confident figure.

1. Purged cross-validation with an embargo

The leak. In a normal k-fold split, training and test rows are disjoint. In a financial series they are not independent: a label at time t is computed from data spanning t to t+h. A training observation inside that window has seen the future the test observation is being asked to predict.

Purging. Drop from the training set every observation whose label window overlaps the label window of any test observation. Not the observation's timestamp — its label window. This is the step people skip, because a plain timestamp split looks like it already separates them.

The embargo. Purging is not enough when features are serially correlated: a training row immediately AFTER the test set still carries information about it. Drop a further band after each test fold. The band is a fraction of the total sample; there is no universal value, so state the one used and why.

Combinatorial purged CV. A single train/test split yields one backtest path and one Sharpe. Splitting combinatorially yields many paths and therefore a distribution, which is what you actually want: a strategy whose single path looks good and whose distribution straddles zero has told you something a point estimate hid.

What to check: is the split purged, is there an embargo, is its size stated, and is the reported figure a distribution or a single draw.

2. Triple-barrier labelling

The problem with fixed-horizon returns. Labelling "the return over the next five days" assumes you would have held for five days. You would not: a stop-loss would have taken you out on day two. The model is trained on an outcome that could not have happened.

The method. Three barriers per observation — a profit-take level, a stop-loss level, and a time limit. The label is which barrier was touched first. Levels are usually set from a volatility estimate rather than fixed, because a 2% move means different things in different regimes.

What to check: are the barriers volatility-scaled, is the time limit stated, and does the label record which barrier ended the observation rather than only the sign.

3. Sample uniqueness under overlapping labels

The problem. Overlapping label windows mean two rows can describe largely the same outcome. Standard learning assumes independent draws; here they are not, so the effective sample is far smaller than the row count and every confidence interval computed from that count is too narrow.

Two responses: weight each observation by its average uniqueness (how much of its label window it does not share), or draw with a sequential bootstrap that prefers observations overlapping little with those already drawn.

What to check: is a uniqueness weighting or effective sample size reported. A row count offered as a sample size is a wrong number, not a rough one.

Show full SKILL.md (448 more words)Show less

4. Fractional differentiation

The dilemma. Price levels are non-stationary; a model fitted to them learns a level that will not recur. The reflex is a first difference — returns — which is stationary and has thrown away the memory the signal lived in.

The method. Difference by the smallest order d, generally fractional, at which the series passes a stationarity test while retaining maximum correlation with the undifferenced series. d is a result, not a setting: it is searched for, and it is reported.

What to check: is d reported at all, was it searched rather than assumed, and was correlation with the original series measured — not just the stationarity test passed. Passing the test is the constraint; keeping the memory is the objective.

5. Meta-labelling

What it is. Two models rather than one. The primary decides the SIDE — long, short, flat. The secondary decides only whether to ACT on that call, as a binary: take this bet or pass.

Why it helps. The two tasks have different error costs. A side model tuned for accuracy tends to trade too often; a secondary model can raise precision — fewer, better-founded bets — without touching the side logic. It also gives a natural place to size a bet by confidence, which a single model conflates with direction.

What to check: if a model both picks the side and decides whether to trade, say whether those were separated. If not, the reported precision is measuring two decisions at once.

6. The multiple-testing problem

The mechanism. Try enough configurations and one will look excellent by chance. The reported Sharpe of the best of N trials is not an estimate of that strategy's Sharpe — it is the maximum of N draws, and its expectation rises with N even when every strategy is worthless.

The minimum honest response: report N. How many feature sets, parameter values, and universes were tried to reach the reported one. A Sharpe without a trials count cannot be interpreted, and the count is usually much larger than people remember — every abandoned variant counts.

The correction: the deflated Sharpe ratio adjusts for the number of trials and for the non-normality of returns. Its exact expression is not restated here (see the sourcing note above); implement it from the primary source.

What to check: is N reported, and if a correction is claimed, does the implementation cite where the expression came from.

What this pack does not cover

Execution, order routing, market microstructure, and portfolio construction. The installed quant command set covers those well — measured: order-book, VWAP/TWAP and implementation-shortfall material across eighteen files, and nothing on any method above. This pack exists to fill exactly that hole, not to duplicate what is already there.

© avelikiy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/quant-validation of avelikiy/great_cto.

Open the folder on GitHubat commit 0658773

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in avelikiy/great_cto, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Quant Validation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Quant Validation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Quant Validation this skillavelikiy/great_cto1031 repos~1.9kAutomated safety check: PassMIT
Feature Engineeringagiprolabs/claude-trading-skills410—~2.7kAutomated safety check: PassMIT
Walk Forward Validationagiprolabs/claude-trading-skills410—~2.2kAutomated safety check: PassMIT
QuantMind Training Config Generatorqusong0627/QuantMind1.7k—~1.5kAutomated safety check: PassAGPL-3.0
Machine Learning Trading StrategyHKUDS/Vibe-Trading35k—~3.2kAutomated safety check: PassMIT
Longbridge Quanthelsome/folio2691 repos~1.6kAutomated safety check: PassMIT

Similar skills

  • Feature Engineering

    agiprolabs/claude-trading-skills

    Feature construction from market data for ML trading models including price, volume, on-chain, and microstructure features

    410 GitHub stars~2.7k tokensUpdated 1 mo ago
    Data & AnalyticsAuto-check passed
  • Walk Forward Validation

    agiprolabs/claude-trading-skills

    Walk-forward validation framework for trading strategies and ML models with time-series-aware splits, overfit detection, and regime-aware validation

    410 GitHub stars~2.2k tokensUpdated 1 mo ago
    Data & AnalyticsAuto-check passed
  • Turns a plain-language model training request into a validated QuantMind training config file that can be imported from the Model Training page.

    1.7k GitHub stars~1.5k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Trains scikit-learn models with walk-forward validation on features from OHLCV data to predict return direction and turn the predictions into trading signals.

    35k GitHub stars~3.2k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Longbridge Quant

    helsome/folio

    Quantitative strategy frameworks: pairs trading/cointegration, volatility regime strategies, seasonality/calendar effects, multi-factor models (IC/IR), factor research and screening, correlation…

    269 GitHub starsUsed in 1 repo~1.6k tokens
    Data & AnalyticsAuto-check passed
  • Longbridge Quant

    sickn33/agentic-awesome-skills

    Curated upstream guidance for Longbridge Quant; use when the workflow matches the user goal.

    47k GitHub starsUsed in 1 repo~1.5k tokens
    Business, Finance & HRAuto-check passed

More from avelikiy/great_cto

All 30 skills in this repo
  • AnyDesign Design Analyzer

    avelikiy/great_cto

    Analyzes a screenshot, website or Figma file and writes a `design.md` with its token system, component inventory and reconstruction notes, or an `element.md` for one element.

    103 GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed
  • Opportunity Solution Tree

    avelikiy/great_cto

    Builds an Opportunity Solution Tree that links one measurable outcome to customer opportunities, candidate solutions and experiments.

    103 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Rewrites a feature-list roadmap into outcome statements that name the customer segment, the result they get and the business impact, grouped into themes.

    103 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Exposed Secret Rotation

    avelikiy/great_cto

    Turns a leaked key, token or password into one tracked rotation task the moment it's spotted, instead of a reminder repeated every session.

    103 GitHub stars~884 tokensUpdated yesterday
    Auto-check: notes
  • Decision Eval

    avelikiy/great_cto

    Spawns the decision-scorer agent after architect proposes 2+ variants in an ADR.

    103 GitHub starsUsed in 1 repo~884 tokens
    Auto-check: notes
  • Skeptical Triage

    avelikiy/great_cto

    Runs a three-round self-challenge plus an arbiter over high-stakes findings, so false positives from reviews, audits and flaky-test verdicts do not become blockers.

    103 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check: notes

Questions about Quant Validation

What does Quant Validation do?

The methods a financial-ML result has to survive before it is evidence — purged cross-validation with an embargo, triple-barrier labelling, sample uniqueness under overlapping labels, fractional…. Quant Validation is an agent skill from avelikiy/great_cto. The methods a financial-ML result has to survive before it is evidence — purged cross-validation with an embargo, triple-barrier labelling, sample uniqueness under overlapping labels, fractional differentiation, meta-labelling, and multiple-testing correction.

When should I use Quant Validation?

Quant Validation fits situations like: tasks that involve Trading and backtesting; tasks that involve Machine learning.

How do I install Quant Validation in Claude Code?

Run `npx skills add avelikiy/great_cto --skill quant-validation -a claude-code`. Or copy the skill folder (skills/quant-validation in avelikiy/great_cto) into .claude/skills/quant-validation in your project. Claude Code loads it when a task matches its description.

How do I install Quant Validation in Codex?

Run `npx skills add avelikiy/great_cto --skill quant-validation -a codex`. Or copy the skill folder (skills/quant-validation in avelikiy/great_cto) into .agents/skills/quant-validation in your project. Codex loads it when a task matches its description.

Can I use Quant Validation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add avelikiy/great_cto --skill quant-validation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/quant-validation, .gemini/skills/quant-validation, .github/skills/quant-validation and .opencode/skills/quant-validation in your project.

What does Quant Validation need to run?

SKILL.md names no scripts, command-line tools or credentials: Quant Validation is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Grep, Glob.

Does Quant Validation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Quant Validation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Quant Validation use?

Quant Validation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Quant Validation use?

About 1.9k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Quant Validation?

Skills that share tags, products or a category with Quant Validation: Feature Engineering (agiprolabs/claude-trading-skills, 410 stars), Walk Forward Validation (agiprolabs/claude-trading-skills, 410 stars), QuantMind Training Config Generator (qusong0627/QuantMind, 1.7k stars) and Machine Learning Trading Strategy (HKUDS/Vibe-Trading, 35k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Quant Validation?

avelikiy (a GitHub user) maintains it in avelikiy/great_cto, which has 103 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 6, 2026.

Source: avelikiy/great_cto on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.