Writes complete HTML research reports with nine fixed sections and a catalog, renders PNG charts from result tables, and lists existing studies via `uv run qs report` commands.
Ships in quantspace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the uv run qs report commands below; reporting tasks do not require
reading skills/report/ source. Each command prints one JSON envelope on
stdout (ok, data, artifacts, warnings, or error with a hint).
Exact options: uv run qs report <command> --help or
uv run qs schema report.<command>. Install with uv sync --extra report.
uv run qs report chart --kind equity-curve --table out/run/result.parquet \
--column return --output out/equity.png
uv run qs report bundle --print-template # the fields of study.json
uv run qs report bundle --input-json study.json --catalog
uv run qs report list
uv run qs report catalog
study.json holds the report fields (namespace, slug, title, question,
hypothesis, execution, metrics, figures, caveats, and so on).
uv run qs schema report.bundle describes each one.
Reports go under QUANTSPACE_REPORTS_ROOT, otherwise the workspace reports/
directory:
reports/<namespace>/<slug>/index.html
reports/<namespace>/<slug>/params.json
reports/<namespace>/<slug>/artifacts/metrics.csv # only when metrics is non-empty
reports/catalog.html
reports/catalog.json
index.html is the nine-section report: 研究问题, 数据与样本, 假设与方法,
执行约定, 证据与指标, 图表, 对照与稳健性, 限制与下一步, 复现与产物. Without
comparison or robustness evidence, section 7 still renders 本报告未做.
params.json is the catalog sidecar; list only counts folders that hold both
files. bundle updates the catalog only with --catalog.
Complete research archives are HTML only: no Markdown, PDF, or database. Other Skills return objects or tables and never write HTML.
bundle only renders the fields it is given. Before filling them, read the
strategy implementation, the data, and the actual backtest results:
question. Write a distinct hypothesis: why the signal
might work, what it predicts, and how positions are opened, sized, and
closed. Implementation details go to method_notes.caveats; put concrete tests that could challenge the explanation in
next_steps. Do not present a hypothesized mechanism as a proven source of
return.reproduce_command only.Hard rules:
metrics from a backtest result (metrics.json), CSV, or JSON. Never
invent a number. metrics_source is required.namespace and slug are safe path segments only.visibility is private unless publishing a public example; do not git-add
private studies. Public examples use namespace="strategy_examples",
visibility="public_example", and kind="public_example".ResearchReport and
write_research_bundle, the dashboard renderer, the chart functions, CJK
fonts, Windows path rules, and template conventions. Read it when changing
this Skill or building a report from Python.Before using a command, run it with --help to see its options and defaults. uv run qs schema <skill>.<command> shows its input and output fields; add --file-field FIELD for the structure of an option that takes a JSON file.
| Command | What it does | Side effects |
|---|---|---|
uv run qs report list | List research studies that have index.html and params.json. | read-only |
uv run qs report bundle | Write a nine-section HTML research archive with write_research_bundle. | writes-output |
uv run qs report catalog | Rewrite catalog.html and catalog.json under the reports root. | writes-output |
uv run qs report chart | Render one skills.report.charts PNG from a table. | writes-output |
__init__.py (opens in a new tab)charts.py (opens in a new tab)cli.py (opens in a new tab)fonts.py (opens in a new tab)references/python-api.md (opens in a new tab)renderer.py (opens in a new tab)research_report.py (opens in a new tab)templates/backtest_report.html (opens in a new tab)templates/catalog.html (opens in a new tab)templates/catalog_nav.html (opens in a new tab)templates/factor_report.html (opens in a new tab)templates/research_report.html (opens in a new tab)templates/signal_digest.html (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/analyzeMeasure returns (performance metrics, drawdowns, overfitting tests), screen factors by IC, grouped returns, horizon and lag IC surfaces, and factor correlation, run deterministic factor preflight and evaluation, and test stationarity with `uv run qs analyze ...`./backtestRun date-by-symbol target weights (or whole lots, booked by quantity with futures on the contracts actually held) through the shared vectorized backtester, convert votes into weights (equal, risk parity, inverse variance), apply market overlays, blend strategy return streams, and price A-share trigger-time costs with `uv run qs backtest ...`./computeCompute technical indicators and factor values on OHLCV panels, build log-difference features and forward-return or triple-barrier labels, resample one-minute bars to five minutes, and forward-adjust stored bars with `uv run qs compute ...`./factor-miningRun governed AI factor mining: template and validate versioned research contracts (ResearchBrief, FactorSpec, ReviewReport, PoolDecision), check generated factor functions with `uv run qs factor-mining ...`, and follow the multi-agent role protocol for generating, reviewing, and pooling factors./ingestDownload stock, index, futures, listed-fund and ETF, HK and US bars, adjustment factors, reference data, ETF creation and redemption data, and futures ticks from PandaData with `uv run qs ingest ...`, store bars locally, and fetch today's intraday minute bars while the market is open, from Sina through AKShare or, for futures, built from TqSdk ticks./live-tradeTake a strategy's latest target weights live or to paper trading. Diff them against the last delivered target, size percent targets into contracts or board lots (lots strategies give whole lots directly), and push the rebalance signal to IM webhooks (WeCom, Feishu, Slack, Discord, DingTalk) with `uv run qs live-trade ...`; run daily (signal and trade at 14:50, the 14:50 price as the close) or minute-level (1m-60m) strategy workflows on a cross-platform schedule that refreshes PandaData, takes today's prices during the session from AKShare (Sina) or, for futures, bars built from TqSdk ticks, reconciles them against PandaData the next day, and alerts on failures. Futures go to the PandaAI live-trading client through its bundled `panda-live-trading` CLI./quantspace:reportfrom quantspace
quantspace@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin quantspaceOther plugins' skills for the same job