# Qmt inner backtest

> Qmt inner backtest is an open-source agent skill. 根据策略描述、研报 PDF 或截图，解读因子/选股逻辑，基于 scripts/daily-factors-backtest.py 框架生成 QMT 内置日频因子回测脚本。用户提到 QMT 内置回测、因子选股回测、截面因子、 研报复现、handlebar 回测、after_init. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/dfkai/xtquantai/tree/master/skills/qmt-inner-backtest
- **Repository:** https://github.com/dfkai/xtquantai
- **GitHub stars:** 171
- **License:** MIT
- **Skill name:** qmt-inner-backtest
- **Collection:** https://github.com/dfkai/xtquantai
- **Listing updated:** 2026-11-17

## About

根据策略描述、研报 PDF 或截图，解读因子/选股逻辑，基于 scripts/daily-factors-backtest.py 框架生成 QMT 内置日频因子回测脚本。用户提到 QMT 内置回测、因子选股回测、截面因子、 研报复现、handlebar 回测、after_init 预计算信号时使用。

## When your agent uses it

> 根据策略描述、研报 PDF 或截图，解读因子/选股逻辑，基于 scripts/daily-factors-backtest.py 框架生成 QMT 内置日频因子回测脚本。用户提到 QMT 内置回测、因子选股回测、截面因子、 研报复现、handlebar 回测、after_init 预计算信号时使用。

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/dfkai/xtquantai/tree/HEAD/skills/qmt-inner-backtest)
- [No network calls found in its scripts](https://github.com/dfkai/xtquantai/tree/HEAD/skills/qmt-inner-backtest)
- [License: MIT](https://github.com/dfkai/xtquantai/tree/HEAD/skills/qmt-inner-backtest)

## Install

### Claude Code

This skill ships in the `qmt-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add dfkai/xtquantai
/plugin install qmt-skills@xtquantai
```

Or copy only this skill to `~/.claude/skills/qmt-inner-backtest`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dfkai/xtquantai.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/qmt-inner-backtest &&
cp -R "$tmp/skills/qmt-inner-backtest" ~/.claude/skills/qmt-inner-backtest &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/qmt-inner-backtest` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/qmt-inner-backtest` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dfkai/xtquantai.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/qmt-inner-backtest &&
cp -R "$tmp/skills/qmt-inner-backtest" ~/.agents/skills/qmt-inner-backtest &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/qmt-inner-backtest` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/qmt-inner-backtest` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dfkai/xtquantai.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/qmt-inner-backtest &&
cp -R "$tmp/skills/qmt-inner-backtest" ~/.cursor/skills/qmt-inner-backtest &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/qmt-inner-backtest` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/dfkai/xtquantai.git --path skills/qmt-inner-backtest
```

Or copy the folder to `~/.gemini/skills/qmt-inner-backtest` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/qmt-inner-backtest`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dfkai/xtquantai.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/qmt-inner-backtest &&
cp -R "$tmp/skills/qmt-inner-backtest" ~/.copilot/skills/qmt-inner-backtest &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/qmt-inner-backtest` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/dfkai/xtquantai.git
```

Then copy `xtquantai/skills/qmt-inner-backtest` into your agent's skills folder as `qmt-inner-backtest`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Qmt inner backtest in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/qmt-inner-backtest to use it in all your projects, or to .claude/skills/qmt-inner-backtest in one project. Or install the qmt-skills plugin, which includes it: /plugin marketplace add dfkai/xtquantai, then /plugin install qmt-skills@xtquantai.

### Does Qmt inner backtest run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Qmt inner backtest?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

---
Source: https://ai-powered.com/skills/qmt-inner-backtest
