Noah

Quant-Expert

專業領域v1.0.0
作者:Noah更新於 2026-05-11quant-expert@clawhub_noah-wu66/quant-expert
金融分析#Stock#Trading

據 AlphaMoat 統計,截至 2026-09,Quant-Expert 累計下載 1,852 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 4,536 位,在「專業領域」分類(465 個)中排名第 402 位。

累計安裝
210
累計下載
1852
星標
-
全站排名
#4,536
全站前 90% · 「專業領域」前 87%
平台累計安裝累計下載星標評論
ClawHub ↗24996--
SkillHub ↗2101852-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

覆蓋股票篩選、個股診斷、市場/板塊分析、資金流、ETF 與期權資料、宏觀資料、交易日與節假日查詢及原始 Tushare 查詢。除 holiday_helper.py 外的全部內建指令碼都需要 TUSHARE_TOKEN,必需 Python 包為 tushare、pandas、requests。工具分工:tushare_helper.py 做原始資料查詢;stock_screener.py 提供 value(低 PE_TTM、低 PB、最小市值、最小 ROE、剔除 ST)、dividend、growth、momentum 四類篩選;stock_diagnosis.py 輸出結構化快照,覆蓋公司基本面、價格表現、估值、收入與財務指標趨勢、前十大股東與股東數趨勢、近期資金流、ST/質押/限售檢查,官方明確其不是自動評級模型;holiday_helper.py 查詢交易日與節假日。硬規則包括:依賴或令牌缺失時停下並報告;未經使用者明確要求不安裝包;以 Tushare 為主要數值資料來源;僅當使用者需要解讀、診斷、排名或推薦時才補充網路研究;Tushare 被封鎖時報告阻塞而不是用網路資料靜默替換數值。時間規則固定按北京時間推理:15:30 之前,日線資料通常指前一交易日。

資料釋出於 2026-10-27

可以用來做什麼

  • 執行價值、紅利、成長或動量選股篩選
  • 對指定 A 股程式碼生成結構化診斷快照
  • 查詢交易日與節假日安排

什麼時候用

  • 需要 A 股數值資料或篩選、診斷、市場日曆查詢時
  • 需要結合 Tushare 數值與事件證據做解讀時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

用 value 策略篩選 PE 低於 20、ROE 至少 15 的股票
診斷 600519.SH 並給出結構化快照
查 2026-09-30 的下一個交易日

月度資料趨勢

累計下載1852
577126219462026-03 · 累計下載 6712026-05 · 累計下載 13142026-06 · 累計下載 14072026-07 · 累計下載 15412026-08 · 累計下載 16392026-09 · 累計下載 185226-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091852—-
2026-081639+6.4%-
2026-071541+9.5%-
2026-061407+7.1%-
2026-051314—-
2026-03671—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

4.4 KB · ClawHub v1.0.0
---
name: quant-expert
description: Quantitative analysis skill for the Chinese A-share market using Tushare Pro data and a holiday helper. Use when the user asks for stock screening, stock diagnosis, market or sector analysis, money-flow checks, ETF or option data, macro data, trading-day queries, holiday checks, or raw Tushare data related to Chinese securities.
metadata: {"openclaw":{"emoji":"📈","primaryEnv":"TUSHARE_TOKEN","requires":{"anyBins":["python","python3","py"]},"os":["darwin","linux","win32"]}}
---

# Quant Expert

Use this skill for Chinese A-share quantitative work in OpenClaw.
展開全部(共 165 行)
## OpenClaw Setup

OpenClaw-friendly rule:

- Keep the Tushare token outside the repository.
- Prefer OpenClaw config injection over manual shell export.
- Do not auto-install Python packages.

Recommended OpenClaw config:

```json
{
  "skills": {
    "entries": {
      "quant-expert": {
        "apiKey": "your-tushare-token"
      }
    }
  }
}
```

Because `primaryEnv` is set to `TUSHARE_TOKEN`, OpenClaw can inject the token for this skill automatically.

Required Python packages for Tushare features:

- `tushare`
- `pandas`
- `requests`

Note:

- `holiday_helper.py` does not need `TUSHARE_TOKEN`.
- All other bundled scripts need `TUSHARE_TOKEN`.

## Hard Rules

1. If dependencies or `TUSHARE_TOKEN` are missing, stop and report the blocker clearly.
2. Do not install packages unless the user explicitly asks.
3. Use Tushare as the primary numeric data source.
4. Only add web research when the user wants interpretation, diagnosis, ranking, or recommendation.
5. If Tushare is blocked, report the blocker instead of silently replacing numeric facts with web data.

## Path Rule

When referencing bundled files in OpenClaw, use `{baseDir}`:

- `{baseDir}/scripts/tushare_helper.py`
- `{baseDir}/scripts/stock_screener.py`
- `{baseDir}/scripts/stock_diagnosis.py`
- `{baseDir}/scripts/holiday_helper.py`
- `{baseDir}/references/api_quick_reference.md`
- `{baseDir}/references/analysis_strategies.md`

## What To Use

### Raw Tushare query

Use `{baseDir}/scripts/tushare_helper.py`.

Example:

```bash
python {baseDir}/scripts/tushare_helper.py stock_basic '{"list_status":"L"}' -n 20
python {baseDir}/scripts/tushare_helper.py daily_basic '{"trade_date":"20260302"}' -f ts_code,pe_ttm,pb,total_mv
```

### Stock screening

Use `{baseDir}/scripts/stock_screener.py`.

- `value`: low `PE_TTM`, low `PB`, minimum market cap, minimum `ROE`, exclude ST
- `dividend`: minimum `dv_ttm`, then verify consecutive dividend years
- `growth`: revenue YoY, profit YoY, and `ROE`
- `momentum`: daily gain, volume ratio, turnover rate

Example:

```bash
python {baseDir}/scripts/stock_screener.py -s value --pe-max 20 --roe-min 15 --mv-min 100
python {baseDir}/scripts/stock_screener.py -s growth --rev-growth-min 20 --profit-growth-min 25
```

### Stock diagnosis

Use `{baseDir}/scripts/stock_diagnosis.py`.

Current built-in diagnosis is a structured snapshot, not an automatic rating model.

It covers:

- company basics
- price performance
- valuation snapshot
- income and financial-indicator trends
- top shareholders and holder-count trend
- recent money flow
- ST, pledge, and restricted-share checks

Example:

```bash
python {baseDir}/scripts/stock_diagnosis.py 600519.SH
```

### Trading day and holiday

Use `{baseDir}/scripts/holiday_helper.py`.

Example:

```bash
python {baseDir}/scripts/holiday_helper.py check
python {baseDir}/scripts/holiday_helper.py next 2026-09-30
```

## Beijing Time Rule

Always reason in Beijing time.

- Before 15:30 Beijing time, daily market data usually means the previous trading day.
- After 15:30 Beijing time, same-day daily data may be available.
- Do not hardcode dates when the helper utilities can derive them.

## OpenClaw Execution Pattern

### If the user wants raw data

- Stay on the Tushare data layer.
- Use one bundled script first.
- Return concise results without forcing event research.

### If the user wants judgment or interpretation

1. Pull numeric evidence with Tushare first.
2. Add event evidence from credible web sources.
3. Keep the final answer in this order:
   1. one-line conclusion
   2. key quantitative findings
   3. key event findings with source and URL
   4. resonance or divergence
   5. main risks
   6. investment disclaimer

Minimum event evidence target:

- 2 stock-level events
- 2 industry-level events
- 2 macro/global events

## References

- `{baseDir}/references/api_quick_reference.md`
- `{baseDir}/references/analysis_strategies.md`

「專業領域」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。