Mines A-share quantitative factors using PandaAI in two modes: AI-led blind discovery or extraction from research documents. Translates formulas into pandaai-cli syntax and runs experiments.
Ships in factor-mining-pandaai. 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.
Discover factor hypotheses autonomously from PandaAI data or extract them from
research documents, translate them into pandaai-cli formula syntax, and
optionally run PandaAI analysis. Treat every output as a research hypothesis.
TerribleCookie.abgyjaguo.https://github.com/quantskills/skill-factor-mining-pandaai.GPL-3.0-only).pandaai-cli 0.1.2 or a compatible release.pdfplumber when the source is a PDF.Install dependencies only when needed:
python -m pip install pandaai-cli pdfplumber
For authentication, ask the user to run pandaai-cli login interactively.
Never request, print, store, or pass the user's phone number, password, token,
or config file contents through the conversation or repository.
references/blind_mining_workflow.md before generating candidates.If the request is ambiguous, infer document extraction only when a source is present; otherwise select blind mining and state that choice.
references/pandaai_cli_reference.md before translating formulas or
running platform commands.--formula over Python --code. Start with confirmed fields:
open, high, low, close, volume, and amount.
For standard quantitative transformations in Python mode, read
references/quant_operator_mapping.md and generate snippets with
scripts/pandaai_quant_operators.py.scripts/pandaai_cli_wrapper.py for platform operations. Creating or
running factors requires an explicit user request or approval.scripts/pandaai_cli_wrapper.py to create or inspect factors. Run a
backtest only when the user asked for platform execution.references/field_sources.md. Normalize Excel/TXT/JSON/direct fields
with scripts/pandaai_field_catalog.py; use documented market fields when
the user requests pure blind discovery or supplies no field source.list to avoid duplicates. Check balance
before proposing platform execution.scripts/blind_mining_engine.py:
stage 1 combines fields with base mechanisms; stage 2 evolves time-series transforms;
stage 3 evolves cross-sectional transforms. Use platform-native formulas
and let the ledger drive selection, crossover, mutation, and deduplication.blind_mining_runner.py --execute.
Rank with IC,
Rank IC, IC IR, statistical evidence, grouped-return monotonicity, Sharpe,
return, and drawdown; never optimize one metric alone.python scripts/pandaai_cli_wrapper.py create \
--formula "close/ref(close,5)-1" \
--name "five-day-momentum" \
--start-date 20240101 \
--end-date 20241231 \
--adjustment-cycle 5 \
--factor-direction 1
python scripts/pandaai_cli_wrapper.py run <factor-id>
python scripts/pandaai_cli_wrapper.py result <run-id>
python scripts/blind_mining_candidates.py --count 8 --seed 1
python scripts/blind_mining_engine.py --stage 1 --population 8 --output stage1.json
python scripts/pandaai_field_catalog.py --input fields.xlsx --output fields.json
python scripts/blind_mining_engine.py --stage 1 --field-catalog fields.json \
--population 8 --output stage1.json
python scripts/blind_mining_runner.py --batch stage1.json --ledger runs.jsonl \
--start-date 20240101 --end-date 20251231 --adjustment-cycle 5 --execute
python scripts/blind_mining_engine.py --stage 2 --parent-stage 1 \
--ledger runs.jsonl --population 8 --output stage2.json
On Windows, keep --json enabled; the wrapper adds it automatically.
10075.Keep the core workflow runtime- and model-independent. It requires only an AI
that can read Markdown, inspect local files, and execute python/pandaai-cli.
Do not assume a particular model, tool-call schema, subagent system, memory API,
or vendor-specific feature.
SKILL.md, install this folder unchanged and invoke it
using that runtime's skill mechanism.agents/portable-loader.md with the real skill-root path.agents/openai.yaml and agents/cursor-rule.mdc as thin
optional adapters only. They must not contain unique research logic.SKILL.md, references/, and scripts/.references/pandaai_cli_reference.md: CLI commands, parameters, and result
shape based on PandaAI CLI 0.1.2.references/blind_mining_workflow.md: autonomous search loop, evaluation,
ledger, and stop conditions.references/quant_operator_mapping.md: verified, approximate, conditional,
and unsupported quantitative-operator mappings for PandaAI.references/field_sources.md: Excel/TXT/JSON/direct/pure-blind field input
contract, normalization, provenance, and safety rules.scripts/pandaai_cli_wrapper.py: JSON-oriented command wrapper.scripts/blind_mining_candidates.py: deterministic diversified seed-batch
generator with ledger-aware deduplication.scripts/blind_mining_engine.py: three-stage native-formula genetic search,
multi-objective fitness, elitism, crossover, mutation, validation, and dedup.scripts/blind_mining_runner.py: approved batch executor and compact metric
ledger writer; requires the explicit --execute safety switch.scripts/pandaai_quant_operators.py: machine-readable native operator
catalog, expression wrapper, and validator used by the genetic engine.scripts/pandaai_field_catalog.py: dependency-light field importer and
normalizer for spreadsheets, text, JSON, direct names, and pure-blind mode.What SKILL.md sets; muted values are Claude Code's defaults
/factor-mining-pandaai:factor-mining-pandaaifrom factor-mining-pandaai
factor-mining-pandaai@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin factor-mining-pandaaiOther plugins' skills for the same job