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 quantskillsGPL-3.0In 1 marketplace
Turns a research report, paper or PDF into a reproduction package: translation, factor formulas, validation and a local backtest. Default market data comes from the Pandadata SDK, which needs your credentials.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
Of the plugin's README
Chinese
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
简体中文 | English
把一篇量化研报、论文、PDF、网页或文本材料,转化为完整的研究复现交付包:全文翻译 → 因子公式复现 → 有效性验证 → 策略代码 → 真实本地回测 → 交付摘要。
report-replication 是一个自包含的 Codex/Agent 技能包:用于把一篇量化研报、论文、PDF、网页或文本材料,转化为完整的研究复现交付包。
默认产出根目录:
/home/coder/project/replication/report-replication
flowchart LR
S["📥 研报 / 论文 / PDF<br/>网页 / 文本"] --> T1["1️⃣ 全篇翻译<br/>01_translation"]
T1 --> T2["2️⃣ AI 总结 +<br/>因子公式复现<br/>02_factor_reproduction"]
T2 --> T3["3️⃣ 因子有效性验证<br/>HTML 报告<br/>03_factor_validation"]
T3 --> T4["4️⃣ BACKTEST 策略代码<br/>04_backtest_strategy"]
T4 --> T5["5️⃣ 内置引擎真实回测<br/>local_backtest.py"]
T5 --> T6["6️⃣ 交付摘要 / 失败报告<br/>06_delivery"]
T6 --> Q{"🚦 质量门禁<br/>quality_gate_check.py"}
style S fill:#e3f2fd,stroke:#1976d2
style T5 fill:#fff3e0,stroke:#f57c00
style T6 fill:#e8f5e9,stroke:#388e3c
style Q fill:#ffebee,stroke:#c62828
该 Skill 在以下阶段不调用其他研究/数据 Skills:
默认生产数据源是 Pandadata / panda_data SDK。因子验证和 BACKTEST 需要日线市场数据时,先用 scripts/pandadata_market_data.py 拉取真实行情,并把缓存文件与 metadata 写入 03_factor_validation/data_cache/。
凭证只从当前环境变量或 ~/.pandadata/pandadata.env 读取:DEFAULT_USERNAME、DEFAULT_PASSWORD、JAVA_SERVICE_BASE_URL。仓库、报告、manifest、日志中都不应写入账号、密码或 token。
如果 Pandadata 不覆盖研报所需数据,才使用用户提供文件或其他来源,并在 manifest.json、HTML 报告和交付摘要中说明原因。
🚫 禁止用合成数据、模拟行情、随机市场数据证明因子有效性。固定随机种子随机因子只能作为负控制基准,且必须建立在同一份真实收益数据上。
/home/coder/project/replication/report-replication/{report_id}/
01_translation/
full_translation.md # 全文翻译
02_factor_reproduction/
ai_summary_and_factor_formula.md # AI 总结与因子公式
reference_implementation.py # 参考实现
03_factor_validation/
factor_validation_report.html # 因子验证 HTML 报告
data/
benchmark_comparison.csv
backtest_alignment_audit.csv
data_cache/
pandadata_market_data.csv
pandadata_market_data.csv.metadata.json
charts/
04_backtest_strategy/
strategy.py # BACKTEST 策略
config.json
backtest_report.html # 回测说明报告
backtest_report_raw.html
backtest_logs/
signal_log.jsonl
equity_curve.csv
performance_metrics.csv
trades.csv
position_return_detail.csv
06_delivery/
final_delivery_summary.md # 最终交付摘要
failure_report.md # 失败时的报告
manifest.json
因子检验报告必须包含:
| 维度 | 内容 |
|---|---|
| 📊 数据质量 | 数据覆盖率、缺失率、异常值、因子分布 |
| 📈 IC 体系 | IC、Rank IC、ICIR、年度 IC、滚动 IC |
| 💰 组合表现 | 分层组合收益、多空组合收益、累计净值、回撤 |
| 📐 绩效指标 | 年化收益、年化波动、Sharpe、Calmar、最大回撤、胜率、换手率 |
| 🔀 样本检验 | IS/OOS/Walk-forward 验证(数据不足必须说明) |
| 🛡️ 稳健性 | 参数稳定性、交易成本敏感性、反向因子、随机因子、简单基准对照 |
| 🔍 因子审计 | 数据可得性、信号滞后、标签构造、成交价、未来函数检查、偷价格检查、样本拆分、成本假设 |
| 🧮 对齐审计 | 理论因子验证曲线 vs BACKTEST 实际权益曲线的口径差异 |
图表图片内部文字必须使用英文 ASCII;中文解读放在 HTML 图表说明中,避免 PNG 在缺少中文字体的环境里出现方块或乱码。
| 脚本 | 用途 |
|---|---|
scripts/check_dependencies.py --install | 检查并自动安装 Python 依赖(也可 pip install -r requirements.txt) |
scripts/create_project.py | 创建标准输出目录和 manifest.json |
scripts/pandadata_market_data.py | 从 Pandadata 拉取真实日线行情,输出回测可读 CSV/Parquet 和 metadata |
scripts/local_backtest.py {report_dir} --market-data xxx.csv | 内置本地回测引擎;默认读取 Pandadata 缓存,行情支持 CSV/Parquet,默认需要 date、symbol、close 列 |
scripts/check_step5_strategy.py | 检查策略、配置、回测报告、信号日志、权益曲线、绩效与交易记录 |
scripts/build_factor_report.py | 根据结构化 JSON 指标生成 HTML 因子检验报告骨架 |
scripts/quality_gate_check.py | 交付前质量门禁:RAG scorecard、基准对照、对齐审计、每图解释、日志完整性、占位内容清理 |
回测引擎默认读取信号日志:04_backtest_strategy/backtest_logs/signal_log.jsonl。
python scripts/pandadata_market_data.py \
--asset-type stock \
--symbols 000001.SZ 600000.SH \
--start-date 20250101 \
--end-date 20250131 \
--output /home/coder/project/replication/report-replication/{report_id}/03_factor_validation/data_cache/pandadata_market_data.csv \
--project-dir /home/coder/project/replication/report-replication/{report_id}
python scripts/local_backtest.py \
/home/coder/project/replication/report-replication/{report_id} \
--market-data /home/coder/project/replication/report-replication/{report_id}/03_factor_validation/data_cache/pandadata_market_data.csv
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.
report-replication@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin report-replicationPlugins from other owners that cover similar ground