x2strategy

Official

Automate quant finance research to trading strategies

AuthorALAGENT-HKU
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

litellmbacktraderpymupdfPyMuPDFpython-dotenvyfinance

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: x2strategy
Download link: https://github.com/ALAGENT-HKU/x2strategy/archive/main.zip#x2strategy

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.