factor-data

factor-data is a skill for Claude Code from minihellboy/factorminer. It costs 98 tokens per session (870 once invoked), scanned A, original, MIT.

A data-preparation workflow for market files containing prices and trading volume, known as OHLCV data. It checks CSV, Parquet, or HDF5 files, derives missing fields, resamples time intervals, and can retrieve data from listed external sources.

In plain words
What is it for?
Checking, loading, resampling, and preparing market datasets for factor mining, including strict validation for continuous integration.
Why use it?
Factor research can fail or produce misleading results when the input file has the wrong columns or lacks training or testing coverage. Validation catches these problems before a mining run begins.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the factor-researcher plugin — 7 skills, 7 commands, 1 agent, 12 MCP servers shipped together

Good fit Checking, loading, resampling, and preparing market datasets for factor mining, including strict validation for continuous integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/minihellboy/factorminer/factor-data
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add minihellboy/factorminer --skill factor-data
Clone the repo
git clone --depth 1 https://github.com/minihellboy/factorminer

Made for: Claude Code.

Or install factor-researcher, the plugin that ships this one along with the rest of its 7 skills, 7 commands, 1 agent, 12 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for factor-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/minihellboy/factorminer/factor-data/github.svg)](https://agentmods.dev/skills/minihellboy/factorminer/factor-data)
Your own site
<a href="https://agentmods.dev/skills/minihellboy/factorminer/factor-data"><img src="https://agentmods.dev/badge/skills/minihellboy/factorminer/factor-data/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for factor-data

Your own site · 80×15
<a href="https://agentmods.dev/skills/minihellboy/factorminer/factor-data"><img src="https://agentmods.dev/badge/skills/minihellboy/factorminer/factor-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 870 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.00870
Opus 5.5 $0.00039 $0.00348
Sonnet 5.5 $0.00020 $0.00174
Haiku 4.5 $0.00010 $0.00087

Measured 1mo ago against content hash dd8c5d5bf548, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

factor-data scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/factor-researcher/plugin/skills/factor-data/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Factor Data

Market data is the input contract for every FactorMiner workflow. This skill makes sure a dataset is schema-valid and split-covered before a mining run burns iterations on a broken file.

Canonical schema

FactorMiner expects an OHLCV panel with one row per (asset, timestamp):

Column Meaning Notes
datetime Bar timestamp Parseable date/datetime
asset_id Instrument id Aliases: code, ticker, symbol
open high low close Prices —
volume Share/contract volume —
amount Dollar/turnover volume vwap derived as amount / volume when missing

returns and vwap are derived automatically when absent. Column aliasing is handled by the loader, so near-canonical files pass.

Workflow

1. Validate

Always validate first:

factorminer validate-data path/to/market_data.csv --json

Read the report. It lists detected columns, applied aliases, derived fields, and train/test split coverage. If either split has zero rows, stop — fix the file or the config's data.train_period / data.test_period before mining. Use --strict to treat warnings as failures in CI.

2. Resample (optional)

If the bars are finer than the research horizon (e.g. 5-minute bars for a daily study), resample:

factorminer resample-data raw_5m.csv bars_1h.parquet --rule 1h

3. Fetch from an MCP connector (optional)

To pull data from a financial-data MCP connector instead of a local file, write a small MCP-source config and run fetch-data. The config maps the connector's tool and field names onto the canonical loader-required schema, including volume and amount:

factorminer mcp-connectors
# factset_source.yaml
transport: http
url: https://mcp.factset.com/mcp
headers:
  Authorization: "Bearer ${FACTSET_TOKEN}"
tool: get_prices
arguments:
  ids: ["AAPL-US", "MSFT-US"]
  start: "2022-01-01"
  end: "2024-12-31"
  frequency: "1d"
records_path: data.prices
field_mapping:
  datetime: date
  asset_id: fsym_id
  open: price_open
  high: price_high
  low: price_low
  close: price_close
  volume: volume
  amount: turnover

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 88 lines · 98 tokens per session scan A dd8c5d5bf548

Subscribe to this mod's changes

factor-data is a skill published in the GitHub repository minihellboy/factorminer (123 stars, last pushed yesterday), licensed MIT. It adds 98 tokens to every session and 870 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research through opencli: the user's home timeline, tweet search, trending topics, bookmarks, a user's recent tweets, threads, articles, profiles, followers and following, and notifications. Use this skill whenever the user wants to know what people are saying on Twitter/X or fintwit about…

himself65/finance-skills · 110 tokens

energy-procurement

Codified expertise for electricity and gas procurement, tariff optimization, demand charge management, renewable PPA evaluation, and multi-facility energy cost management. Informed by energy procurement managers with 15+ years experience at large commercial and industrial consumers. Includes market structure analysis…

hashgraph-online/awesome-codex-plugins · 93 tokens

airdrop-hunting-guide

Guide to finding and qualifying for crypto airdrops — eligibility criteria, farming strategies, on-chain activity requirements, Sybil detection avoidance, and tracking tools. Use when helping users understand airdrops, check eligibility, or plan participation strategies.

nirholas/three.ws · 54 tokens

china-portfolio-monitoring

A monitoring framework for tracking the financial results, operating measures, strategic milestones, and risks of companies held by China-focused private-equity funds. It uses measures such as revenue growth, margins, debt, cash flow, and return on equity.

jwangkun/claude-for-financial-services-cn · 86 tokens