by ml4t
Agent skills for Machine Learning for Algorithmic Trading: leakage-safe quant ML, backtesting, validation, and autonomous research workflows.
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/ml4t/skillsGuides for using ai agents skills like skills.
See how skills compares with popular alternatives.
61 standalone skills that teach AI coding assistants the Machine Learning for Trading workflow from Machine Learning for Algorithmic Trading, 3rd Edition.
This repository turns the book's quant research discipline into runtime guidance for coding agents. Each skill gives an agent the pattern it needs to avoid common ML4T failures: leakage, lookahead bias, overfit backtests, stale data joins, broken cross-validation, unrealistic transaction costs, and unsafe autonomous workflows.
Each skill is a plain SKILL.md file with YAML frontmatter and concise procedural guidance. Installing them means putting each individual skill directory where your agent looks for skills, which scripts/install.sh does from a clone or from an unpacked release archive.
Next free session: How to use AI Agents for Trading Strategy Research, a 30-minute live session on Wednesday, October 28, 2026, 11:00 AM ET / 15:00 UTC. All courses, workshops, and free lessons.
Coding agents are strong at writing code, but financial ML has failure modes that are easy to miss and expensive to discover late. These skills package the reviewer-grade checks that should happen before a strategy result is trusted:
ml4t-data, ml4t-engineer, ml4t-backtest, ml4t-diagnostic, or ml4t-live API.The canonical distribution is this Git repository. There is no npm package, Python package, or build step, because the runtime artifact is the Markdown file itself.
Agents discover skills one directory level deep, at <skills-dir>/<skill-name>/SKILL.md. This repository groups skills into category directories so it can be read, so cloning it into a skills directory as a single folder will not work: the SKILL.md files end up three levels down and nothing finds them. scripts/install.sh flattens the categories for you.
git clone https://github.com/ml4t/skills.git ~/.ml4t-skills
cd ~/.ml4t-skills
./scripts/install.sh # ~/.claude/skills, the default
./scripts/install.sh .agents/skills # Codex, project-local
./scripts/install.sh ~/.claude/skills --copy # copies instead of symlinking
./scripts/install.sh --prune # also drop skills this repo no longer ships
./scripts/install.sh --uninstall # remove every skill it installed
The script symlinks each skill in as ml4t-<skill-name>, so git pull updates every installed skill at once, and the ml4t- prefix keeps them from colliding with skills you already have. It is idempotent and never overwrites a directory it did not create: a copy install carries a .ml4t-installed marker, and only a marked directory is ever replaced. Pass --copy when the install must not depend on the checkout.
A plain run only writes the skills being shipped now, so a skill that is renamed or dropped upstream stays installed until you say otherwise. --prune removes those leftovers as part of the install, and --uninstall removes the whole install. Both delete only what the script created, by the same symlink-or-marker test, and leave anything else in the directory alone.
Copying by hand works too. Move each of the 61 skill directories, not the category directories, into your agent's skills directory.
Nothing on their own. Every skill in this repository is Markdown: no executable scripts, no hooks, no MCP servers, no network calls. An empirical study of 31,132 public skills found that 26.1% contained at least one vulnerability, and that skills shipping executable scripts were 2.12 times more likely to be among them. Reading a skill before you install it is a reasonable habit, and here reading it is the whole audit.
Every skill follows the same concept-first pattern:
ml4t-* library handoff when a stable API existsThe first 80% teaches the method with standard Python tools such as polars, numpy, scikit-learn, scipy, statsmodels, pytorch, and lightgbm. The final section, when present, points to the production-grade ml4t-* library implementation.
| Skill | What it prevents |
|---|---|
| backtest-overfitting | Selecting the best historical result without multiple-testing correction |
| causal-identification | Treating confounded associations as tradable causal effects |
| data-leakage | Train-test contamination via preprocessing, features, or labels |
| information-coefficient | Miscalculating or misinterpreting factor predictive power |
| lookahead-bias | Using future information in features, labels, or evaluation |
| non-stationarity | Ignoring changing statistical properties in financial time series |
| point-in-time | Using revised data that was not known at decision time |
| regime-awareness | Treating regimes as timing signals instead of conditioning variables |
| survivorship-bias | Excluding failed or delisted assets from historical analysis |
| transaction-costs | Backtesting signals that cannot survive spread, slippage, and impact |
| Skill | What it does |
|---|---|
| build-bars | Aggregates tick data into time, volume, and dollar bars |
| calendar-ops | Aligns data across trading calendars, holidays, and frequencies |
| continuous-futures | Builds roll-adjusted continuous futures series |
| data-export | Exports schema-validated datasets to efficient columnar storage |
| define-universe | Constructs point-in-time tradeable universes with liquidity filters |
| fetch-data | Fetches market data through provider abstractions with schema checks |
| validate-data | Checks gaps, stale prices, outliers, and OHLCV integrity |
| Skill | What it does |
|---|---|
| compute-features | Computes panel-aware financial features without cross-asset leakage |
| feature-families | Balances momentum, mean-reversion, volatility, carry, and value signals |
| feature-selection | Selects features inside CV folds using IC, MI, or RFE |
| feature-store | Stores versioned features with point-in-time retrieval |
| feature-validation | Audits IC significance, stability, redundancy, and leakage |
| horizon-design | Chooses prediction horizons from IC decay, turnover, and costs |
| latent-factors | Extracts latent factors with PCA, IPCA, or autoencoders |
| meta-labels | Uses a secondary model to filter or size primary trading signals |
| regime-features | Builds stationary volatility, trend, and liquidity regime features |
| triple-barrier | Labels trades with volatility-adaptive profit, stop, and time barriers |
| Skill | What it does |
|---|---|
| cpcv | Runs Combinatorial Purged Cross-Validation |
| deflated-sharpe | Adjusts Sharpe ratios for multiple testing bias |
| drift-detection | Detects input, prediction, and concept drift |
| evaluate-factor | Evaluates factor IC, quantile spreads, turnover, and decay |
| purging-embargo | Removes overlapping labels and adds embargo buffers |
| shap-analysis | Explains model predictions with SHAP values |
| stationarity-tests | Applies ADF/KPSS tests and transformation decisions |
| walk-forward-cv | Evaluates time-series models with rolling or expanding windows |
| Skill | What it does |
|---|---|
| cost-model | Models commissions, slippage, and market impact |
| rl-execution | Applies reinforcement learning to execution and hedging |
| run-backtest | Runs event-driven backtests with Strategy/Broker/Engine contracts |
| sensitivity-analysis | Tests parameter robustness and overfitting cliffs |
| tearsheet | Generates performance reports from backtest returns |
skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ml4t. Agent skills for Machine Learning for Algorithmic Trading: leakage-safe quant ML, backtesting, validation, and autonomous research workflows. It has 47 GitHub stars.
skills's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/ml4t/skills" and add it to your Claude Code skills directory (see the Installation section above).
skills is primarily written in Python. It is open-source under ml4t on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh skills against similar tools.
No comments yet. Be the first to share your thoughts!