Computes technical indicators, factor values, log-difference features, forward-return/triple-barrier labels, resamples OHLCV bars, and adjusts stored bars via `uv run qs compute` 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 compute commands below; research tasks do not require
reading skills/compute/ source. Each command prints one JSON envelope on
stdout (ok, data, artifacts, warnings, or error with a hint).
Exact options: uv run qs compute <command> --help or
uv run qs schema compute.<command>.
uv run qs compute indicators list
uv run qs compute indicators show roc
uv run qs compute factor --panel out/panel.parquet --indicator roc -p period=10 \
--output out/roc10_long.parquet
uv run qs compute factor --panel out/panel.parquet --indicator roc -p period=10 \
--layout wide --output out/mom.parquet
uv run qs compute factor --panel out/panel.parquet --indicator roc -p period=10 \
--keep-na --output out/roc10_values.parquet
uv run qs compute features --panel out/one_symbol.parquet --lookback 3 --lags 1 \
--output out/features.parquet
uv run qs compute labels forward-return --bars data/market/1d/510300.SH.parquet \
--horizon 5 --output out/labels.parquet
uv run qs compute labels triple-barrier --bars data/market/1d/510300.SH.parquet \
--output out/barrier_labels.parquet
uv run qs compute resample --input out/minute.parquet --output out/5m.parquet
uv run qs compute adjust --symbols 600000.SH --frequency 1d --write
--panel is a (symbol, eob) OHLCV table from qs store read.factor writes a long table (symbol, eob, value) by default and a wide
date by symbol table with --layout wide. Warm-up rows are dropped unless
--keep-na is given; qs analyze evaluate needs --keep-na.--bars is one symbol's OHLCV file with an eob index.adjust reads data/market/<frequency>/ and data/adj_factor/ and, with
--write, writes data/market/<frequency>_adj/; without it the command is a
dry run.strategies/<domain>/, not here. New
factor functions written during factor mining go to
strategies/<domain>/mined_factors/ and need no registration.resample keeps the A-share sessions 09:31-11:30 and 13:01-15:00 and
never aggregates across the lunch break.Factor wrapper contract, feature and label builders, math
utilities. Read it when changing this Skill or writing strategy code.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 compute indicators list | List public indicators with signatures. | read-only |
uv run qs compute indicators show | Show one indicator's signature, defaults, and docstring. | read-only |
uv run qs compute factor | Calculate an indicator or module:name factor on a panel. | writes-output |
uv run qs compute features | Build model-ready OHLC log-difference features for a panel. | writes-output |
uv run qs compute labels forward-return | Create forward-return threshold labels for one symbol. | writes-output |
uv run qs compute labels triple-barrier | Create triple-barrier labels for one symbol. | writes-output |
uv run qs compute resample | Resample A-share one-minute bars to five-minute bars. | writes-output |
uv run qs compute adjust | Forward-adjust stored raw bars with adj_factor events. | writes-output, writes-store |
__init__.py (opens in a new tab)adjust.py (opens in a new tab)cli.py (opens in a new tab)features.py (opens in a new tab)indicators.py (opens in a new tab)label_maker.py (opens in a new tab)references/python-api.md (opens in a new tab)regime.py (opens in a new tab)resample.py (opens in a new tab)utils.py (opens in a new tab)wrappers.py (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 ...`./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./mlRank factors with a walk-forward model, plan purged walk-forward folds, fit train-only PCA regressors, track an index with sparse LASSO weights, and train or apply registered scikit-learn / XGBoost models with `uv run qs ml ...`./quantspace:computefrom 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