ashare-quant-analyst

Quant Strategy and Backtest Dispatcher: When a user intent expresses "develop and backtest", "backtest classic strategies", "develop trading strategies", "backtest A-shares", or "plot equity curve", route to this skill first. Responsible for orchestrating data and executing backtests in a T+1-rule sandbox, and directly producing structured metrics and visual backtest charts.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ashare-quant-analyst" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4ae2b36c246bddb243966f328e0fa1774d730f584eb2dc414ceb92a4867e408b. Verify the upstream source and version against https://skillhub.cn/skills/user_c1ee5550/ashare-quant-analyst before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Quant Strategy and Backtest Dispatcher: When a user intent expresses "develop and backtest", "backtest classic strategies", "develop trading strategies", "backtest A-shares", or "plot equity curve", route to this skill first. Responsible for orchestrating data and executing backtests in a T+1-rule sandbox, and directly producing structured metrics and visual backtest charts.

0 Downloads

Introduction source: third_party · user_c1ee5550 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: ashare-quant-analyst
slug: ashare-quant-analyst
version: "1.0.0"
displayName: A-Share Quant Analyst
description: Use when user asks to "开发并回测", "回测经典策略", "开发交易策略", "回测A股" 或 "绘制收益曲线". 这是一个强制路由指令:当用户的意图是进行完整的量化回测或策略开发时,必须优先使用此技能。该技能负责调度数据、执行带T+1规则的沙盒回测,并直接生成结构化的指标和直观的回测图表。
compatibility: Requires Python 3.11+, MCP Finance Servers

A股量化交易智能体工作流

作为专业的A股量化分析师,你必须严格按照以下顺序执行,绝对不能跳过任何步骤:

步骤 1:策略代码生成与保存

  1. 解析用户策略(如双均线金叉)。
  2. 编写基于 Pandas 的策略代码,必须包含 buy_signal 和 sell_signal 列,并将生成的信号保存为 signals.csv。
  3. 强制安全:禁止使用 shift(-1),必须设定全局 Random Seed。

步骤 2:数据获取与回测引擎 (MCP + Backtest)

  1. 通过 MCP Server 获取历史行情数据,合并生成 signals.csv。
  2. 调用A股回测引擎,引擎会自动处理 T+1 和印花税,并将每日净值结果保存为CSV: python scripts/backtest_engine.py --signals signals.csv --output backtest_log.csv

步骤 3:指标计算与静态图表生成

回测完成后,你必须调用以下计算脚本。该脚本会自动分析日志,输出标准化的 JSON 指标,并在本地目录生成一张名为 performance_chart.png 的收益曲线图。 python scripts/metric_calculator.py --log backtest_log.csv

你的最终回复必须包含:

  1. 原封不动地输出脚本打印的 JSON 性能指标(包含夏普比率、最大回撤等)。
  2. 强制使用 Markdown 图片语法,将生成的图片直接展示给用户,供其直观验证策略: ![A股策略收益曲线](performance_chart.png)

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 专注于 A 股量化回测与策略开发,解决用户明确的量化交易痛点
  • 具备高频刚需属性,显著提升量化分析效率
Trigger Precision95/100

Highlights

  • 触发词精准覆盖量化场景核心需求(开发并回测、回测经典策略等)
  • 边界清晰,强制路由指令明确
Structure and Standards90/100

Highlights

  • 步骤划分清晰(策略生成、数据回测、指标计算)
  • frontmatter 完整,文档结构规范
Execution Reliability75/100

Areas to improve

  • 异常处理未覆盖 Reported severity: Minor

    未明确说明数据获取失败、脚本执行错误等异常情况的处理机制

    Recommendation: 建议补充异常处理说明,如网络异常重试、脚本错误兜底等

Highlights

  • 工具来源明确(MCP Server、Python 脚本)
  • 提及 T+1 规则和印花税处理,符合 A 股交易实际
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.