Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsIn 1 marketplace
Mine formulaic alpha factors end to end: LLM 主导生成候选公式 → 三层校验(白名单/量纲/前视)→ warm-start 遗传编程精修 → AlphaEval 五维打分 → LLM 经济解释 → 自包含 HTML 报告,返回结构化因子结果。Use when the user wants to mine/discover alpha factors, generate formulaic (expression-tree) trading factors, run LLM+GP factor search, or evaluate factor predictive power (RankIC) on stocks or futures. 只挖因子、不做回测(回测归另一 skill)。
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
公式化 Alpha 因子挖掘 skill,面向股票、期货以及其他按时间对齐的结构化数值数据。OHLCV 是内置数据适配器的默认入口,不是因子表达式的限制;只要数据经过清洗、时间对齐并注册为可用特征,价格、成交、基本面、宏观、盘口、另类数据和模型输出都可以参与因子构造。它负责生成、校验、精修、评价和解释因子,不负责正式回测、交易执行或资金曲线分析。
完整流程:
候选生成、特征量纲判断、AlphaEval 逻辑评分和经济解释永久强制使用 LLM。调用失败、返回格式错误或字段缺失时立即报错,不会纯 GP、使用 0.5 中性分、生成模板解释或发布不完整报告。
唯一外部模型配置入口是 config["llm"],所有阶段共享同一运行时客户端:
config = {
"llm": {
"base_url": "https://your-llm-gateway.example/v1",
"api_key": "<YOUR_API_KEY>",
"model": "<YOUR_MODEL>",
"protocol": "anthropic-tools",
}
}
四个字段必须同时提供。未配置外部模型时,使用当前 Codex、Claude Code 等工具宿主提供的大模型。禁止使用 enabled、provider、环境变量开关或第二套配置入口。
from scripts.generate import run
result = run(
universe="RB.SHF",
start_date="20230101",
end_date="20241231",
config={
"data": {"use_synthetic": False, "asset_type": "auto"},
"n_candidates": 50,
"top_k": 10,
"gp": {"pop_size": 80, "n_gen": 15, "seed": 42},
"output_dir": "output",
},
)
python scripts/generate.py --universe RB.SHF --start 20230101 --end 20241231 --out output
result = run(
"SYNTH", "20230101", "20241231",
config={"data": {"use_synthetic": True}, "n_candidates": 20, "top_k": 5},
)
合成数据只用于测试流程,不应作为正式研究结论。
内置行情由 scripts/data_loader.py 统一接入,详细口径见 references/data_guide.md。如果使用基本面、宏观、盘口、情绪或其他另类数据,需要先通过数据适配器载入,并保证每个特征具有明确的时间戳、数值类型和可追溯的数据来源。数据账号只能在运行环境中提供,仓库不保存账号、密码、API key 或本机路径:
$env:PANDA_DATA_USERNAME = "<YOUR_USERNAME>"
$env:PANDA_DATA_PASSWORD = "<YOUR_PASSWORD>"
没有可用数据或特征无法完成时间对齐时,流程不会伪造结果,也不会发布正式报告。
run() 返回 factors、trajectory、rejected、report_path 和 meta。因子结果包含公式、五维评分、RankIC、样本内外指标、信号统计、经济解释和 LLM 元数据。
meta["llm_runtime"] 记录运行模式、模型、run_id、每个阶段状态、request_id 和 payload_hash。报告包含入选因子、五维评分、经济解释、拒绝候选、GP 迭代图和每轮迭代明细,并在完整成功后原子发布。
skill-llm-alpha-generator/
├── agents/ # Agent 加载器和元数据
├── references/ # 按需读取的规范和方法文档
├── scripts/ # 主流程、运行时、报告和测试
├── .gitignore # 忽略缓存、凭证和运行结果
├── LICENSE
├── README.md
├── README.en.md
├── requirements.txt
└── SKILL.md
主要模块:generate.py 主流程,llm_runtime.py 唯一 LLM 边界,dimension_inferrer.py 量纲判断,alpha_eval.py 五维评分,llm_explainer.py 经济解释,report_builder.py HTML 渲染,data_loader.py 行情接入。
python scripts/test.py -q
python -X utf8 <CODEX_HOME>/skills/.system/skill-creator/scripts/quick_validate.py .
提交 Git 前确认没有 .env、凭证文件、运行报告、结果 JSON、真实 API key、账号、密码、邮箱或个人路径。.gitignore 已覆盖本地缓存、报告和凭证文件。详细规则见 SKILL.md、references/method_guide.md、references/llm_policy.md 和 references/output_contract.md。
Formulaic alpha-factor mining skill for stocks and futures.
The workflow uses the current tool-host LLM by default, or one complete external configuration under config.llm. Candidate generation, dimension inference, AlphaEval logic scoring, and economic explanation are mandatory LLM stages. Any failure stops the run and prevents report publication.
SKILL.md: agent workflow and contractsagents/: portable loader and agent metadatareferences/: data, method, LLM, operator, fitness, and output contractsscripts/: deterministic factor mining implementation and testsRun the test suite with python scripts/test.py.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
llm-alpha-generator@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin llm-alpha-generatorPlugins from other owners that cover similar ground