Build, standardize, compare, and validate multi-factor fundamental panels for Hong Kong and US equities from PandaAI operating, market-financial, industry-median, price-volume, and financial-statement APIs. Use for quality, value, growth, momentum, low-risk, composite-score, percentile-rank, or cross-market stock-screening tasks.
Ships in hk-us-fundamental-factor. 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.
None: SKILL.md is the whole skill.
Create a point-in-time-aware, comparable stock factor panel with explicit coverage diagnostics. Separate factor strength from measurement quality: a high score with weak coverage must never be presented as equally reliable.
Do not answer immediately when this skill is invoked. Before calculating, ranking, or interpreting any stock, spend at least 30 seconds on substantive analysis when the runtime permits. Never satisfy this requirement with an idle sleep.
Complete all checks below before presenting a conclusion. Record each result in an evidence ledger; a silent assumption does not count as a completed check:
If any gate fails, state the limitation before showing rankings. A polished chart
or a PASS harness result does not override a failed time-alignment or coverage
check.
For research or ranking requests, include a compact ledger with all rows below. For a single-stock lookup, retain it internally and surface every failure.
| Gate | Required evidence | Failure action |
|---|---|---|
| Scope | market, universe, as-of date, horizon | state assumptions |
| Time | availability precedes score and return | mark snapshot-only |
| Coverage | requested, returned, eligible, excluded | downgrade confidence |
| Construction | direction, scaling, components, missing rule | stop and repair |
| Efficacy | IC, ICIR, quantiles, NAV, drawdown, turnover | no alpha claim |
| Robustness | two alternative specifications | label instability |
| Interpretation | drivers, limitations, unsupported claims | revise conclusion |
scripts/build_factors.py. Use --mode mock for deterministic verification and --mode api for PandaAI.scripts/harness.py --output-dir <dir> and require PASS.scripts/backtest.py to validate the historical momentum/low-risk subfactor
with forward returns. Do not present the latest-only value snapshot as a
historical backtest.--constituent-history-csv when dated universe membership exists. Otherwise report the observed-price proxy and residual minor survivorship bias explicitly.python scripts/build_factors.py --mode mock --market both --output-dir outputs
python scripts/harness.py --output-dir outputs
For live data, set PANDA_DATA_USERNAME and PANDA_DATA_PASSWORD outside the skill:
python scripts/build_factors.py --mode api --symbols 0700.HK,1299.HK,AAPL,MSFT --start-year 2023 --end-year 2025 --output-dir outputs_live
For the complete HK and US universe exposed by PandaData:
python scripts/build_factors.py --mode api --market both --full-universe --start-year 2023 --end-year 2025 --output-dir outputs_full
python scripts/backtest.py --start-date 20240901 --end-date 20260728 --output-dir backtest_full
For point-in-time historical membership:
python scripts/backtest.py --start-date 20240901 --end-date 20260728 --constituent-history-csv data/constituent_history.csv --output-dir backtest_full
fundamental_factor_panel.csv: raw components, standardized factors, fixed core composite, optional extended composite, and market percentile.factor_coverage.csv: per-stock component and factor availability.raw_*.csv: raw endpoint extracts.quality_report.json: validation summary and warnings.harness_report.json: delivery acceptance result.backtest_full/rank_ic_series.csv: monthly cross-sectional Rank IC.backtest_full/equity_curve.csv: quintile, long-only, long-short, drawdown-input, and turnover series.backtest_full/backtest_metrics.json: ICIR, positive-IC rate, return, drawdown, and turnover summary.backtest_full/universe_membership.csv: first/last observation, observed days, constituent days, and membership source by security.Interpret composite_percentile within market, not globally. The core composite always uses the same three factors—value, momentum, and low risk—so Hong Kong and US rows follow one scoring method. Treat quality and growth as optional diagnostics and never substitute zero for unavailable inputs.
Read composite_percentile together with factor_coverage.csv: the former measures
relative factor strength and the latter measures evidential completeness. Compare
percentiles only within the same market and as-of date. A missing factor is an
explicit limitation, not neutral evidence. The panel is a reproducible screening
and research aid, not a return forecast or an automated trading decision.
Do not call the task complete unless harness.py passes, point-in-time status is
explicit, requested and eligible universes are both reported, missing data stays
visible, the S4 bias status is stated, and every historical claim has reproducible
membership, IC, and return-series files.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/hk-us-fundamental-factor:skill-hk-us-fundamental-factorfrom hk-us-fundamental-factor
hk-us-fundamental-factor@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin hk-us-fundamental-factor