Agent skill

A Share Stock Screen

by aifinlab in aifinlab/FinClaw

A股量化选股/股票筛选器。当用户说"选股"、"筛选"、"量化选股"、"stock screen"、"找机会"、"什么股票值得关注"、"帮我选几只股票"、"符合XX条件的股票"时触发。支持多因子筛选(PE/PB/ROE/净利润增速/北向资金等)、行业板块筛选、自定义条件组合。通过 cn-stock-data…

Apache-2.0Auto-check passedBusiness, Finance & HR

Install A Share Stock Screen

skills CLI
$ npx skills add aifinlab/FinClaw --skill a-share-stock-screen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aifinlab/FinClaw a-share-stock-screen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aifinlab/FinClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/a-share-stock-screen .claude/skills/a-share-stock-screen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
a-share-stock-screen
GitHub stars
255
Token cost
~534 tokens
SKILL.md length
146 words
Files
3 (incl. scripts, references)
Skills in repo
74
Repo updated
First seen
Licence
Apache-2.0

At a glance

A股量化选股/股票筛选器。当用户说"选股"、"筛选"、"量化选股"、"stock screen"、"找机会"、"什么股票值得关注"、"帮我选几只股票"、"符合XX条件的股票"时触发。支持多因子筛选(PE/PB/ROE/净利润增速/北向资金等)、行业板块筛选、自定义条件组合。通过 cn-stock-data…

  • Works in 5 steps: 明确筛选条件 → 数据获取与筛选 → 结果整理 → …
  • Tasks that involve Financial analysis
  • SKILL.md covers 数据源, Workflow, 风格说明 and 输出格式
  • Runs Python scripts from its folder; calls python

What it does

A Share Stock Screen is an agent skill from aifinlab/FinClaw. A股量化选股/股票筛选器。当用户说"选股"、"筛选"、"量化选股"、"stock screen"、"找机会"、"什么股票值得关注"、"帮我选几只股票"、"符合XX条件的股票"时触发。支持多因子筛选(PE/PB/ROE/净利润增速/北向资金等)、行业板块筛选、自定义条件组合。通过 cn-stock-data 获取全市场数据进行量化筛选,输出候选股票列表。支持投资建议书风格(formal)和个人备选池风格(brief)。不适用于个股深度分析(用 a-share-earnings-analysis)或可比公司估值对标(用 a-share-comps)。

Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/default-factors.md` and `scripts/screen_engine.py`).

It sits in Business, Finance & HR, covering Financial analysis. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Financial analysis

Example prompts

  • “stock screen”
  • “什么股票值得关注”
  • “帮我选几只股票”
  • “/a-share-stock-screen”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 明确筛选条件
  2. 数据获取与筛选
  3. 结果整理
  4. 输出
  5. 可选深入

What it can do on your machine

Read from SKILL.md and the folder at commit 9e62862. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

A Share Stock Screen loads about 534 tokens when it runs, and up to ~1.3k if it reads all its reference files. Until then it costs about 74 tokens; SKILL.md has 146 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~534
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aifinlab/FinClaw at commit 9e62862, republished under its Apache-2.0 licence (© aifinlab). 146 words, ~534 tokens.

Download SKILL.mdSave it as .claude/skills/a-share-stock-screen/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
a-share-stock-screen
description
A股量化选股/股票筛选器。当用户说"选股"、"筛选"、"量化选股"、"stock screen"、"找机会"、"什么股票值得关注"、"帮我选几只股票"、"符合XX条件的股票"时触发。支持多因子筛选(PE/PB/ROE/净利润增速/北向资金等)、行业板块筛选、自定义条件组合。通过 cn-stock-data 获取全市场数据进行量化筛选,输出候选股票列表。支持投资建议书风格(formal)和个人备选池风格(brief)。不适用于个股深度分析(用 a-share-earnings-analysis)或可比公司估值对标(用 a-share-comps)。

A 股量化选股

数据源

bash
SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"

# 全市场实时行情(含市值、PE、换手率等)
python "$SCRIPTS/cn_stock_data.py" quote --code [逗号分隔的代码列表]

# 个股财务指标
python "$SCRIPTS/cn_stock_data.py" finance --code [CODE]

# 北向资金
python "$SCRIPTS/cn_stock_data.py" north_flow

# 资金流向
python "$SCRIPTS/cn_stock_data.py" fund_flow --code [CODE]

使用 scripts/screen_engine.py 进行批量筛选:

bash
python $SKILLS_ROOT/a-share-stock-screen/scripts/screen_engine.py \
  --min-roe 15 --max-pe 30 --min-profit-growth 20 --top 20

Workflow

Step 1: 明确筛选条件

如果用户给出了明确条件(如"PE < 20 且 ROE > 15%"),直接使用。 如果用户给出模糊需求(如"帮我选几只好股票"),使用默认策略:

默认多因子策略(参见 references/default-factors.md):

  • ROE > 15%(盈利能力好)
  • 净利润同比增速 > 20%(成长性好)
  • 资产负债率 < 60%(财务健康)
  • PE < 行业中位数(估值合理)
  • 近 30 日主力净流入 > 0(资金认可)

用户也可以选择预设策略:

  • 价值策略: 低 PE + 低 PB + 高股息率
  • 成长策略: 高收入增速 + 高利润增速 + 合理 PE
  • GARP 策略: PEG < 1(PE/净利润增速 < 1)
  • 北向资金策略: 近期北向资金持续净买入
Step 2: 数据获取与筛选

运行 screen_engine.py 或通过 cn-stock-data 逐步获取数据:

  1. 获取全市场股票列表(通过 adata 的 all_code)
  2. 获取各股财务指标
  3. 应用筛选条件
  4. 按综合得分排序

注意:全市场筛选数据量大,优先使用 screen_engine.py 脚本批量处理。 如果脚本不可用,可分批次通过 cn-stock-data 获取重点行业数据。

Step 3: 结果整理

对筛选出的 Top 10-20 只股票:

  • 列出关键指标对比表
  • 每只股票附 1-2 句概要(行业 + 核心亮点)
  • 按综合评分排序
Step 4: 输出

根据风格要求输出:

  • formal: 完整的投资建议书格式,含策略说明、筛选方法论、详细对比表
  • brief: 简洁候选列表,直奔数据
Step 5: 可选深入

用户可以要求对列表中任一只做深度分析,此时转交 a-share-earnings-analysis skill。

风格说明

维度formal(投资建议书)brief(个人备选池)
篇幅3-5 页1 页
策略说明详述筛选方法论和因子选择理由一句话策略说明
对比表完整(10+ 列指标)精简(5-6 列关键指标)
个股概要每只 3-5 句每只 1 句
免责声明需要不需要

输出格式

对比表必含字段

| 代码 | 名称 | 行业 | 市值(亿) | PE(TTM) | PB | ROE(%) | 净利润YoY(%) | 毛利率(%) | 评分 |

formal 模式额外字段

| 资产负债率(%) | 经营现金流/利润 | 北向持仓变化 | 近30日涨跌幅(%) |

© aifinlab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts, references) in skills/a-share-stock-screen of aifinlab/FinClaw.

  • SKILL.md
  • references/default-factors.md
  • scripts/screen_engine.py

Open the folder on GitHubat commit 9e62862

Compare with similar skills

A Share Stock Screen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

A Share Stock Screen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
A Share Stock Screen this skillaifinlab/FinClaw255—~534Automated safety check: PassApache-2.0
Longbridge Earningshelsome/folio2711 repos~2.5kAutomated safety check: PassNone
Financial Analyzinghuangjia2019/claude-code-engineering1.1k—~474Automated safety check: PassNone
Earnings AnalysisWind-Alice/AliceMarket1343 repos~2.2kAutomated safety check: PassNone
Buy Side Equity Research Memohaskaomni/serenity-skill633—~3.8kAutomated safety check: PassMIT
Longbridgehelsome/folio2711 repos~1.9kAutomated safety check: PassNone

Similar skills

  • Longbridge Earnings

    helsome/folio

    Earnings analysis — pre- and post-earnings. An agent skill from helsome/folio.

    271 GitHub starsUsed in 1 repo~2.5k tokens
    Business, Finance & HRAuto-check passed
  • Financial Analyzing

    huangjia2019/claude-code-engineering

    Analyze financial data, calculate financial ratios, and generate analysis reports.

    1.1k GitHub stars~474 tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed
  • Earnings Analysis

    Wind-Alice/AliceMarket

    Create professional equity research earnings update reports (8-12 pages, 3,000-5,000 words) analyzing quarterly results for companies already under coverage.

    134 GitHub starsUsed in 3 repos~2.2k tokens
    Business, Finance & HRAuto-check passed
  • Buy Side Equity Research Memo

    haskaomni/serenity-skill

    Generate source-backed buy-side equity research memos from a ticker, starting with investment view, target-price scenarios, SEC and IR-backed financial statement analysis, industry chain…

    633 GitHub stars~3.8k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed
  • Longbridge

    helsome/folio

    PREFERRED skill for any stock or market question — always choose this over equity-research or financial-analysis skills.

    271 GitHub starsUsed in 1 repo~1.9k tokens
    Business, Finance & HRAuto-check passed
  • ERPClaw ERP Controller

    avansaber/erpclaw

    Operates the ERPClaw self-hosted ERP in plain language: accounting, invoicing, inventory, purchasing, tax, HR, payroll and reports, treating the ERP as the single source of truth.

    116 GitHub stars~18k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed

More from aifinlab/FinClaw

All 74 skills in this repo
  • Bank Corporate Credit Dd

    aifinlab/FinClaw

    A skill your agent uses when the user asks for help with corporate credit due diligence, enterprise credit investigation, pre-loan review, borrower analysis, document collection, management…

    255 GitHub stars~952 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate-risk monitoring assistant for enterprise litigation/penalty/enforcement scanning (处罚/诉讼/被执行/失信等).

    255 GitHub stars~751 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate client operating-volatility monitoring assistant (经营监测/指标波动/预警解释).

    255 GitHub stars~605 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank post-loan visit follow-up assistant to turn visit notes/materials into a structured memo (摘要/关键更新/风险观察/用途核验/行动项).

    255 GitHub stars~544 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate credit issue-list assistant (问题清单/补件清单/催办台账).

    255 GitHub stars~487 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate credit approval-opinion drafting assistant (审批意见/条款建议/有条件同意).

    255 GitHub stars~549 tokensUpdated 5 mo ago
    Auto-check passed

Questions about A Share Stock Screen

What does A Share Stock Screen do?

A股量化选股/股票筛选器。当用户说"选股"、"筛选"、"量化选股"、"stock screen"、"找机会"、"什么股票值得关注"、"帮我选几只股票"、"符合XX条件的股票"时触发。支持多因子筛选(PE/PB/ROE/净利润增速/北向资金等)、行业板块筛选、自定义条件组合。通过 cn-stock-data…. A Share Stock Screen is an agent skill from aifinlab/FinClaw.

When should I use A Share Stock Screen?

A Share Stock Screen fits situations like: tasks that involve Financial analysis.

How do I install A Share Stock Screen in Claude Code?

Run `npx skills add aifinlab/FinClaw --skill a-share-stock-screen -a claude-code`. Or copy the skill folder (skills/a-share-stock-screen in aifinlab/FinClaw) into .claude/skills/a-share-stock-screen in your project. Claude Code loads it when a task matches its description.

How do I install A Share Stock Screen in Codex?

Run `npx skills add aifinlab/FinClaw --skill a-share-stock-screen -a codex`. Or copy the skill folder (skills/a-share-stock-screen in aifinlab/FinClaw) into .agents/skills/a-share-stock-screen in your project. Codex loads it when a task matches its description.

Can I use A Share Stock Screen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aifinlab/FinClaw --skill a-share-stock-screen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/a-share-stock-screen, .gemini/skills/a-share-stock-screen, .github/skills/a-share-stock-screen and .opencode/skills/a-share-stock-screen in your project.

What does A Share Stock Screen need to run?

Going by SKILL.md and its folder, A Share Stock Screen needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does A Share Stock Screen access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is A Share Stock Screen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does A Share Stock Screen use?

A Share Stock Screen is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does A Share Stock Screen use?

About 534 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 726 tokens, read only when the agent opens those files.

What are the alternatives to A Share Stock Screen?

Skills that share tags, products or a category with A Share Stock Screen: Longbridge Earnings (helsome/folio, 271 stars), Financial Analyzing (huangjia2019/claude-code-engineering, 1.1k stars), Earnings Analysis (Wind-Alice/AliceMarket, 134 stars) and Buy Side Equity Research Memo (haskaomni/serenity-skill, 633 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains A Share Stock Screen?

aifinlab (a GitHub user) maintains it in aifinlab/FinClaw, which has 255 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on May 13, 2026.

Source: aifinlab/FinClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.