congde/web3-quant-sandbox/factor-mining-research
Claude Code and agent skill by congde/web3-quant-sandbox
- community
Checking that the SKILL.md file is still in the repository.
Run, extend, and review the Web3 research sandbox factor-mining workflow. Use when working on /factor-mining, GP/ML/template/LLM alpha proposal generation, factor feature libraries, mined-factor backtests, IC/RIC validation, overfit warnings, handoff into /backtests, or Codex course exercises that need reproducible factor discovery under src/factor_mining/.
Install
npx vskill@latest install congde/web3-quant-sandbox/factor-mining-researchSKILL.md
Factor Mining Research
Use this skill to treat factor mining as an auditable research workflow, not as a signal generator.
Core Workflow
- Inspect the current implementation before changing behavior:
src/factor_mining/features.pysrc/factor_mining/service.pysrc/factor_mining/templates.pysrc/factor_mining/llm.pysrc/backtest/rolling/strategies/mined_factor.pysrc/web/src/pages/trading/FactorMiningPage.tsxsrc/web/src/factorHandoff.tssrc/web/src/pages/trading/BacktestsPage.tsx(consumes handoff only)
- Classify the request:
- feature-library expansion;
- GP/ML/template search behavior;
- LLM proposal generation;
- validation/reporting;
- mined-factor backtest integration;
- UI controls or result display.
- Keep every new factor point-in-time. Do not use future labels, future prices, future rolling windows, or post-split statistics in features.
- Route all candidates through the same validation path: train/test chronological split, IC or RIC, quintile spread, turnover proxy, t-stat/p-value, rank autocorrelation, overfit gap, and warnings.
- Preserve deterministic fallback behavior. LLM proposals may improve candidate generation, but the sandbox must work without network or API keys.
- Verify with targeted tests first, then project verification:
``powershell py -m pytest tests/test_factor_mining.py py scripts/course.py verify ``
Implementation Rules
- Put reusable feature definitions in
build_feature_matrix; return numeric series aligned to candle index. - Add interpretable formula templates to
templates.py; serialize expression candidates withexpr_to_dict. - Add LLM proposal logic only as constrained JSON candidate generation. Sanitize feature names and weight ranges before evaluation.
- For factor specs:
- expression sources:
gp,template; - weight sources:
ml,llm; - risk factors set
application: position_scale; - return factors may expose
backtest_spec. - Do not claim a factor works because an LLM suggested it. Only validated test metrics and backtest output count as evidence.
- Do not import code from an external upstream checkout into
src/.
External Patterns
Read references/factor-mining-patterns.md when adding new mining capabilities, LLM behavior, or factor families. It summarizes public approaches worth borrowing without copying code.
Output Checklist
When reporting factor-mining work, include:
- changed factor families or candidate sources;
- mode support:
gp,ml,template,llm,both,all; - number of features exposed by
build_feature_matrix; - whether LLM uses live API or fallback templates;
- leader method and test IC/RIC;
- overfit warnings and limitations;
- exact commands run and whether they passed.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/factor-mining-research/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/congde/web3-quant-sandbox/factor-mining-research)