Stock Screener logo

Stock Screener

Community
Weaxs
stock-screener

全市场股票筛选:按市场、估值、成长、趋势或自定义条件生成候选列表并排序。已知个股的深度分析用 stock-analysis。

Overview

PublisherWeaxs
Repositorystock-analysis-plugin
Skill namestock-screener
Stars
40
Forks
11
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Weaxs on GitHub. Read the source before you install it.

Installation

Install the Stock Screener AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Weaxs/stock-analysis-plugin/tree/main/skills/stock-screener
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Weaxs/stock-analysis-plugin.git /tmp/stock-analysis-plugin
mkdir -p .claude/skills
cp -r /tmp/stock-analysis-plugin/skills/stock-screener .claude/skills/stock-screener
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Stock Screener in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Stock Screener on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Stock Screener is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

全市场股票筛选

批量研究、子任务分工或报告文件交付时,必须读取宿主研究与报告交付,使用当前宿主实际提供的能力。

显式筛选条件缺少数据时工具返回 error,不能把该条件当作已通过。filters_applied 只包含实际执行的条件,基于返回的覆盖情况说明候选范围。

执行流程

第一步:确定筛选条件

优先从用户请求提取:

  • 市场:A股 / 港股 / 美股(默认A股)
  • 筛选偏好:价值型、成长型、趋势型、还是自定义条件
  • 返回数量:默认 Top 20

未指定的项直接使用默认值并在结果中说明;只有自定义条件彼此冲突时才请用户补充。

第二步:运行筛选

运行数据采集脚本进行 L1 量化筛选:

bash
python3 tools/screener.py screen --market A --top 20

可选参数:--market(A/HK/US)、--top(返回数量)、--config(自定义 YAML 配置路径)、--l2(L2 量化增强开关,默认关闭)。

何时开启 --l2:需要对候选股做量化因子精排时开启。开启后逐股补算质量/成长/真实动量/波动率/资金流五类因子,结果更精细,但逐股抓取数据较慢,日常快速筛选保持关闭即可。开启 --l2 后候选按 scores.final 重新排序,config 里的 sort_by/sort_order 不生效;且 l2 模式下 scores.momentum 仍是 L1 参考值,不参与 final 综合分(final 用的是真实动量组)。

market_sentiment 输出字段:无论是否开 --l2,输出始终带 market_sentiment(市场情绪温度 0-100、level、multiplier 0.8-1.2 的 regime 调节器)。multiplier < 1 表示市场情绪偏弱,排序和推荐应更保守(收紧入选数量、降低激进度);multiplier > 1 表示情绪偏暖,可适度放宽。

第三步:L2 智能排序

对 L1 筛选出的候选股,基于返回的各项数据进行 LLM 智能排序。

注意区分两层"增强":--l2 是工具内的量化因子增强(在 L1 结果上补算因子,发生在排序之前);本步的 LLM 排序是 skill 流程的最后一环,在量化结果之上综合形态/量价/安全边际做最终排序。两者可叠加使用:先 --l2 拿精细因子,再做 LLM 排序。

排序考虑因素:

  1. 技术形态质量:趋势明确 > 震荡 > 趋势不明
  2. 量价配合度:放量上涨 > 缩量上涨 > 放量下跌
  3. 指标共振:多个指标同时看多/看空 > 指标分歧
  4. 安全边际:接近支撑 > 中间位置 > 接近压力

第四步:输出推荐列表

## 选股结果 — [市场] Top [N]

### 筛选条件
- 市场:...
- 过滤条件:...
- 全市场 → L1 筛选 → L2 排序

| 排名 | 代码 | 名称 | 价格 | 涨跌幅 | PE | PB | 综合评分 | 推荐理由 |
|------|------|------|------|--------|----|----|----------|----------|
| 1    | ...  | ...  | ...  | ...    | .. | .. | ...      | ...      |

### 重点关注
对排名前3的股票给出简要分析

### 风险提示
- 筛选基于历史数据,不代表未来表现
- 建议结合个股深度分析后再做决策

每个候选必须读取 factor_coverage.available/missing/ratio/effective_weights。ratio 是已覆盖因子的原始权重之和;L1 与 L2 的 effective_weights 均按可用因子重归一化,缺失或非有限值不按零分计,排序前先按实际可用因子计算综合分,effective_scores 保留实际参与计算的各组分数;用 sum(effective_scores[g] × effective_weights[g]) × market_sentiment.multiplier 核对 scores.final(四舍五入至一位)。scores.momentum 仍保留 L1 参考值,L2 贡献以 effective_scores.momentum 为准。相同分数但缺失因子不同的候选不能视为同等证据,报告缺失项和覆盖度,不以 enriched=true 代替覆盖判断。scores.final=null 表示没有足够因子计算,不能作为高分候选推荐。

估值比较还需读取 pe_basis:dynamic、trailing 与 unknown 不得当成同一 PE 口径。筛选中的有限非正 PE/PB 价值子分为 0,不能因数值更低而获得最高价值分;缺失或非有限因子仍保持未知,不按零分处理。

L2 的 vol20 只使用恰好 20 个有效日收益,factor_coverage.vol20_samples 记录实际样本数,非正/非有限收盘价先剔除,空输入为 0;短样本为缺测。质量因子按 report_date 分组归一,年度累计与单季累计不得直接排名;资金流 5/10/20 日窗口不足时返回 null,不按 0 或完整窗口处理。

完成标准:列出实际生效的市场、过滤条件、排序口径和候选数量,且推荐理由只使用返回数据,并说明因子覆盖。

策略模板

如果用户没有明确条件,提供预设策略:

  • 价值型:低PE + 低PB + 高ROE + 稳定分红
  • 成长型:中等PE + 高营收增长 + 高换手率
  • 趋势型:放量突破 + 均线多头 + 高量比
  • 低估反转:超跌 + 低PB + 资金净流入

股息因子(A股,可选)

配置 filters.dividend_yield_min / dividend_yield_max 或 sort_by: dividend_score / dividend_yield 时才拉取股息数据。dividend_report_date 可指定报告期,默认上一年年末。这里使用已实施方案的报告期股息率(百分数),不是滚动十二个月股息率;缺失为未知,使用股息阈值时排除。启用后 value 分项加入股息横截面评分,未启用时不增加股息请求。

yaml
filters:
  dividend_yield_min: 3
sort_by: dividend_score
sort_order: desc
dividend_report_date: "2025-12-31"

筛选结果仍需用 get_dividends(mode="history", symbol=...) 核查已实施现金分红、连续支付年数与除息时间,不能把高股息直接解释为低风险。

补充数据覆盖

股息筛选支持 A/HK:A 股为报告期已实施方案股息率,HK 为 HKEX/LSEG 年度股息率。两者都不是当前价 TTM;使用结果的 yield_basis 和 report_date,缺失不当零。

选股的 top 必须为正整数;超时预算按候选数量与采集批次计算。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Stock Screener AI skill do?

全市场股票筛选:按市场、估值、成长、趋势或自定义条件生成候选列表并排序。已知个股的深度分析用 stock-analysis。

Why use Stock Screener on TypingMind?

Because you install it once and use it with any model. Stock Screener is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Stock Screener in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Weaxs/stock-analysis-plugin/tree/main/skills/stock-screener. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Stock Screener?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Stock Screener?

As many as you like. As long as a model supports skills, you can use Stock Screener with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Stock Screener AI skill free?

Yes. It is published on GitHub by Weaxs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇