Judge whether a cross-sectional factor predicts returns, and forecast financial series. TRIGGER - information coefficient, IC, quantile returns, factor decay, turnover, alphalens; Fama-French, Fama-MacBeth, PanelOLS, linearmodels, cross-sectional asset pricing; event study, abnormal returns, CAR, BHAR; Alpha101, Alpha158, symbolic alpha mining, gplearn; or forecasting with ARIMA, GARCH, volatility models, arch, Nixtla, statsforecast, mlforecast, sktime, darts, Prophet or a time-series foundation model. SKIP for computing the indicator itself (signal-construction) and for portfolio weights or Sharpe (portfolio-and-risk).
Ships in fin-models. 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.
Read when SKILL.md points to them; scripts run unread.
The libraries here are mostly healthy. The danger is that their default cross-validation and forward-return conventions do not purge anything, so a leaky result looks like a clean API call.
alphalens-reloaded 0.4.6 (2025-06-02, Apache-2.0, 642★) is alive but low-velocity. The original
quantopian/alphalens is dead (0.4.0, 2020) — do not use it.
🚨 Verified in source: compute_forward_returns does pct_change(period).shift(-period), so
the forward return for date t starts at t's own price. It never lags your factor. If your
factor is computed from date t's close, alphalens is scoring you as if you traded that same close.
Fix: lag the factor yourself before passing it in — factor.groupby(level=1).shift(1) — or
build forward returns from the next open. The IC alphalens reports on an unlagged close-based factor
is not achievable.
pyqlib 0.9.7 (MIT, 48,255★). ✅ The label is Ref($close,-2)/Ref($close,-1)-1 — deliberately
leakage-safe: it trades at T+1's close and measures to T+2, so the signal at T is never scored
against a price it could see.
🚨 The real trap is normalization: ZScoreNorm is fit over fit_start_time..fit_end_time. Pass
the full sample and you leak the test distribution into every feature, silently. Set the fit window
to your training period only.
🚨 The canonical Python port (yli188, 864★) and nearly every other Alpha101 repo has no licence
file = all rights reserved. You cannot legally use or redistribute them.
✅ Menooker/KunQuant (Apache-2.0, active 2026-05) is the one safely usable implementation.
gplearn was revived — 0.4.3 shipped 2026-01-07 after a 3.7-year gap; now needs Python ≥3.11 and
sklearn ≥1.8. Notes calling it abandoned are stale.
🚨 Every expression the search evaluates is a trial. A genetic program that examines 10⁵ candidates
has a trial count of 10⁵ for Deflated Sharpe purposes. See backtest-validation.
✅ Live-tested: Ken French's ZIPs return HTTP 200; a downloaded file parsed to 1,200 monthly rows
through 202606. pandas-datareader 0.11.1 (2026-06-24) is itself revived and its
famafrench reader works (its parser was silently wrong before 0.11.0 — re-pull anything you
fetched with 0.10.0). 🚨 getFamaFrenchFactors is dead (2 releases, both 2019-05-18).
linearmodels 7.0 (2025-10-21, NCSA licence, 1,066★) is healthy and remains the only real
Fama-MacBeth / asset-pricing option. pyfixest 0.60.0 is fast and modern but has no
Fama-MacBeth — complementary, not a replacement.
🚨 Fama-MacBeth with overlapping returns understates standard errors. Use Newey-West / HAC. With panel data, choose the clustering dimension deliberately — clustering on the wrong dimension is how a t-stat of 2 becomes a t-stat of 5.
cvxgrp/cvxrisk (MIT, active) is credible but is a risk
interface, not an estimated model — you still supply the factor exposures.eventstudy, is 0.1a12 — an
alpha from 2021, GPL-3.0, 69★; alternatives top out at 12★. Write it yourself.
references/_event-study-method.md has the full methodology: market-model estimation window,
event window, CAR vs BHAR, cross-sectional t-statistics, and Boehmer-Musumeci-Poulsen for
event-induced variance (which is the correction almost everyone omits).| Need | Use | Note |
|---|---|---|
| Fast classical baselines at scale | Nixtla statsforecast | All five Nixtla packages Apache-2.0, all pushed within 3 weeks — healthiest forecasting ecosystem in Python |
| Tree/ML forecasting on panels | mlforecast | |
| Deep forecasting | neuralforecast | |
| Unified API, many estimators | sktime | ✅ hit 1.0.0 on 2026-06-11 (now 1.1.0) — an API-stability commitment. ⚠️ 1,422 open issues |
| Unified API, deep-learning leaning | darts | See the leakage warning below |
| Volatility (GARCH/EGARCH/HAR) | arch | The reference implementation. Also the home of SPA/StepM/MCS |
| Automated feature extraction | tsfresh | ✅ Its defaults are statistically correct — see §2.2 |
🚨 Prophet is maintained (1.4.0, 2026-08-15) but was among M5's worst performers and is actively harmful for financial series. Listed for recognition; not recommended.
sktime's ExpandingWindowSplitter and SlidingWindowSplitter have NO gap / purge
parameter. With a multi-step horizon, train and test overlap in the information they encode.darts.historical_forecasts has no purge either.retrain=False makes every backtest point in-sample — a one-word change turns
an honest walk-forward into a fitted-on-everything curve.For financial labels with any horizon, use purgedcv or skfolio's CombinatorialPurgedCV
instead of the forecasting libraries' own splitters. See backtest-validation §2.
✅ HYPOTHESES_INDEPENDENT = False by default, so select_features uses Benjamini-Yekutieli
(fdr_by), which is valid under arbitrary dependence — not plain Benjamini-Hochberg. Financial
features are heavily dependent, so this is the right choice. Flipping it to get more features
through is exactly the mistake the parameter exists to prevent.
Separately: extracting features across the train/test boundary leaks. Extract per-fold.
🚨 Licences — verified directly from the HuggingFace API, 2026-09-04. Do not assume Apache:
| Model | Licence |
|---|---|
Salesforce/moirai-1.0-R-*, moirai-1.1-R-*, moirai-moe-1.0-R-* | 🔴 cc-by-nc-4.0 — NON-COMMERCIAL, all weights |
NX-AI/TiRex | 🔴 other = nx-ai-community-license (Llama-3-derived, source-available, commercial terms aimed at large enterprises) |
google/timesfm-1.0-200m, 2.0-500m-pytorch, 2.5-200m-pytorch | 🟢 apache-2.0 |
⚠️ google/timesfm-3.0-* | ❓ gated — returns HTTP 401, licence not readable anonymously. Verify terms before use; do not assume it inherits 2.x's Apache grant |
amazon/chronos-t5-*, chronos-bolt-* | 🟢 apache-2.0 |
AutonLab/MOMENT-1-large | 🟢 mit |
ibm-granite/granite-timeseries-ttm-r2 (Tiny Time Mixers) | 🟢 apache-2.0 |
🚨 pip install tirex installs an unrelated 2022 dimensionality-reduction package — the real one
is tirex-ts.
Does any of it work on prices?
Conclusion: treat TSFMs as a baseline to beat, not a source of alpha. A HAR model on realized volatility remains hard to beat, and any TSFM claim should be checked against it.
ZScoreNorm, any StandardScaler outside a
Pipeline.research-integrity-guards §1..shift() sign errors and resample label placement (label=, closed=).backtest-validation.references/<library>.md for exact versions, licences, signatures and quirks;
references/_event-study-method.md for the methodology you have to implement yourself.
The optional fin-libraries plugin carries a dedicated skill for each library below. Load one
only after this skill has told you which library you want:
lib-alphalens — alphalensreferences/_event-study-method.md (opens in a new tab)references/alpha-factor-libraries.md (opens in a new tab)references/alphalens-reloaded.md (opens in a new tab)references/arch.md (opens in a new tab)references/forecasting-stack.md (opens in a new tab)references/linearmodels.md (opens in a new tab)references/sktime-darts.md (opens in a new tab)scripts/event_study.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/fin-models:factor-and-timeseries-researchfrom fin-models
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin fin-models13 skills in this plugin
/covariance-and-risk-modelsEstimate a covariance matrix an optimizer can actually invert, and report how much variance it hides. TRIGGER - covariance matrix estimation, sample covariance singular, "matrix is not positive definite", np.cov more assets than observations, N > T, condition number, Ledoit-Wolf shrinkage, sklearn LedoitWolf, CovarianceShrinkage, shrinkage intensity or delta, RiskMetrics EWMA, lambda 0.94 or 0.97, exponentially weighted covariance, exp_cov span, PCA or statistical factor risk model, Marchenko-Pastur, Barra fundamental factor model, specific risk, predicted vs realized volatility, risk model bias test; "my minimum-variance portfolio has 90x leverage", "the optimizer says 0% risk". SKIP for turning a covariance into weights and the optimizers themselves (portfolio-optimizers), for VaR, Expected Shortfall and their backtests (risk-measures-var-cvar), for GARCH and univariate volatility forecasting (volatility-models), and for Sharpe and drawdown conventions (portfolio-and-risk)./credit-risk-modelsEstimate a default probability and price credit, and keep the two probabilities apart - the risk-neutral one that prices and the physical one that forecasts. TRIGGER - Merton model, structural credit model, KMV, distance to default, asset value and asset volatility from equity, N(-d2), solve the two Merton equations; hazard rate, intensity, reduced form, survival probability, constant hazard, credit curve bootstrapping; CDS par spread, premium leg, protection leg, risky PV01, RPV01, accrual on default, "spread = lambda times one minus recovery", implied hazard from a CDS spread, recovery assumption, 40% recovery; risk-neutral vs physical default probability, rating agency default table, "my CDS spread is too low", credit spread from a bond price, expected loss, CVA default probability. SKIP for option pricing and Greeks (option-pricing-models, derivatives-pricing), for interest-rate curves and short-rate models (term-structure-models), and for portfolio risk and VaR (portfolio-and-risk).