Guide · Agent skill
How to use the factor-research agent skill (install guide)
Updated · written with AI from the project's own documentation and checked against our catalogue data
The factor-research skill gives an AI agent a structured method for checking whether a numeric signal, such as momentum, value or volatility, actually helps pick the better performers in a group of instruments. It is built for cross-sectional evaluation across many stocks or other assets, not for forecasting a single price. After this guide you will know what the skill does, how to install it, how to ask for it in plain language, and how to read its results.
Quick start
- 1Download and unzip. Download the ZIP from the skill page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder. Alternatively, upload the ZIP under Settings, Capabilities, Skills.
- 2Confirm the prerequisites. Make sure your Python environment has the Vibe-Trading quantlib modules and that the factor_analysis tool is available in your agent framework.
- 3Build aligned CSVs. Create a factor CSV and a forward-return CSV with identical date rows and instrument columns. Check that each return is earned after its factor observation date.
- 4Run factor_analysis. Ask the agent to run the factor_analysis tool with your two CSV paths and an output directory, optionally setting n_groups.
- 5Judge the results. Review ic_summary.json for IC mean, IC standard deviation, IR and the share of positive IC, then check group_equity.csv for monotonic quantile groups.
What an agent skill is and what this one does
An agent skill is a folder of instructions and optional scripts that an AI agent loads when a task matches it. This skill is named factor-research and its main instructions live in SKILL.md.
Once installed, the agent follows a fixed workflow: compute factor values for each instrument on each date, compute forward returns, call a factor_analysis tool, and interpret the output using IC/IR statistics and quantile group backtests. It can also help combine several validated factors into one composite score.
- Single-factor validity testing (momentum, value, quality, volatility and similar)
- Choosing weights for a multi-factor combination
- Checking factor decay across different holding periods
- Comparing factor behaviour across industries and markets
Install the factor-research skill
Download the ZIP from the skill page on this site. Unzip it into one of two locations: your personal skills folder at ~/.claude/skills/, or a project-level .claude/skills/ folder inside the project you are working in. The result should be a factor-research folder containing SKILL.md.
You can also upload the ZIP in the Claude apps through Settings, then Capabilities, then Skills.
- Personal install: ~/.claude/skills/factor-research/
- Project install: .claude/skills/factor-research/ inside your project
- Apps install: Settings → Capabilities → Skills, then upload the ZIP
Check what you need before running it
The skill itself is instructions, but the work depends on three things outside it. You need a Python environment that includes the Vibe-Trading quantlib modules (src.quantlib.combination and src.quantlib.neutralization) for the optional helpers. You need a factor_analysis tool supplied by the surrounding Vibe-Trading agent framework. And you need factor and return CSV files, prepared by you or by the agent.
The skill runs scripts and does not use the network, according to its listing.
- Python environment with the Vibe-Trading quantlib modules (for optional helpers)
- A factor_analysis tool from the Vibe-Trading agent framework
- Factor CSV and return CSV data, with rows as dates and columns as instrument codes
Prepare aligned factor and return data
The factor CSV and return CSV must align exactly: same date rows and same instrument columns. Returns must be forward returns, earned after the date on which the factor was observed, to avoid look-ahead bias.
The factor_analysis tool takes three required inputs, a factor CSV path, a return CSV path and an output directory, plus an optional n_groups setting that defaults to 5. It writes ic_series.csv, ic_summary.json and group_equity.csv to the output directory.
- factor_csv: path to the factor-value CSV (required)
- return_csv: path to the return CSV (required)
- output_dir: where results are written (required)
- n_groups: number of quantile groups (optional, default 5)
How to read IC, IR and quantile backtest results
The skill sets rough thresholds. An IC mean above 0.03 suggests basic predictive power, and above 0.05 suggests strong power. An IC mean above 0.10 is unusually high and should prompt a check for look-ahead bias. An IR (IC mean divided by IC standard deviation) above 0.5 suggests a stable factor, and above 1.0 is described as very rare. A share of positive IC values above 55% suggests a stable direction, while below 50% suggests an unstable factor.
For the quantile backtest, look for monotonic group equity from Group_1 to Group_N, a large long_short_spread between the top and bottom groups, and smooth equity curves. A flat set of curves means the factor is ineffective. A persistently falling group may mean the factor works in reverse. Negative IC can still be useful, so judge by absolute value and reverse the signal direction when you use it.
- IC mean > 0.03: basic predictive power
- IC mean > 0.05: strong predictive power
- IC mean > 0.10: check for look-ahead bias
- IR > 0.5: stably effective
- Share of IC > 0 above 55%: stable direction
Combine validated factors into one score
Factors that pass their own validity tests can be combined. The skill describes equal-weight combination (standardise each factor and sum), IC-based weighting (weights proportional to absolute IC mean), and orthogonalised combination (Schmidt-style residualisation, useful when factors are highly correlated).
The optional combination module performs the equal and IC variants in one call and returns the weights it used. It estimates weights only from rows strictly before the row they apply to. The skill notes that other methods can be computed by hand and passed in as explicit weights.
from src.quantlib.combination import combine_factors
result = combine_factors(
{"momentum": momentum_panel, "value": value_panel},
forward_returns,
method="ic",
window=252,
rebalance=20,
)
result.composite, result.weights, result.diagnostics["correlation"]What people use it for
- Testing whether a 12-month momentum signal ranks a universe of stocks better than chance over a set period
- Comparing several candidate value factors and keeping only those with stable IC
- Checking how a factor's predictive power changes across different holding periods
- Building an IC-weighted composite from a shortlist of validated factors
Frequently asked questions
How do I install the factor-research agent skill?
Download the ZIP from the skill page on this site and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder. You can also upload the ZIP in the Claude apps under Settings, then Capabilities, then Skills.
What do I need to run the factor-research skill?
You need a Python environment with the Vibe-Trading quantlib modules for the optional helpers, a factor_analysis tool from the Vibe-Trading agent framework, and factor and return CSV files that you or the agent have prepared. The skill runs scripts but does not use the network.
Is the factor-research skill free to use?
The listing states the licence is MIT. Check the repository's licence file for the exact terms before you redistribute or modify it.
What is a good IC or IR value for a factor?
The skill suggests an IC mean above 0.03 shows basic predictive power and above 0.05 shows strong power, with an IR above 0.5 indicating a stable factor. An IC mean above 0.10 is unusually high and should be checked for look-ahead bias.
Why does factor_analysis say my data does not line up?
The factor CSV and return CSV must have exactly the same date rows and instrument columns. Returns must also be forward returns earned after the factor observation date, otherwise results will be misleading.
Can this skill pick stocks for me?
No. The skill evaluates factor statistics and is not investment advice. Backtest results can mislead when a factor is overfit, so treat them as research evidence rather than a recommendation.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits quantitative researchers and analysts who want a disciplined, look-ahead-aware way to test many factors across a group of instruments and combine the survivors. It is a poor fit for casual investors seeking stock picks, or for anyone forecasting a single asset's price, since the framework is designed for cross-sectional comparison.
Download the skill