Multi-Factor Stock Selection (HK Stocks): Using westock-mcp for Factor-Based Selection Within the HSI ∩ Stock Connect Pool

Introduction

When building a Hong Kong stock quantitative or investment research assistant, defining the target universe, data sources, and MCP integration often requires assembling a separate setup: index components, the Stock Connect (Hong Kong) buyable list, and whether market data and factor fields align all affect whether the Agent can produce reproducible stock selection results. If you wish to perform multi-factor screening on a fixed stock pool using only westock-mcp as the data source, you can mount the community Skill “Multi-factor Stock Selection (HK Stock)” from SkillHub into the current Agent. The Skill encapsulates the scope and data source conventions, reducing the need to restate constraints in every conversation.

Below, we introduce the positioning of this Skill, verified capabilities, installation methods, and usage notes.

What is this

“Multi-factor Stock Selection (HK Stock)” is a professional Skill released by the SkillHub community, located at @user_ecbd3b70/hk-stock-factor. The current version is 1.0.0, published by user_ecbd3b70, and the source is marked as community.

The official description states: perform multi-factor stock selection within the intersection of the Hang Seng Index and Stock Connect (Hong Kong), totaling 88 stocks, with westock-mcp as the sole data source. The Skill tag requires_api_key=false indicates that no extra API Key configuration items are required at the SkillHub metadata level; however, westock-mcp must still be correctly configured and callable within the Agent during actual operation.

  • SkillHub Page: https://www.skillhub.cn/skills/user_ecbd3b70/hk-stock-factor
  • Skill Resource Address: https://api.skillhub.cn/user_ecbd3b70/hk-stock-factor

Core Capabilities

Based on the SkillHub page and scraped metadata, the confirmed capability boundaries are as follows.

  1. Fixed Stock Pool: The intersection of Hang Seng Index components and Stock Connect (Hong Kong) targets, totaling 88 stocks, preventing the Agent from arbitrarily expanding the pool across the entire Hong Kong market.
  2. Multi-factor Stock Selection: A multi-factor screening process targeting the pool mentioned above. Specific factor definitions and calculation steps are based on SKILL.md inside the Skill package after installation (the public summary does not list the factors in detail).
  3. Single Data Source: Emphasizes pure westock-mcp, avoiding the mixing of other market or fundamental data MCPs, which facilitates maintaining a single dependency for compliance and troubleshooting.
  4. Distribution and Rating: Categorized as professional; SkillHub displays a rating of 100000, with 750 downloads and an installation count of 0 (based on page statistics).

Public materials do not list difference capabilities under different clients individually; interface names, factor names, or backtesting parameters that have not been verified are not fabricated here.

Installation and Activation

The SkillHub Skill page states: Please install @user_ecbd3b70/hk-stock-factor according to SkillHub Installation and Priority Source Configuration.

1. Install SkillHub CLI (if not yet installed)

First, check if skillhub already exists on your local machine:

command -v skillhub && skillhub --version

If not installed, the official documentation provides two methods: full installation and CLI-only installation. For example, full installation:

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

2. Install this Skill to the current Agent’s skills directory

The official requirement is to use --dir to point to the skills directory recognizable by the current Agent during installation; otherwise, installing by default to ./skills/ may not be loaded. Paths vary by product. Examples listed in the documentation are as follows (choose one based on your environment):

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

Installation command format (replace <skills directory> with the actual path):

skillhub install user_ecbd3b70/hk-stock-factor --dir <skills directory>

You can also search to verify the package name first:

skillhub search hk-stock-factor

After installation, restart or refresh the Agent’s skill loading (depending on the client documentation), and ensure that westock-mcp is configured and available in the same environment. The public page does not provide specific installation differences for Cursor / Codex CLI / Claude Code; distribution channels that could not be verified are not documented.

Typical Usage

The public SkillHub summary does not provide step-by-step dialogue examples or code snippets. The reproducible general path is:

  1. Complete the installation in the previous section to load @user_ecbd3b70/hk-stock-factor into the Agent.
  2. In a session where westock-mcp is enabled, use natural language to propose a Hong Kong stock multi-factor selection request, explicitly constraining it to the Hang Seng Index ∩ Stock Connect 88 pool (consistent with the Skill description).
  3. Instruct the Agent to pull westock-mcp data and output selection results following the process in SKILL.md within the Skill package; factor combinations, sorting, and display formats are subject to the Skill body.

If westock-mcp is not connected or returns an exception, you should first fix the MCP link before relying on this Skill to avoid continuing stock selection on incorrect data.

Suitable Scenarios and Notes

Who is this suitable for

  • Developers or quantitative investment research users who need to pin the Hong Kong stock selection scope to the intersection of Hang Seng Index and Stock Connect.
  • Teams that wish for the Agent side to consistently use westock-mcp, reducing the need to patch together multiple data sources.
  • Users already using SkillHub to manage Skills and wishing to use ready-made encapsulations with community sources and professional classifications.

Limitations and Notes

  • The stock pool size is fixed at 88 stocks as described in the materials. Expanding to the full market or a custom universe requires separate work, which is not covered by the public description of this Skill.
  • requires_api_key=false only indicates that the SkillHub metadata does not declare a required Key; the environment and permissions of westock-mcp itself still need to be satisfied by the user.
  • Version 1.0.0 is the current published version; factor details and changelogs are subject to the documentation in SkillHub and the Skill package.
  • As a community source (community) Skill, it is recommended to verify the stock selection logic and data timeliness yourself before production; do not equate SkillHub ratings or download counts with strategy effectiveness.

Conclusion

“Multi-factor Stock Selection (HK Stock)” incorporates 88 Hang Seng Index ∩ Stock Connect targets, multi-factor stock selection, and westock-mcp as a single data source into the Skill contract, making it suitable as a SkillHub plugin for Hong Kong factor screening scenarios. For installation and directory configuration, see skillhub.md; for the Skill homepage, see https://www.skillhub.cn/skills/user_ecbd3b70/hk-stock-factor.

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

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

Xiaoye