Shrimp Skin Stock Picker: Filtering and Sorting A-Shares by Technical Patterns in the Agent

Introduction

When performing bottom-up stock selection for A-shares, common practices include opening market software to browse sectors one by one or manually calculating RPS, VCP, and new highs in spreadsheets. When patterns are numerous and dimensions are complex, Agents often can only provide generic advice without a verifiable stock list. Below is an introduction to the SkillHub community Skill “Xiapi Screener” (Coordinate @user_506878eb/xiapi-screener, current version 1.0.5): It integrates the pattern screening API of Daxiapi (daxiapi.com) and daxiapi-cli into a fixed workflow, allowing direct retrieval of stock pools during conversations and organizing outputs by dimensions such as price change, momentum, and strength.

What is this

Xiapi Screener is an Agent Skill designed for A-share technical pattern screening. Data is obtained via the Daxiapi API and maintained by the community publisher user_506878eb. It is categorized as data-analysis on SkillHub, and the page is marked with requires_api_key=true (requires configuration of a Daxiapi API Token; pattern screening capabilities are documented as requiring VIP in the official documentation).

In short: Users describe “what pattern they want and how to sort it” in natural language. The Agent follows the Skill documentation to call the CLI for data retrieval, then performs sector statistics, strength sorting, and generates structured reports, rather than conducting individual stock financial analysis or valuation modeling.

Core Features

The following capabilities are derived from the Skill’s bundled SKILL.md and reference documentation, which can be verified against the installation package.

Pattern Screening

Fetches a list of stocks matching a specified pattern code via npx daxiapi-cli@latest stock pattern <pattern>. Covered types include:

  • Value: e.g., gxl (Dividend Yield > 3%)
  • Strength: e.g., rps, sctr (> 70), rpsTop3, strongerThanMarket
  • Trend: e.g., trendUp, newHigh, high_60d, crossMa50, crossEma20
  • Volume: e.g., fangliang, fangliangtupo
  • Price Change Ranking: e.g., zdf1dTop3~zdf20dTop3, shizhiTop3
  • Classic Patterns: e.g., vcp, sos, spring, w, lps and lps2~lps4, ibs
  • Momentum: mvpStrict, mvpLoose

For a complete list of pattern codes and descriptions, see references/pattern-types.md within the Skill.

Sorting and Analysis Dimensions

The CLI returns table fields including daily and 5/10/20-day price changes, RPS, SCTR, CS, RSI, sector, and concepts. The Skill requires the Agent to perform strength sorting (e.g., RPS/SCTR/CS), sector distribution analysis, and price change persistence analysis based on user needs after data retrieval, and to avoid absolute statements.

Multi-condition Combination

When a user proposes multiple conditions at once, the Skill prescribes:

  1. Primary Screening Conditions: Patterns that can be queried directly using stock pattern <pattern> (e.g., VCP, SOS, trendUp).
  2. Secondary Screening Conditions: Local filtering on the returned results (e.g., sctr > 70, shizhi > 100, moving average position, etc.).

If there are multiple primary conditions, prioritize classic patterns, followed by trends, and then strength indicators; select only one primary condition for data retrieval, then apply secondary filters.

Triggering and Output

Trigger Keywords (from the Skill description): Stock screening, stock selection, VCP pattern, RPS strong stocks, new highs, technical patterns, pattern stock selection, bottom-up selection, highest gain, biggest drop, strongest stocks.

The output side provides a report template: Core Conclusion, Key Data, Stock List, Sector Distribution, Strength Analysis, Investment Advice, and Mandatory Disclaimer (Data sourced from Daxiapi + AI generated, does not constitute investment advice).

Installation and Activation

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, follow the official SkillHub installation instructions (full installation example):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install Xiapi Screener to the current Agent’s skills directory

When installing, you must use --dir to point to the directory actually recognized by the Agent; otherwise, it may default to ./skills/ and not be loaded. Common paths documented in SkillHub:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Example (Cursor):

skillhub install @user_506878eb/xiapi-screener --dir ~/.cursor/skills/

Alternatively, you can let the Agent install the coordinate @user_506878eb/xiapi-screener based on the SkillHub Installation Instructions.

3. Configure Daxiapi API Token

The Skill is marked as requiring an API Key. Check the Token before first use:

npx daxiapi-cli@latest config get token

If not configured, obtain an API Token from your personal dashboard at daxiapi.com (documentation notes that pattern screening requires VIP), then write it:

npx daxiapi-cli@latest config set token YOUR_TOKEN_FROM_DAXIAPI

Or set the environment variable:

export DAXIAPI_TOKEN=YOUR_TOKEN_FROM_DAXIAPI

Verification (should return normal data instead of 401):

npx daxiapi-cli@latest stock pattern vcp

The default location for the configuration file is ~/.daxiapi/config.json on Linux/macOS.

Typical Usage

Single Pattern Query

In a conversation with an Agent that has the Skill enabled, you can directly use trigger keywords or explicitly request a specific pattern. The underlying command forms are as follows.

High Dividend:

npx daxiapi-cli@latest stock pattern gxl

RPS Strong Stocks:

npx daxiapi-cli@latest stock pattern rps

VCP Pattern:

npx daxiapi-cli@latest stock pattern vcp

Multi-condition Example (Skill Documentation)

Requirement: “Find stocks with a VCP pattern AND SCTR > 70 AND Market Cap > 10 billion”

  1. Primary condition: vcp → npx daxiapi-cli@latest stock pattern vcp
  2. Filter each returned record: sctr > 70 AND shizhi > 100

The Agent summarizes this into a report with sector distribution and strength sorting according to the Skill workflow, accompanied by a disclaimer.

API and Frequency Notes

Reference documentation records: Approximately 10 requests per minute and 1000 requests per day limit; upon encountering 429, wait 30–60 seconds and retry. Stock pattern data is recommended to be queried after market close (updated daily after closing).

Applicable Scenarios and Notes

Applicable (consistent with the Skill introduction): Technical pattern stock selection, trend tracking, momentum stock selection, value stock selection (e.g., high dividend), sorting and screening by specified dimensions, multi-condition combination screening.

Not Applicable: Deep fundamental analysis of individual stocks, financial report research, valuation modeling; also not suitable for replacing technical indicator education or other instruments like bonds, funds, or futures.

Usage Notes:

  • Missing or invalid Tokens will result in 401; config set token is required again.
  • Misspelled pattern codes will return “Unsupported pattern type”.
  • Overly strict conditions may result in an empty list; loosen secondary filters or switch primary patterns.
  • Technical patterns carry a risk of failure; the Skill requires risk warnings in reports and maintains neutral phrasing.

SkillHub Page Info (as of crawl): Community source, Rating 100000, Downloads 2466, Installs 31; subject to the SkillHub Skill Page.

Conclusion

Xiapi Screener translates A-share pattern screening from “verbal description” into daxiapi-cli commands and reproducible data flows, making it suitable for bottom-up stock selection and sorting organization in Agents like Cursor. Installation coordinate: @user_506878eb/xiapi-screener. Official Entry: https://api.skillhub.cn/user_506878eb/xiapi-screener, Display Page: https://www.skillhub.cn/skills/user_506878eb/xiapi-screener.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye