Xpersona
S

Stock Selecter

CLAWHUB · Unverified

统一选股技能包,整合14种策略(ROE筛选、MACD底背离、高股息、低估值、 费雪成长股、长期低位、近期放量、趋势分析、K线形态、布林带下轨、筹码集中、 现金流质量、北向资金、股东增持、分析师目标价),支持单策略、多策略组合筛选。 触发词(精准触发,覆盖明确选股意图): 按策略名:ROE选股、ROE筛选、MACD... Skill: Stock Selecter Owner: alan1121-j Summary: 统一选股技能包,整合14种策略(ROE筛选、MACD底背离、高股息、低估值、 费雪成长股、长期低位、近期放量、趋势分析、K线形态、布林带下轨、筹码集中、 现金流质量、北向资金、股东增持、分析师目标价),支持单策略、多策略组合筛选。 触发词(精准触发,覆盖明确选股意图): 按策略名:ROE选股、ROE筛选、MACD... Tags: latest:3.3.2 Version history: v3.3.2 | 2026-04-12T11:23:03.412Z | user stock-selecter v3.3.2 修复API接口可疑问题 v3.3.0 | 2026-04-12T05:56:05.012Z | user **新增3大选股策略,拓展能力至14种策略** - 新增北向资金(northbound_flow)、股东增持(sha

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s178dmqs6xr78xy5ybq2hp3pdd84m6b1:stock-selecter
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-alan1121-j-stock-selecter/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

61,608 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: stock-selecter
version: 3.3.0
description: >
  统一选股技能包,整合14种策略(ROE筛选、MACD底背离、高股息、低估值、
  费雪成长股、长期低位、近期放量、趋势分析、K线形态、布林带下轨、筹码集中、
  现金流质量、北向资金、股东增持、分析师目标价),支持单策略、多策略组合筛选。
  触发词(精准触发,覆盖明确选股意图):
  按策略名:ROE选股、ROE筛选、MACD选股、MACD筛选、MACD底背离、
  股息选股、高股息选股、估值选股、低估值、成长股筛选、费雪成长股、
  低位放量选股、长期低位选股、近期放量、趋势选股、形态选股、K线形态筛选、
  布林带选股、筹码集中选股、现金流质量、北向资金选股、股东增持选股、分析师目标价选股
  按组合意图:组合选股、筛选股票、多策略选股、综合选股、并发选股、全部策略选股
  按结果要求:按ROE排名、按评分排名、按股息率排名、取交集、取并集
  明确排除(这些场景应激活其他skill):
  - 任何包含具体股票代码/名称的个股分析请求
  - "帮我看看XX股票"、"XX公司怎么样"、"XX值不值得买"
  - "查一下行情"、"看资金流向"等纯数据查询
---

# stock-selecter 统一选股技能包 v3.3

## 概述

将14种选股策略聚合为单一入口,支持单策略独立运行、多策略组合(AND/OR/SCORE),
以及并发加速和 HTML 可视化报告。

## 可用策略

| 策略名 | 说明 | 核心条件 | 评分维度 |
|--------|------|----------|----------|
| `roe` | ROE盈利能力 | ROE≥15%, ROA≥5% | ROE/ROA/毛利/净利/负债率/ROE趋势 |
| `macd` | MACD底背离 | K线下行+MACD向上+底背离+放量 | K线斜率/MACD斜率/放量倍数/RSI |
| `dividend` | 高股息 | 股息率≥3%+连续分红3年+ROE≥8% | 股息率/ROE/连续年数/估值/派息率 |
| `valuation` | 低估值 | PE≤25+PB≤3+PEG≤1.5+ROE≥8% | PE/PB/PEG/ROE/行业折价/PB历史分位 |
| `growth` | 费雪成长股 | 营收/净利双增≥20%+毛利≥30% | 营收增速/利润增速/毛利率/ROE |
| `low_position` | 长期低位 | 价格分位≤25%+RSI≤40 | 价格分位/RSI/距低点天数 |
| `volume_surge` | 近期放量 | 放量≥2倍+RSI≤45+反弹≥3% | 放量倍数/RSI/反弹幅度/连续放量天数 |
| `trend` | 趋势分析 | 均线多头+R²≥0.5+ADX≥25 | 趋势斜率/R²/ADX/RSI/波动率/均线排列 |
| `pattern` | K线形态 | 命中1种+形态(双底/吞没/早晨之星等) | 命中形态数量 |
| `bollinger` | 布林带下轨 | 股价触及布林带下轨+RSI超卖 | 触及程度/RSI/距下轨空间 |
| `shareholder_concentration` | 筹码集中 | 股东户数连续3期减少+ROE≥8% | 累计减少幅度/持续期数/ROE |
| `cashflow_quality` | 现金流质量 | 经营现金流≥净利润3期+商誉<30% | 满足季度数/平均比率/ROE |
| `northbound_flow` | 北向资金 | 北向连续净买入5日+累计≥5亿 | 连续天数/累计净买入/ROE |
| `shareholder_buyback` | 股东增持 | 增持比例≥0.5%+ROE≥8% | 增持比例/增持期数/ROE |
| `analyst_target` | 分析师目标价 | 隐含目标价空间≥20%+连续预测2期 | 上行空间/预测期数/ROE |

## 评分体系

所有策略统一返回 0-100 分,分数越高表示股票质量越好。
多策略组合时,`score` 为各策略得分之和(AND 模式)或之和(OR/SCORE 模式)。

评分参考基准:
- ROE  满分参考值 ≥25%
- 毛利率满分参考值 ≥40-60%
- ADX  满分参考值 ≥50
- 放量倍数满分参考值 ≥3x

## 组合模式

```
AND   :多策略交集(股票必须同时通过所有策略,条件最严)
OR    :多策略并集(通过任意一个即入选)
SCORE :综合评分(全部策略打分,按总分排名,最宽松)
```

## 命令行用法

```bash
# 单策略(默认 AND)
python main.py --strategy roe --roe_threshold 15

# 多策略交集(最严)
python main.py --strategy roe,macd,dividend --mode and

# 多策略并集(宽松)
python main.py --strategy roe,macd --mode or --top 50

# 综合评分(适合 --strategy all)
python main.py --strategy all --mode score --top 50

# 并发执行(8线程,适合技术面策略)
python main.py --strategy macd,trend,volume_surge --workers 8

# 生成 HTML 可视化报告
python main.py --strategy roe,macd,dividend --report --output_dir ~/Desktop

# 调试(只分析前20只)
python main.py --strategy roe,trend --limit 20 --verbose
```

## 代码调用

```python
from main import execute

# 基础用法
result = execute({"strategy": "roe", "roe_threshold": 15})

# 多策略 AND 交集
result = execute({
    "strategy": "roe,macd,valuation",
    "mode": "and",
    "roe_threshold": 15,
    "max_pe": 20,
})

# 全策略综合评分,并发 + HTML
result = execute({
    "strategy": "all",
    "mode": "score",
    "top_n": 50,
    "workers": 8,
    "report": True,
})

# 策略专属参数(支持 namespace 前缀)
result = execute({
    "strategy": "roe

README.md

# stock-selecter 选股技能包 v3.2.0

A股智能选股系统,整合 **11 种独立策略**,支持单策略筛选、多策略组合、综合评分排序。

## 策略清单

| 策略名 | 类型 | 核心条件 |
|--------|------|---------|
| `roe` | 基本面 | ROE ≥ 15% + ROA ≥ 5% |
| `dividend` | 基本面 | 股息率 ≥ 3% + 连续分红 3 年 + ROE ≥ 8% |
| `valuation` | 基本面 | PE ≤ 25 + PB ≤ 3 + PEG ≤ 1.5 |
| `growth` | 基本面 | 营收/净利双增 ≥ 20% + 毛利率 ≥ 30% |
| `cashflow_quality` | 基本面 | 经营现金流 ≥ 净利润(持续 3 期)+ 商誉 < 30% |
| `macd` | 技术面 | MACD 底背离 + K 线下行 + RSI 超卖 |
| `trend` | 技术面 | 均线多头排列 + R² ≥ 0.5 + ADX ≥ 25 |
| `bollinger` | 技术面 | 股价触及布林带下轨 + RSI 超卖 |
| `volume_surge` | 技术面 | 放量 ≥ 2 倍 + RSI ≤ 45 + 反弹 ≥ 3% |
| `low_position` | 技术面 | 价格分位 ≤ 25% + RSI ≤ 40 |
| `pattern` | 技术面 | 命中 K 线形态(双底/头肩底/早晨之星等) |
| `shareholder_concentration` | 筹码面 | 股东户数连续 3 期减少 + ROE ≥ 8% |

## 安装

```bash
pip install -r requirements.txt
```

## 配置

在 `config.json` 中填入你的 Tushare Token:

```json
{
  "token": "YOUR_TUSHARE_TOKEN_HERE"
}
```

获取 Token:[Tushare Pro](https://tushare.pro/register) 注册后免费获取。

## 使用方式

### 命令行

```bash
# 单策略筛选
python main.py --strategy roe --top 30

# 多策略交集(最严,同时满足所有条件)
python main.py --strategy roe,macd,dividend --mode and

# 多策略并集(宽松,任一满足即可)
python main.py --strategy roe,macd --mode or --top 50

# 综合评分(全策略打分,取总分最高)
python main.py --strategy all --mode score --top 50

# 技术面并发加速
python main.py --strategy macd,trend,bollinger --workers 8

# 生成 HTML 可视化报告
python main.py --strategy roe,macd,dividend --report
```

### Python API

```python
from main import execute

# 单策略
result = execute({"strategy": "roe", "roe_threshold": 15, "top_n": 30})

# 多策略 AND 交集
result = execute({
    "strategy": "roe,macd,dividend",
    "mode": "and",
    "top_n": 50
})

# 全策略评分
result = execute({
    "strategy": "all",
    "mode": "score",
    "top_n": 50,
    "report": True
})
```

## 目录结构

```
stock-selecter/
├── main.py                  # 统一入口(CLI + execute())
├── SKILL.md                 # Skill 元数据
├── config.json             # Tushare Token 配置
├── requirements.txt        # Python 依赖
├── README.md               # 本文件
├── stock_utils.py          # 共享工具函数
├── stock_indicators.py     # 技术指标计算
├── strategies/
│   ├── base.py             # 策略基类(含并发引擎)
│   ├── roe.py             # ROE 盈利能力
│   ├── macd.py             # MACD 底背离
│   ├── dividend.py         # 高股息
│   ├── valuation.py        # 低估值
│   ├── growth.py           # 费雪成长股
│   ├── cashflow_quality.py # 现金流质量
│   ├── low_position.py     # 长期低位
│   ├── volume_surge.py     # 近期放量
│   ├── bollinger.py        # 布林带下轨
│   ├── trend.py            # 趋势分析
│   └── pattern.py          # K 线形态
└── utils/
    ├── loader.py           # 共享库加载器
    └── report.py           # HTML 报告生成器
```

## 注意事项

- 本工具仅供技术研究参考,不构成投资建议
- 数据来源为 Tushare,需自行注册获取 Token
- 策略评分基于历史数据,不代表未来表现

_meta.json

{
  "ownerId": "kn7012q6c9jjgkq7dqwzkpgbt982y51v",
  "slug": "stock-selecter",
  "version": "3.3.2",
  "publishedAt": 1775992983412
}

SKILL_EN.md

# stock-selecter · A-Share Stock Screening System v3.3

## Overview

**stock-selecter** is a unified A-share stock screening package integrating 14 investment-grade strategies across fundamentals, technical analysis, and market microstructure. It supports single-strategy screening, multi-strategy combination (AND / OR / SCORE), concurrent execution, and HTML visualization reports.

---

## Available Strategies (14 Total)

### Fundamental Strategies (6)

| Strategy | Name | Core Criteria | Score Dimensions |
|----------|------|---------------|-----------------|
| `roe` | ROE Profitability | ROE ≥ 15%, ROA ≥ 5% | ROE/ROA/gross margin/net margin/debt ratio/ROE trend |
| `dividend` | High Dividend | Div yield ≥ 3%, 3+ consecutive years, ROE ≥ 8% | Div yield/ROE/consecutive years/valuation/payout ratio |
| `valuation` | Low Valuation | PE ≤ 25, PB ≤ 3, PEG ≤ 1.5, ROE ≥ 8% | PE/PB/PEG/ROE/industry discount/PB historical percentile |
| `growth` | Fisher Growth Stock | Rev + profit growth ≥ 20% each, gross margin ≥ 30% | Revenue growth/profit growth/gross margin/ROE |
| `cashflow_quality` | Cash Flow Quality | Operating CF ≥ Net profit for 3+ quarters, goodwill < 30% | Quarters matched/CF ratio/ROE |
| `analyst_target` | Analyst Target Price | Implied target upside ≥ 20% + 2+ consecutive forecasts | Upside/forecast periods/ROE |

### Technical Strategies (5)

| Strategy | Name | Core Criteria | Score Dimensions |
|----------|------|---------------|-----------------|
| `macd` | MACD Bottom Divergence | Price downtrend + MACD uptrend + divergence confirmed + volume surge ≥ 1.5x | K-line slope/MACD slope/volume surge ratio/RSI |
| `trend` | Trend Analysis | MA bullish alignment (MA5 > MA20 > MA60), R² ≥ 0.5, ADX ≥ 25 | Trend slope/R²/ADX/RSI/volatility/MA alignment |
| `pattern` | Candlestick Patterns | At least 1 pattern matched | Double bottom / head & shoulders / flag breakout / golden cross / morning star / bullish engulfing / cup & handle |
| `bollinger` | Bollinger Band Lower Band | Price touches lower band + RSI oversold | Touch depth/RSI/distance to lower band |
| `volume_surge` | Recent Volume Surge | Volume surge ≥ 2x + RSI ≤ 45 + rebound ≥ 3% | Volume surge ratio/RSI/rebound magnitude/consecutive surge days |

### Microstructure Strategy (3)

| Strategy | Name | Core Criteria | Score Dimensions |
|----------|------|---------------|-----------------|
| `shareholder_concentration` | Shareholder Concentration | Shareholder count declining for 3+ consecutive quarters + ROE ≥ 8% | Cumulative decline magnitude/duration/ROE |
| `northbound_flow` | Northbound Flow | Northbound continuous net buy 5+ days + total ≥ 500M CNY | Consecutive days/total net amount/ROE |
| `shareholder_buyback` | Shareholder Buyback | Buyback ratio ≥ 0.5% + ROE ≥ 8% | Buyback ratio/periods/ROE |

### Special

| Strategy | Name | Core Criteria | Score Dimensions |
|----------|------|---------------|-----------------|
| `low_position` | Long-term Low Position | Price percentile ≤ 

skill-card.md

## Description:

Stock Selecter screens A-share stocks with configurable fundamental, technical, market-flow, and analyst-target strategies, supporting single-strategy and combined AND, OR, and SCORE ranking modes.

This skill is ready for commercial/non-commercial use.

## Publisher:

[alan1121-j](https://clawhub.ai/user/alan1121-j)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to screen A-share equities with configurable strategy thresholds, combine strategy results, and review ranked outputs. Outputs should be treated as research support rather than investment advice.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The security evidence flags insecure handling of a user API token and an HTTP API endpoint.

Mitigation: Review and fix the API endpoint before use, avoid sending tokens over HTTP, and rotate any Tushare token previously used with this release.

Risk: The security evidence flags misleading financial-strategy logic.

Mitigation: Treat generated rankings and reports as research inputs only, and independently review strategy logic before acting on results.

Risk: The skill can save JSON, CSV, and HTML outputs to a configured directory.

Mitigation: Control the output directory and review saved files before sharing or using them in downstream workflows.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/alan1121-j/skills/stock-selecter)
- [Tushare Pro registration](https://tushare.pro/register)
- [Tushare Pro documentation](https://tushare.pro/document/2)

## Skill Output:

**Output Type(s):** [text, JSON, CSV, HTML report, guidance]

**Output Format:** [JSON result object with optional CSV export and optional HTML report files]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May save timestamped screening outputs to a configured output directory.]

## Skill Version(s):

3.3.2 (source: ClawHub release evidence; artifact frontmatter and config report 3.3.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Stock Selecter and adjacent AI workflows.