AI Agent Hub
Back to skills
AI Zhangle Conditional Stock Selection icon

AI Zhangle Conditional Stock Selection

Professional Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_d9eea1c5/zhangle-select-stock.

About this skill

Problem

When writing conditional stock-screening logic, users often mix natural-language requests like “baijiu sector, P/E below 20, MACD bottom divergence, gain above 5%, earnings surprise.” Hitting the backend directly can miss OR/AND relationships, relative dates, implied sorting, numeric units, exclusions, and “continuous vs cumulative” semantics. This skill turns a natural-language screening intent into one executable query and returns a stable Markdown candidate list.

How It Works

  • Triggering: sector/theme, financial metrics, technical metrics, market data, earnings surprises, combined conditions, and subjective requests such as “recommend a few stocks.”
  • First query: pass the user’s original sentence as query to selectStock, without pre-rewriting, to preserve intent.
  • Rewrite retry: if the first call returns no result, disambiguate. Multiple values in the same dimension are usually “or”; cross-dimension conditions such as sector, P/E, and gain are usually “and.” Add relative dates, units, sort fields, top-N limits, and exclusion rules.
  • Output constraints: return data.result in Markdown without changing its format, and show at most 10 instruments.
  • Error handling: distinguish network transient issues from business restrictions by error.category.

Boundaries

Use it for “screening a list of instruments that meet criteria,” not individual stock diagnosis, valuation analysis, portfolio diagnosis, or buy/sell advice. It depends on HT_APIKEY, with optional SELECT_STOCK_SERVICE_URL and SELECT_STOCK_TIMEOUT_SEC. It is designed to execute directly without repeatedly asking follow-up questions, so ambiguous requests are inferred and completed rather than manually confirmed item by item.

Use Cases

  • Before the morning meeting, screen semiconductors with gain over 3% and turnover over 8% into a shortlist.
  • While studying earnings themes, pull a list using Q1 earnings surprises and net profit growth above 30%.
  • During technical review, screen candidates using MACD bottom divergence or moving-average golden cross.
  • When combining strategy conditions, encode sector, P/E, and main inflow query and generate the result.

Best For

  • Quant researchers who need to convert natural-language screening conditions into a candidate list.
  • Investment advisors who need to filter a watchlist by sector, fundamentals, and technical conditions.
  • Financial app developers who need to integrate conditional stock screening into an Agent.
  • Skill maintainers who map natural-language conditions to selectStock queries.