Agent skill

Factor Mining

by minihellboy in minihellboy/factorminer

Discover alpha factors by running the FactorMiner research engine — the paper-faithful Ralph loop or the enhanced Helix loop (causal validation, regime conditioning, multi-specialist debate…

MITAuto-check passedAgent Workflows

Install Factor Mining

skills CLI
$ npx skills add minihellboy/factorminer --skill factor-mining -a claude-code

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

GitHub CLI
$ gh skill install minihellboy/factorminer factor-mining --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/minihellboy/factorminer.git skills-src && mkdir -p .claude/skills && cp -r skills-src/integrations/factor-researcher/plugin/skills/factor-mining .claude/skills/factor-mining && 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
factor-mining
GitHub stars
123
Token cost
~781 tokens
SKILL.md length
302 words
Files
3 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Discover alpha factors by running the FactorMiner research engine — the paper-faithful Ralph loop or the enhanced Helix loop (causal validation, regime conditioning, multi-specialist debate…

  • Works in 4 steps: Confirm prerequisites → Run the Ralph loop → Or run the Helix loop → …
  • Generate a new factor library from a validated dataset
  • SKILL.md covers Choosing the loop, Workflow, Guardrails and MCP alternative
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Factor Mining is an agent skill from minihellboy/factorminer. Discover alpha factors by running the FactorMiner research engine — the paper-faithful Ralph loop or the enhanced Helix loop (causal validation, regime conditioning, multi-specialist debate, canonicalization). Use to generate a new factor library from a validated dataset. Triggers on "mine factors", "discover factors", "run mining", "find alpha", "helix loop", "ralph loop", "build a factor library".

Its SKILL.md is about 780 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/dsl-operators.md` and `references/loop-architecture.md`).

It sits in Agent Workflows, covering Autonomous loops. The repository describes itself as: A Self-Evolving Agent with Skills and Experience Memory for Financial Alpha Discovery. The licence is MIT.

When your agent uses it

  • Generate a new factor library from a validated dataset
  • Discover factors
  • Build a factor library

Example prompts

  • “mine factors”
  • “discover factors”
  • “run mining”
  • “/factor-mining”

Workflow steps

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

  1. Confirm prerequisites
  2. Run the Ralph loop
  3. Or run the Helix loop
  4. Inspect the result

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    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

Factor Mining loads about 781 tokens when it runs, and up to ~1.9k if it reads all its reference files. Until then it costs about 104 tokens; SKILL.md has 302 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~104
When it runs · the whole SKILL.md, loaded when a task matches
~781
With references · SKILL.md plus every file in references/, read only if the agent opens them
~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 minihellboy/factorminer at commit 75e0560, republished under its MIT licence (© minihellboy). 302 words, ~781 tokens.

Download SKILL.mdSave it as .claude/skills/factor-mining/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
factor-mining
description
Discover alpha factors by running the FactorMiner research engine — the paper-faithful Ralph loop or the enhanced Helix loop (causal validation, regime conditioning, multi-specialist debate, canonicalization). Use to generate a new factor library from a validated dataset. Triggers on "mine factors", "discover factors", "run mining", "find alpha", "helix loop", "ralph loop", "build a factor library".

Factor Mining

This skill runs FactorMiner's self-evolving discovery loop: it retrieves memory priors, proposes candidate factor formulas with an LLM, evaluates them, and admits the survivors to a factor library.

See references/loop-architecture.md for the stage-by-stage loop design and references/dsl-operators.md for the factor-formula operator vocabulary.

Choosing the loop

UseWhen
mine (Ralph loop)Default. Paper-faithful Algorithm 1 — retrieve, generate, evaluate, admit, evolve memory.
helix (Helix loop)When you want Phase 2 features: do-calculus causal validation, regime-conditional evaluation, multi-specialist debate generation, or SymPy canonicalization. Drop-in superset of Ralph.

Workflow

1. Confirm prerequisites

The dataset must already pass factor-data validation. Confirm the iteration budget — mining cost scales with iterations × batch-size.

2. Run the Ralph loop
bash
factorminer -o output/run1 mine \
  --data path/to/market_data.csv \
  --iterations 40 --batch-size 16 --target 30
  • --iterations — maximum mining iterations (the loop also stops early once --target factors are admitted).
  • --batch-size — candidate factors proposed per iteration.
  • --target — desired library size.
  • --resume path/to/factor_library.json — continue a previous run.
  • --mock — synthetic data + mock LLM, no API calls. Use only for smoke tests.
3. Or run the Helix loop
bash
factorminer -o output/run1 helix \
  --data path/to/market_data.csv \
  --iterations 40 --batch-size 16 --target 30 \
  --causal --regime --debate --canonicalize

Each --feature / --no-feature flag overrides the config; omit a flag to keep the config default. Phase 2 features cost extra compute and LLM calls — enable the ones the research question needs.

4. Inspect the result
bash
factorminer session inspect output/run1 --json

Report library size, iteration count, and yield rate. The factor library is written to output/run1/factor_library.json; the run log to session_log.json.

Guardrails

  • Mining proposes formulas; it does not prove them. Always follow with factor-evaluation on the held-out split.
  • A low yield rate usually means thresholds are too strict for the dataset, not that the data is bad — tune ic_threshold / correlation_threshold in config, do not silently relax them in a report.
  • --mock output is never a research result; never present mock metrics as real.

MCP alternative

When the FactorMiner MCP server is connected, mine_factors and helix_mine expose the same workflow as tools, returning a structured session summary directly.

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

Files

SKILL.md and 2 other files (references) in integrations/factor-researcher/plugin/skills/factor-mining of minihellboy/factorminer.

  • SKILL.md
  • references/dsl-operators.md
  • references/loop-architecture.md

Open the folder on GitHubat commit 75e0560

Compare with similar skills

Factor Mining 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.

Factor Mining compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Factor Mining this skillminihellboy/factorminer123—~781Automated safety check: PassMIT
Show Me Your Work Decision Logcursor/plugins10k9 repos~1.6kAutomated safety check: PassNone
Autoresearch Iteration Loopuditgoenka/autoresearch6.5k1 repos~2kAutomated safety check: PassMIT
PUA Looptanweai/pua20k1 repos~1.1kAutomated safety check: PassMIT
AutopilotYeachan-Heo/oh-my-claudecode40k1 repos~4.4kAutomated safety check: PassMIT
Install Loop Engineeringcobusgreyling/loop-engineering11k1 repos~648Automated safety check: PassMIT

Similar skills

  • Official

    Keeps a TSV decision log for long or unattended agent runs, one row per decision with what, why, evidence and result, so a reviewer can check the work later.

    10k GitHub starsUsed in 9 repos~1.6k tokens
    Agent WorkflowsAuto-check passed
  • Autoresearch Iteration Loop

    uditgoenka/autoresearch

    Runs an autonomous modify, verify, keep-or-discard loop against any metric, with subcommands for planning, debugging, fixing, security audits, shipping and more.

    6.5k GitHub starsUsed in 1 repo~2k tokens
    Agent WorkflowsAuto-check passed
  • PUA Loop

    tanweai/pua

    Runs an unattended iterate-until-verified loop in which a user-set verify command, not the agent's own claim, decides when the task is finished.

    20k GitHub starsUsed in 1 repo~1.1k tokens
    Agent WorkflowsAuto-check passed
  • Autopilot

    Yeachan-Heo/oh-my-claudecode

    Takes a short product idea through requirements, design, planning, parallel implementation, QA cycles and multi-reviewer validation to produce working code.

    40k GitHub starsUsed in 1 repo~4.4k tokens
    Agent WorkflowsAuto-check passed
  • Install Loop Engineering

    cobusgreyling/loop-engineering

    Installs Loop Engineering into a project through the single @cobusgreyling/loop CLI, scaffolding a report-only loop and a readiness score.

    11k GitHub starsUsed in 1 repo~648 tokens
    Agent WorkflowsAuto-check passed
  • Loopy

    Forward-Future/loopy

    Discover, find, compare, audit, repair, adapt, craft, run, debrief, save, and prepare repeatable AI-agent loops for publication.

    3.2k GitHub stars~3.9k tokensUpdated 27 days ago
    Agent WorkflowsAuto-check passed

More from minihellboy/factorminer

  • Factor Evaluation

    minihellboy/factorminer

    Evaluate a factor library — recompute Information Coefficient (IC), ICIR, win rate, and turnover on held-out data, and surface train→test decay.

    123 GitHub stars~605 tokensUpdated 10 days ago
    Auto-check passed
  • Factor Backtest

    minihellboy/factorminer

    Combine a factor library into a composite signal and quintile-backtest it under transaction costs — long-short return, monotonicity, turnover, and tearsheets.

    123 GitHub stars~599 tokensUpdated 10 days ago
    Auto-check passed
  • Factor Benchmark

    minihellboy/factorminer

    Run FactorMiner benchmark workflows — the Table 1 Top-K freeze benchmark, memory and strategy ablations, transaction-cost pressure tests, and the full suite.

    123 GitHub stars~576 tokensUpdated 10 days ago
    Auto-check passed
  • Factor Data

    minihellboy/factorminer

    Validate, resample, and ingest market data for factor mining.

    123 GitHub stars~856 tokensUpdated 10 days ago
    Auto-check passed
  • Factor Report

    minihellboy/factorminer

    Generate static reports, tearsheets, and exports from FactorMiner artifacts — markdown/HTML research notes, plots, and library exports (JSON/CSV/formulas).

    123 GitHub stars~588 tokensUpdated 10 days ago
    Auto-check passed
  • Research Ingestion

    minihellboy/factorminer

    Absorb external research reports/papers into structured, retrievable hypothesis cues via FactorMiner's Report-to-Memory Absorption (RMA) service — an OHLCV-eligibility gate, a mechanism-family…

    123 GitHub stars~884 tokensUpdated 10 days ago
    Auto-check passed

Categories

Questions about Factor Mining

What does Factor Mining do?

Discover alpha factors by running the FactorMiner research engine — the paper-faithful Ralph loop or the enhanced Helix loop (causal validation, regime conditioning, multi-specialist debate…. Factor Mining is an agent skill from minihellboy/factorminer. Discover alpha factors by running the FactorMiner research engine — the paper-faithful Ralph loop or the enhanced Helix loop (causal validation, regime conditioning, multi-specialist debate, canonicalization).

When should I use Factor Mining?

Factor Mining fits situations like: generate a new factor library from a validated dataset; discover factors; build a factor library.

How do I install Factor Mining in Claude Code?

Run `npx skills add minihellboy/factorminer --skill factor-mining -a claude-code`. Or copy the skill folder (integrations/factor-researcher/plugin/skills/factor-mining in minihellboy/factorminer) into .claude/skills/factor-mining in your project. Claude Code loads it when a task matches its description.

How do I install Factor Mining in Codex?

Run `npx skills add minihellboy/factorminer --skill factor-mining -a codex`. Or copy the skill folder (integrations/factor-researcher/plugin/skills/factor-mining in minihellboy/factorminer) into .agents/skills/factor-mining in your project. Codex loads it when a task matches its description.

Can I use Factor Mining 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 minihellboy/factorminer --skill factor-mining -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/factor-mining, .gemini/skills/factor-mining, .github/skills/factor-mining and .opencode/skills/factor-mining in your project.

What does Factor Mining need to run?

SKILL.md names no scripts, command-line tools or credentials: Factor Mining is instructions for the agent only.

Does Factor Mining 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 Factor Mining 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 Factor Mining use?

Factor Mining 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 Factor Mining use?

About 781 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.1k tokens, read only when the agent opens those files.

What are the alternatives to Factor Mining?

Skills that share tags, products or a category with Factor Mining: Show Me Your Work Decision Log (cursor/plugins, 10k stars), Autoresearch Iteration Loop (uditgoenka/autoresearch, 6.5k stars), PUA Loop (tanweai/pua, 20k stars) and Autopilot (Yeachan-Heo/oh-my-claudecode, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Factor Mining?

minihellboy (a GitHub user) maintains it in minihellboy/factorminer, which has 123 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 28, 2026.

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