Agent skill

Alphasift

by ZhuLinsen in ZhuLinsen/alphasift

自动选股 Skill。Use when: 用户要按策略筛选 A 股、列出可用策略、运行双低/放量突破/均衡多因子/资金热度等选股,或保存运行并做 T+N 后验评估。通过 alphasift CLI 或 Python 接口输出候选股票列表。

Apache-2.0Auto-check: notesBusiness, Finance & HR

Install Alphasift

skills CLI
$ npx skills add ZhuLinsen/alphasift --skill alphasift -a claude-code

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

GitHub CLI
$ gh skill install ZhuLinsen/alphasift alphasift --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/ZhuLinsen/alphasift.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/alphasift .claude/skills/alphasift && 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
alphasift
GitHub stars
369
Token cost
~1.1k tokens
SKILL.md length
203 words
Files
2
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

自动选股 Skill。Use when: 用户要按策略筛选 A 股、列出可用策略、运行双低/放量突破/均衡多因子/资金热度等选股,或保存运行并做 T+N 后验评估。通过 alphasift CLI 或 Python 接口输出候选股票列表。

  • Works in 3 steps: 查看可用策略 → 执行选股 → 通过 Python 调用
  • : 用户要按策略筛选 A 股、列出可用策略、运行双低/放量突破/均衡多因子/资金热度等选股,或保存运行并做 T+N 后验评估。通过 alphasift CLI 或 Python 接口输出候选股票列表
  • SKILL.md covers Use When, Preconditions, Operations and Output, plus 1 more section
  • Calls pip; needs LLM_API_KEY and DEEPSEEK_API_KEY

What it does

Alphasift is an agent skill from ZhuLinsen/alphasift. 自动选股 Skill。Use when: 用户要按策略筛选 A 股、列出可用策略、运行双低/放量突破/均衡多因子/资金热度等选股,或保存运行并做 T+N 后验评估。通过 alphasift CLI 或 Python 接口输出候选股票列表。

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Business, Finance & HR. It works with Python. The repository describes itself as: AI-native stock screening engine with full-market discovery, LLM ranking, risk-aware scoring, and auditable evaluation. AI选股. The licence is Apache-2.0.

When your agent uses it

  • : 用户要按策略筛选 A 股、列出可用策略、运行双低/放量突破/均衡多因子/资金热度等选股,或保存运行并做 T+N 后验评估。通过 alphasift CLI 或 Python 接口输出候选股票列表

Example prompts

  • “/alphasift”

Requirements

  • Python 3
  • A credential in LLM_API_KEY
  • A credential in DEEPSEEK_API_KEY

Workflow steps

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

  1. 查看可用策略
  2. 执行选股
  3. 通过 Python 调用

What it can do on your machine

Read from SKILL.md and the folder at commit 7639195. 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

    Shell commands in SKILL.md call:

    • pip

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

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

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

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • LLM_API_KEY
    • DEEPSEEK_API_KEY

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

Context cost

Alphasift loads about 1.1k tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 203 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:51
    env-file /home/ubuntu/daily_ai_assistant/.env screen balanced_alpha

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from ZhuLinsen/alphasift at commit 7639195, republished under its Apache-2.0 licence (© ZhuLinsen). 203 words, ~1,083 tokens.

Download SKILL.mdSave it as .claude/skills/alphasift/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
alphasift
description
自动选股 Skill。Use when: 用户要按策略筛选 A 股、列出可用策略、运行双低/放量突破/均衡多因子/资金热度等选股,或保存运行并做 T+N 后验评估。通过 alphasift CLI 或 Python 接口输出候选股票列表。

alphasift — 自动选股 Skill

按策略筛选、评分并排序 A 股候选股票。

定位:全市场候选发现与横向排序引擎。它站在 daily_stock_analysis 这类单股深度分析服务上游;DSA 只是可选 L3 后置分析器,不是主筛选依赖。

Use When

  • 用户要列出当前可用策略
  • 用户要按 dual_low、volume_breakout、balanced_alpha、capital_heat 这类策略筛选 A 股
  • 用户要拿到结构化 JSON 结果,供后续 agent 继续分析
  • 用户要保存选股运行,并在之后用最新快照评估结果

Preconditions

alphasift 包已安装在当前 Python 环境中。如未安装,先执行:

bash
pip install -e .

如需 LLM 排序,可设置 LITELLM_MODEL、LLM_CHANNELS、LITELLM_CONFIG 或旧变量 LLM_API_KEY/LLM_MODEL/LLM_BASE_URL。也可直接复用 daily_stock_analysis 的 LiteLLM 配置字段,包括 OPENAI_*、GEMINI_*、DEEPSEEK_API_KEY、OLLAMA_API_BASE。策略 YAML 可通过 scoring_profile、risk_profile、portfolio_profile、scorecard_profile、event_profile 覆盖默认规则、事件偏好和候选上下文来源权重。LLM 会输出候选行业/主题标签;如候选提供 industry/concepts/board_heat_score/board_heat_trend_score,会作为 LLM、主题热度因子与组合分散层锚点;history sidecar 可回填持续性、降温和状态字段。默认组合分散层会用这些标签映射风险桶,降低同一拥挤交易重复占位。

L3 默认启用本地 scorecard 后置评分器,也可追加 dsa 或 external_http。如需 DSA 后置分析,设置 DSA_API_URL;DSA 只作为后置增强,不参与全市场初筛。

依赖日 K 的策略会在 L1 后自动对 Top N 候选做日 K 增强。

如需 L3 深度分析,需要设置 DSA_API_URL。这里的 DSA 指外部项目 daily_stock_analysis,默认调用 POST /api/v1/analysis/analyze。

Operations

1. 查看可用策略
bash
alphasift strategies
2. 执行选股
bash
alphasift screen dual_low --no-llm
alphasift screen balanced_alpha --no-llm
alphasift screen capital_heat
alphasift screen volume_breakout --max-output 10
alphasift screen balanced_alpha --context "今日券商板块放量,低估值金融获得资金回流"
alphasift --env-file /home/ubuntu/daily_ai_assistant/.env screen balanced_alpha
alphasift screen balanced_alpha --explain
alphasift screen balanced_alpha --candidate-context-file candidate_context.csv
alphasift screen dual_low --no-post-analysis
alphasift screen shrink_pullback --no-llm
alphasift screen dual_low --post-analyzer dsa
alphasift audit
alphasift industry-cache --output data/industry_map.csv --explain
alphasift screen dual_low --no-llm --save-run
alphasift runs
alphasift evaluate <run_id> --explain
alphasift evaluate-batch --limit 20 --explain
alphasift evaluate <run_id> --with-price-path --explain
3. 通过 Python 调用
python
from alphasift import evaluate_saved_run, evaluate_saved_runs, screen, list_strategies

list_strategies()
screen("dual_low", market="cn", use_llm=False)
evaluate_saved_run("<run_id>")
evaluate_saved_runs(limit=20)

Output

返回 ScreenResult JSON,核心字段有:

  • strategy: 策略名
  • market: 市场
  • strategy_version: 策略版本
  • snapshot_count: 全市场股票数
  • after_filter_count: 硬筛后剩余数量
  • picks: 推荐列表
  • llm_ranked: 是否经过 LLM 排序
  • llm_market_view: LLM 对候选池和市场环境的整体判断
  • llm_selection_logic: LLM 本次排序采用的核心判断维度
  • llm_portfolio_risk: LLM 识别的最终名单共同风险
  • llm_coverage: LLM 输出覆盖候选池比例
  • post_analyzers: 已启用的 L3 后置分析器
  • daily_enriched: 是否做过日 K 候选增强
  • risk_enabled: 是否启用独立风险层
  • portfolio_concentration_notes: 组合分散覆盖层的扣分说明
  • degradation: 降级信息
  • snapshot_source: 实际使用的数据源
  • source_errors: 降级前失败的数据源错误

每个 Pick 会包含 factor_scores、industry/concepts/board_heat_score/board_heat_trend_score/board_heat_persistence_score/board_heat_cooling_score/board_heat_state/board_heat_summary、LLM 输出的 thesis/理由/风险/催化/行业/主题/标签/风格匹配/跟踪项/失效条件、风险层字段、组合分散扣分字段,以及可选的后置分析字段。DSA 字段只在启用 dsa 分析器时填充。

每个 Pick 还可能包含:

  • deep_analysis_status
  • deep_analysis_summary
  • deep_analysis_result
  • deep_analysis_signal_score
  • deep_analysis_sentiment_score
  • deep_analysis_operation_advice
  • deep_analysis_trend_prediction
  • deep_analysis_risk_flags

Boundaries

  • 当前只支持 market="cn"
  • 当前没有独立的远程 get_result 服务;本地用 --save-run、runs、evaluate、evaluate-batch 管理运行记录
  • audit 用于自检策略 profile 覆盖、已知能力短板和下一步优先级
  • --candidate-context-file 支持 CSV/JSON/JSONL,通过 code 对齐候选级新闻、公告、资金流或研究摘要,只注入当前候选池相关行;可选抓取会附带 source_count、source_confidence、source_weight_score、context_summary 和公告类别
  • 候选级上下文会识别粗粒度事件标签和负面风险标签,供 LLM 横向排序参考
  • industry-cache 会缓存行业/概念映射和板块热度字段,并写入 history sidecar;后续加载映射时可回填板块热度滚动趋势、持续性、降温和状态字段,供 LLM 上下文与 theme_heat 因子使用
  • 组合分散层优先使用 LLM 返回的行业/主题标签,也可回退到候选 industry 字段;两者都缺失时不会改变规则分数
  • L3 后置分析器只在最终候选上运行,不参与全市场初筛;本地 scorecard 默认启用,DSA 只是其中一个可追加后端
  • T+N 评估基于保存价和评估时最新快照价,不等同完整复权回测;可扣减交易成本并输出突破/回踩形态后验标签;--with-price-path 会额外估算最大回撤和最大浮盈

© ZhuLinsen, 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 1 other file in .github/skills/alphasift of ZhuLinsen/alphasift.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 7639195

Compare with similar skills

Alphasift 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.

Alphasift compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Alphasift this skillZhuLinsen/alphasift369—~1.1kAutomated safety check: NotesApache-2.0
Itr Walakaranb192/itr-wala871—~3.6kAutomated safety check: PassMIT
Tushare Datazillionare/zillionare3212 repos~2.3kAutomated safety check: PassNone
Global Stock Datasimonlin1212/global-stock-data1.7k—~19kAutomated safety check: PassApache-2.0
Korean Government Grant Searchdjfksjd/ir-search392—~3.5kAutomated safety check: NotesMIT
Kalshi Traderyanfrigo/kalshi-ai-trading-bot614—~3.4kAutomated safety check: PassMIT

Similar skills

  • Itr Wala

    karanb192/itr-wala

    File Indian income tax returns (ITR) for FY 2025-26 / AY 2026-27.

    871 GitHub stars~3.6k tokensUpdated 5 days ago
    Business, Finance & HRAuto-check passed
  • Tushare Data

    zillionare/zillionare

    面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

    321 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Global Stock Data

    simonlin1212/global-stock-data

    美股港股全栈数据工具包(官方源优先)— 十三层架构·30+端点·11数据源·全部零鉴权。在原有行情/K线/技术指标(MA/MACD/RSI/KDJ/布林带)/基本面/资金面/期权/SEC Filing/工具八层之上,新增:CBOE官方期权链(完整希腊字母+IV+0DTE流+异动识别)、FINRA全市场每日空头成交量、SEC…

    1.7k GitHub stars~19k tokensUpdated 2 days ago
    Business, Finance & HRAuto-check passed
  • Surveys open Korean government startup and R&D support programs and sorts them by fit with your project, checking eligibility against the original notices.

    392 GitHub stars~3.5k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check: notes
  • Kalshi Trade

    ryanfrigo/kalshi-ai-trading-bot

    The disciplined process for autonomously and profitably trading the live Kalshi account on each /loop tick, with Claude as the decision-maker.

    614 GitHub stars~3.4k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Stock Analysis Team

    wudengyao/stock-analysis-team

    提供股票多维度分析团队协同研究能力;当用户需要股票分析、投资决策支持、风险评估、市场复盘或回测验证时使用. An agent skill from wudengyao/stock-analysis-team.

    167 GitHub stars~1.1k tokensUpdated 16 days ago
    Business, Finance & HRAuto-check passed

More from ZhuLinsen/alphasift

  • Alphasift

    ZhuLinsen/alphasift

    自动选股 Skill。Use when: 用户要按策略筛选 A 股、列出可用策略、运行双低/放量突破等选股,或保存运行并做 T+N 后验评估。通过 alphasift CLI 或 Python 接口输出候选股票列表。

    369 GitHub stars~1.3k tokensUpdated 4 days ago
    Auto-check: notes

Works with

Questions about Alphasift

What does Alphasift do?

自动选股 Skill。Use when: 用户要按策略筛选 A 股、列出可用策略、运行双低/放量突破/均衡多因子/资金热度等选股,或保存运行并做 T+N 后验评估。通过 alphasift CLI 或 Python 接口输出候选股票列表。. Alphasift is an agent skill from ZhuLinsen/alphasift.

When should I use Alphasift?

Alphasift fits situations like: : 用户要按策略筛选 A 股、列出可用策略、运行双低/放量突破/均衡多因子/资金热度等选股,或保存运行并做 T+N 后验评估。通过 alphasift CLI 或 Python 接口输出候选股票列表.

How do I install Alphasift in Claude Code?

Run `npx skills add ZhuLinsen/alphasift --skill alphasift -a claude-code`. Or copy the skill folder (.github/skills/alphasift in ZhuLinsen/alphasift) into .claude/skills/alphasift in your project. Claude Code loads it when a task matches its description.

How do I install Alphasift in Codex?

Run `npx skills add ZhuLinsen/alphasift --skill alphasift -a codex`. Or copy the skill folder (.github/skills/alphasift in ZhuLinsen/alphasift) into .agents/skills/alphasift in your project. Codex loads it when a task matches its description.

Can I use Alphasift 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 ZhuLinsen/alphasift --skill alphasift -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/alphasift, .gemini/skills/alphasift, .github/skills/alphasift and .opencode/skills/alphasift in your project.

What does Alphasift need to run?

Going by SKILL.md and its folder, Alphasift needs the command-line tools its instructions call (pip) and credentials named LLM_API_KEY and DEEPSEEK_API_KEY. Our summary lists: Python 3; A credential in LLM_API_KEY; A credential in DEEPSEEK_API_KEY.

Does Alphasift access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Alphasift safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Alphasift use?

Alphasift 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 Alphasift use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Alphasift?

Skills that share tags, products or a category with Alphasift: Itr Wala (karanb192/itr-wala, 871 stars), Tushare Data (zillionare/zillionare, 321 stars), Global Stock Data (simonlin1212/global-stock-data, 1.7k stars) and Korean Government Grant Search (djfksjd/ir-search, 392 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Alphasift?

ZhuLinsen (a GitHub user) maintains it in ZhuLinsen/alphasift, which has 369 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 5, 2026.

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