Claude Skill

ALAGENT-HKU/x2strategy

x2strategy is an open-source Claude Skill that extracts structured strategy specifications from quantitative finance research papers, enabling AI agents to parse and standardize trading strategies.

Overview

Stars150
Forks26
LanguagePython
Last pushed2026-05-25
Last synced2026-06-25
View on GitHub

Repository

OwnerALAGENT-HKU
Repositoryx2strategy
Full nameALAGENT-HKU/x2strategy
Repo ID1,192,629,876

Install this Skill

npx clawhub@latest install x2strategy

Registry

Typeopenclaw_skill
Quality score85/100
Verificationreadme_parsed
Last verified2026-06-25
Platforms
ClaudeOpenClawCodex
Capabilities
pdfmemorysearchimageterminalworkflow
Detected files
README.mdSKILL.mddocsexamplespyproject.tomlrequirements.txttests
Config keys
DEEPSEEK_API_KEYOPENROUTER_API_KEYOPENAI_API_KEYANTHROPIC_API_KEY
Install methods
  • npx clawhub@latest install x2strategy
  • git clone https://github.com/ALAGENT-HKU/x2strategy.git ~/.copilot/skills/x2strategy
  • git clone https://github.com/ALAGENT-HKU/x2strategy.git ~/.claude/skills/x2strategy
  • git clone https://github.com/ALAGENT-HKU/x2strategy.git .github/skills/x2strategy
  • pip install -e ".[codegen,agent,docx,dev]"

Summary

x2strategy is an open-source Claude Skill designed to extract structured strategy specifications from quantitative finance research papers. It enables AI agents like GitHub Copilot and Claude Code to parse academic papers and output standardized trading strategy definitions, bridging the gap between financial research and algorithmic implementation.

Chinese description

从量化金融研究论文中提取结构化策略规范——适用于 GitHub Copilot 与 Claude Code 的 Agent Skill(Claude Skill)

Key features

  • Extracts structured strategy specs from quantitative finance papers
  • Outputs standardized trading strategy definitions
  • Integrates with GitHub Copilot and Claude Code as an Agent Skill
  • Built with Python for efficient paper parsing
  • Open-source and community-driven development

Use cases

  • Automating strategy extraction from research papers for backtesting
  • Enabling AI agents to read and interpret financial literature
  • Standardizing trading strategies for cross-platform deployment
  • Accelerating quant research workflow with structured outputs

README excerpt

<div align="center"> <img src="assets/alagent_logo.png" alt="ALAGENT Logo" width="120"> # X2Strategy **Any Research Input → Strategy Spec → Executable Code → Backtest → Diagnosis** [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue?logo=python&logoColor=white)](https://python.org) [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-green.svg)](LICENSE) [![Agent Skills](https://img.shields.io/badge/Agent_Skills-compatible-blueviolet?logo=visualstudiocode)](https://agentskills.io/) [![Tests](https://img.shields.io/badge/tests-180_passed-brightgreen)]() [![LiteLLM](https://img.shields.io/badge/LLM-any_provider-orange?logo=openai)](https://docs.litellm.ai/docs/providers) [Getting Started](#-getting-started) · [How It Works](#-how-it-works) · [Examples](#-examples) · [Docs](#-documentation) · [简体中文](README_CN.md) --- *Turn quantitative finance research — papers, drafts, reports, or strategy ideas — into validated, executable trading strategies. Automatically.* </div> ## Highlights - **🔬 Multi-Format Input** — PDF papers, Markdown drafts, DOCX reports, plain text. Auto-detected. - **🧠 5-Layer LLM Extraction** — Multi-strategy detection → indicators → signal logic → execution plan → risk controls. - **🧾 Grounded Extraction Quality** — Optional instruction/customization/clarification context, retrieved repair-time operator-pitfall checks, canonical `portfolio_weights`, and structured `needs_human_review` flags. - **✅ Verified Code Generation** — AST validation + Backtrader structural checks + indicator registry, not just "generate and hope". - **📊 Automated Backtesting** — Execute, extract metrics, and diagnose against paper-reported performance. - **🤖 Agent-Native** — Works as an [Agent Skill](https://agentskills.io/) (`/x2strategy

Topics

No topics yet.

Explore more

Data from GitHub. Synced on 2026-06-25