Introduction¶
After writing code for a quantitative strategy, it is usually necessary to run a historical backtest: selecting a cycle, retrieving market data, calculating positions and transactions, and then summarizing returns, drawdowns, and trade details. These steps are often scattered across local scripts, broker terminals, or internal platforms, which does not align with the daily IDE workflow of writing strategies and modifying parameters.
In an Agent environment like Cursor that supports Skills, if backtesting capabilities are encapsulated into an installable skill pack, you can initiate verification directly within the conversation. The Agent will call the Qirui Strategy Center framework according to the skill instructions, eliminating the need to switch tools manually every time. The following section introduces what the “Qirui Strategy Backtesting Assistant” on SkillHub is, what it does, and key points to note during installation and usage.
What is this¶
Qirui Strategy Backtesting Assistant (Coordinate @org-0ueytgdu/deepquant-backtest) is an enterprise-sourced skill pack released by China Galaxy Securities. The current version is 7.0.1, and it is categorized as professional on SkillHub.
Official Description: Executes daily or minute-level historical backtests based on the Qirui Strategy Center framework to perform historical validation of strategies. It automatically generates core performance indicators such as returns, risks, and trade details to provide references for strategy evaluation.
Core Functions¶
The following capabilities are derived from the SkillHub page and crawled data. For details not listed separately, refer to the SKILL.md within the skill pack after installation.
- Historical Backtesting: Run daily or minute-level backtests under the Qirui Strategy Center framework to complete historical validation of strategies.
- Performance Output: Automatically generates core indicators such as returns, risks, and trade details for strategy evaluation reference.
- API Dependency: The skill tag indicates
requires_api_key=true. You need to prepare and configure the corresponding API Key before use (specific fields and acquisition methods are subject to the skill pack instructions and the requirements of the Galaxy Securities Qirui Strategy Center).
Installation and Activation¶
The installation process follows the SkillHub general documentation skillhub.cn/install/skillhub.md. The installation prompt provided on the official page is: Install @org-0ueytgdu/deepquant-backtest according to that document.
1. Check or Install SkillHub CLI¶
First, confirm if the skillhub command exists on your local machine:
command -v skillhub && skillhub --version
If not installed, you can use the official installation script (full installation includes CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
If only the CLI is needed:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install to the current Agent’s skills directory¶
When installing the skill, you must use --dir to point to the skills directory recognized by the current Agent; otherwise, it defaults to ./skills/, which the Agent may fail to load.
skillhub install org-0ueytgdu/deepquant-backtest --dir <skills directory>
Common paths (from SkillHub installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also send the official prompt to the AI and ask it to complete the installation according to skillhub.cn/install/skillhub.md; write the coordinate in full as @org-0ueytgdu/deepquant-backtest.
If the Agent does not recognize the new skill immediately after installation, restart or refresh the skill list according to the instructions for your specific client.
3. API Key¶
The tag requires_api_key=true indicates that the backtest will access authenticated services. Please complete the application and configuration of the Key in the skill pack documentation or on the Qirui Strategy Center side before asking the Agent to execute backtest-related tasks.
Typical Usage¶
No independent command-line backtest examples were provided on the public page; this skill is delivered in the form of a general SKILL.md. The Agent reads the skill instructions and initiates the backtest in the conversation based on your strategy and parameters.
The reproducible usage path can be summarized as follows:
- Install
@org-0ueytgdu/deepquant-backtestto the skills directory of the current environment as described in the previous section, and configure the API Key. - Specify in the Agent conversation that you want to perform a daily or minute-level historical backtest, and provide the strategy logic or existing strategy code (specific input formats are subject to the documentation within the skill).
- The Agent calls the skill to execute the backtest via the Qirui Strategy Center framework and organizes outputs such as returns, risks, and trade details for your strategy evaluation.
To verify parameter names, interfaces, or example conversations, please open the installed skill directory to read SKILL.md, or visit the SkillHub skill page for the latest instructions.
Use Cases and Notes¶
Who is it for
- Teams already using or planning to use the Galaxy Securities Qirui Strategy Center for strategy development and validation.
- Developers who want to integrate backtesting with coding and strategy modification within the same workflow in an Agent environment like Cursor.
Points to Note
- The skill source is enterprise; ownership and compliance requirements are subject to the publisher (China Galaxy Securities) and SkillHub display.
- Backtest results are for reference only for strategy evaluation and do not constitute investment advice; real-world trading requires review according to your own risk control and compliance processes.
- The ratings and download counts shown on the SkillHub page will change over time; at the time of writing, the page showed a rating of 100000 and 842 downloads (subject to the SkillHub Skill Page).
- If the API Key is not configured or if network/permission requirements are not met, the Agent cannot complete remote backtest calls.
Conclusion¶
The Qirui Strategy Backtesting Assistant encapsulates the daily and minute-level backtesting and core performance indicator generation of the Qirui Strategy Center into an Agent-installable skill pack, reducing the cost of switching back and forth between the IDE and the backtesting environment. Installation and priority source configuration are subject to the official SkillHub documentation; for skill details and versions, see:
- SkillHub Skill Page: https://www.skillhub.cn/skills/org-0ueytgdu/deepquant-backtest
- API Resource Address: https://api.skillhub.cn/org-0ueytgdu/deepquant-backtest