strategy-builder

Generate quantitative trading strategies with config.json and signal_engine.py backtests.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/loanntc/Paave --skill strategy-builder-loanntc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategy-builder
Source: https://github.com/loanntc/Paave/tree/main/skills/strategy-generate
Command: npx skills add https://github.com/loanntc/Paave --skill strategy-builder-loanntc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill turns vague trading ideas into a runnable quantitative strategy by generating the required configuration and signal engine code, then validating the results through a backtest workflow.

Core Features & Use Cases

  • Requirements parsing: Extract instrument codes, time range (defaulting to 10 years back when omitted), and strategy intent into a runnable config.json.
  • Strategy design + coding: Implement a code/signal_engine.py that follows the required SignalEngine contract and outputs signals in the range [-1.0, 1.0].
  • Backtest-ready iteration loop: Run the built-in backtest tool, inspect artifacts/metrics.csv and other outputs, and iteratively refine until criteria are met.
  • Cross-market code normalization: Support China A-shares, US stocks, Hong Kong stocks, and crypto using the required code formatting rules.

Quick Start

Ask the system to create a strategy for AAPL.US using a clear entry/exit rule, then run the backtest for 2024 and return the metrics.

Frequently Asked Questions about strategy-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build and backtest a quantitative trading strategy from a trading idea?

To build and backtest a quantitative trading strategy, you translate your trading intent into a valid config.json and a SignalEngine implementation, then run a backtest to evaluate metrics and iteratively refine the strategy logic.

Does the signal engine support backtesting crypto and equity markets like China A-shares and US stocks?

Yes, the signal engine supports backtesting crypto, China A-shares, US stocks, and Hong Kong stocks by applying market data normalization rules to format instrument codes for daily long, short, or portfolio strategies.

What constraints apply to signal outputs when generating a signal engine implementation?

Signal outputs must be constrained to the range [-1.0, 1.0], signal indices must align to input data, and the signal_engine.py code must avoid unsafe execution blocks to pass risk validation.

How do I evaluate backtest results after generating a quantitative trading strategy?

You evaluate backtest results by running the built-in backtest tool and inspecting the generated artifacts, specifically the metrics.csv file, to review performance and iteratively refine your strategy until criteria are met.

What is the default time range for a backtest when a specific period is not provided?

The default time range for a backtest is 10 years back when omitted, allowing the requirements parsing step to extract a broad historical window for evaluating long-term equity or crypto strategy performance.

Can I generate a portfolio weighting strategy for multiple assets using this approach?

Yes, you can generate a portfolio weighting strategy by defining your intent during requirements parsing, which produces a config.json and signal engine implementation designed to handle portfolio-style allocations across supported markets.