A-Share Quant Factor Library · factor-library Factor Lab: From OHLCV to Factor Validation Pipeline

Preface

With only a set of A-share OHLCV data in hand, you want to systematically screen through classic volume-price factors and run IC analysis, tiered backtesting, and neutralization. The common approach is to hunt down Alpha101/191 implementation snippets scattered online and then stitch them together into local scripts. This piecing-together is not only slow—dynamic execution and implicit dependencies also make results hard to reproduce and hard to audit. Below we introduce the A-Share Quant Factor Library · factor-library Factor Lab on SkillHub: it packages 292 classic factors and a complete validation pipeline into a Skill that can be invoked directly by an Agent, with a focus on pure Python, pandas, and line-by-line readable source code.

What Is This

A-Share Quant Factor Library · factor-library Factor Lab (coordinate @user_4ce3f404/factor-library, current version 1.1.0) is a professional category Skill uploaded by community publisher user_4ce3f404 (the SkillHub page lists the author as Lao Lang Nathan), sourced from community, tagged requires_api_key=false, with no API key dependency.

One-sentence positioning: 290+ A-share quant factor engine + IC / tiered backtesting / neutralization validation system—plug in your market data and run research and ranking along a fixed pipeline.

Core Features

All capabilities below are sourced from the official SkillHub page and the pre-fetched description; anything not present in the materials is excluded.

  1. Factor Computation: Built-in 292 classic factors, covering two factor sets—formulaic Alpha and short-cycle volume-price (also referenced in the materials as Alpha 101 and short-cycle volume-price 191 directions).
  2. Batch Computation: Supports chaining multiple factor calculations into a single pipeline, ideal for generating factor cross-sections in one pass on existing OHLCV data.
  3. IC Analysis: Includes IC/IR stability tests for observing factor predictive power and stability.
  4. Tiered Backtesting: Provides 5-tier stratified backtesting to observe monotonicity from a portfolio return perspective.
  5. Neutralization & Orthogonalization: Supports industry and market-cap neutralization as well as factor orthogonalization to reduce style exposure and factor multicollinearity interference.
  6. One-Click Ranking: Based on validation results, supports factor sorting/ranking capabilities (as stated verbatim in the page description).
  7. Implementation Style: Pure Python + pandas; the materials emphasize independent and self-contained, zero external dependencies, no network access, no environment variable reads, zero dynamic execution, auditable source code; includes a complete factor catalog and validation interpretation guide.

SkillHub page statistics (as displayed on the page): rating 100000, downloads 1103.

Installation & Enablement

Installation instructions follow the SkillHub skill page: first read SkillHub Installation & Priority Source Configuration, then install this skill into the skills directory recognized by your current Agent (the documentation requires using --dir during installation; otherwise it defaults to ./skills/ which may not be recognized).

  1. Check SkillHub CLI (if not installed, follow the installation docs to run install.sh):
command -v skillhub && skillhub --version
  1. Install this Skill (replace <skills directory> with the path corresponding to your current environment; for Cursor this is commonly ~/.cursor/skills/):
skillhub install user_4ce3f404/factor-library --dir <skills directory>

The official page also provides the coordinate notation: @user_4ce3f404/factor-library, which is an alternative way of writing the same skill identifier.

  1. Skills directories for each Agent (extracted from the SkillHub installation docs; pick the one matching your tool):
  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project
  • For other clients, see Section 4 of skillhub.md.

After installation, if the Agent does not automatically load the new skill, restart or refresh the skills directory according to your client’s documentation. The install count in the materials is 0, which only reflects SkillHub-side statistics and does not affect local installation via the commands above.

Typical Usage

The public page does not provide a standalone, copy-ready Python entry function name; the typical workflow follows the SKILL.md and the accompanying factor catalog and validation interpretation guide within the Skill. The steps corresponding to the workflow can be summarized as:

  1. Prepare Data: Your own A-share OHLCV (plus return, industry, market-cap, and other fields required for factor validation, as specified in the Skill’s internal documentation).
  2. Batch Computation: Run the batch computation pipeline to obtain factor cross-sections or time-series results.
  3. Validity Testing: Sequentially perform IC/IR stability tests and 5-tier stratified backtesting.
  4. Risk Handling: As needed, perform industry and market-cap neutralization and factor orthogonalization.
  5. Conclusion Output: Combine one-click ranking with the interpretation guide to filter factors most worth further research.

In environments like Cursor / Claude Code, you can reference the installed @user_4ce3f404/factor-library in a conversation, letting the Agent execute the above steps using the Skill’s internal scripts and documentation, rather than hand-writing scattered factor formulas.

Applicable Scenarios & Caveats

Who It’s For: Quant researchers or strategy developers conducting A-share volume-price factor exploration, who need an Alpha/short-cycle classic factor library with a unified validation pipeline; teams that want factor logic to be auditable and prefer an execution environment that minimizes external network dependencies.

Limitations & Caveats:

  • No matter how comprehensive the factor and validation framework is, it cannot replace your own business-level checks on data quality, survivorship bias, transaction costs, or look-ahead bias. The Skill provides a computation and standard testing toolchain.
  • The emphasis on zero external dependencies refers to the implementation approach within the Skill package; your own market data still must comply with regulatory and copyright requirements.
  • Version follows SkillHub (currently 1.1.0); to upgrade, use skillhub to update the skill at the same coordinate, and continue specifying the correct --dir.

Conclusion

A-Share Quant Factor Library · factor-library Factor Lab chains 292 classic factors with the IC → tiered backtest → neutralization → orthogonalization pipeline into a reusable workflow, ideal for systematic factor screening starting from a single set of OHLCV data. Official skill page and API coordinate:

  • SkillHub page: https://www.skillhub.cn/skills/user_4ce3f404/factor-library
  • Skill coordinate: https://api.skillhub.cn/user_4ce3f404/factor-library
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye