What problem does it solve?
This Skill transforms quantitative finance research inputs into validated, executable trading strategies, saving time and reducing manual errors.
Core Features & Use Cases
- Multi-Format Input: Converts PDF papers, Markdown drafts, DOCX reports, and text notes into structured strategy specifications.
- 5-Layer LLM Extraction: Detects multi-strategy specs from any document with a 5-layer LLM approach.
- Code Generation: Generates executable Backtrader code from the extracted specifications.
- Automated Backtesting: Validates code and runs backtests against expected or reference outputs.
- Agent-Native: Integrates as an Agent Skill in VS Code Copilot, Claude Code, or compatible agents.
- Use Case: You receive a research paper with a trading strategy. Use this Skill to analyze the paper, extract the strategy, generate the code, backtest it, and diagnose the results.
Quick Start
Install the x2strategy skill in your agent and run /x2strategy followed by a PDF file to analyze the paper and generate the strategy code.