Preface¶
In ETF-related assistants or investment research conversations, it is common to hand-write screening SQL, integrate scattered market-data APIs, or copy leaderboards from a web UI and paste them back into the conversation. With thousands of products and many dimensions across the whole market, combining conditions easily leads to missing fields and non-reproducible results. Below we introduce an enterprise-grade Skill on SkillHub, “Guosen Securities–ETF Filter,” which encapsulates professional leaderboards and custom multi-dimensional filtering into an Agent-callable capability. It is maintained by Guosen Securities Co., Ltd. and targets ETF investment decisions and pre-allocation product narrowing.
What is this¶
“Guosen Securities–ETF Filter” is an Agent Skill that conforms to the general SKILL.md specification. Its coordinate is @guosen-securities/guosen-etf-filter, the current version is 1.0.0, it is categorized as professional on SkillHub, and its source is tagged as enterprise. Its positioning in official materials is: providing intelligent screening and multi-dimensional analysis services for ETF products across the entire market.
On the data side, it relies on Guosen Securities’ Xiaoxin Smart Assistant service. The Skill tag indicates requires_api_key=true, so you must apply for and configure an API Key before use. The SkillHub page lists the publisher as Guosen Securities Co., Ltd.; according to SkillHub-collected statistics, the rating is 100000 and downloads are 1909.
- Official API endpoint: https://api.skillhub.cn/guosen-securities/guosen-etf-filter
- SkillHub showcase page: https://www.skillhub.cn/skills/guosen-securities/guosen-etf-filter
Core capabilities¶
Based on the SKILL.md inside the skill package, there are two capability categories, both retrieving data via scripts/get_data.py. The agent parses the output and presents a table to users (without exposing intermediate file paths).
Professional leaderboards¶
Fetch preset leaderboards by classId / listId, for example:
| classId | Leaderboard category | listId | Leaderboard name |
|---|---|---|---|
| 1 | Short-term hot list | 11 | Hot sectors |
| 1 | Short-term hot list | 13 | T+0 short-term breakouts |
| 2 | Mid- to long-term picks | 21 | High dividend, low volatility |
| 2 | Mid- to long-term picks | 22 | Up-and-down capable |
| 2 | Mid- to long-term picks | 23 | Undervalued and high quality |
| 2 | Mid- to long-term picks | 24 | Undervalued and high elasticity |
| 2 | Mid- to long-term picks | 25 | Steady performers |
| 3 | Special varieties | 31 | Market-wide popular |
| 3 | Special varieties | 32 | Balanced asset allocation |
Custom multi-dimensional filtering¶
Supports 7 dimensions and 24 metrics, covering basic information (primary/secondary type, fund size, years since inception, fee rates, etc.), trading attributes (T+0, margin trading and short selling, etc.), return performance, risk and volatility, market indicators, fundamentals, and trend popularity. Parameter names and value formats are fully documented in SKILL.md, for example fund size endamt is in “hundred million” units, and ranges are joined by commas or semicolons.
Additional notes (key points from the official description):
- Screening results return up to the first 100 ETFs that meet the conditions.
- The skill is for screening and analysis and does not provide investment advice; a specified risk disclaimer must be included each time after use.
- The runtime requires Python 3.13 or above; dependencies include
httpx,pandas,openpyxl,uuid-backport, etc., as declared in the skill metadata.
Installation and activation¶
Install SkillHub CLI (if not installed yet)¶
First check whether the CLI is present on your machine:
command -v skillhub && skillhub --version
If it is not installed, follow the SkillHub installation documentation for a full install (the example below is the recommended command from the official docs):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install this Skill¶
The official page suggests asking your AI to follow https://skillhub.cn/install/skillhub.md to install @guosen-securities/guosen-etf-filter. The installation method shown by the CLI search is:
skillhub install guosen-etf-filter --namespace guosen-securities --dir <skills directory>
During installation, you must use --dir to point to the skills directory actually recognized by the current Agent; otherwise, defaulting to ./skills/ may prevent loading. Common paths (from the SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Example under Cursor:
skillhub install guosen-etf-filter --namespace guosen-securities --dir ~/.cursor/skills/
After installation, the skill directory contains files such as SKILL.md and scripts/get_data.py; when invoking the script, use scripts/get_data.py under the local installation path (the /workspace/projects/gs-etf-filter/ in the skill docs is an example workspace path and should be replaced with your actual directory).
Configure the API Key¶
- Open https://www.guosen.com.cn/gs/xxskills/key-index.html?softName=tx_skills to register or sign in.
- After signing in at the top heading bar on the page, copy the API Key in the account popup.
- Store it as a reusable credential for the Agent as required by
SKILL.md(the docs suggest writing it into./memory.md), and set the environment variable before each script invocation:
export COZE_GUOSEN_API_KEY_7627056463827140634="<Your API Key>"
The script reads the key only via the environment variable name COZE_GUOSEN_API_KEY_7627056463827140634; this name cannot be changed. When rotating the Key, update the persisted configuration accordingly.
Typical usage¶
Assuming the Agent has loaded this Skill and configured the API Key, you can either describe requests in natural language (“a certain leaderboard,” “a certain type of ETF with size/fee conditions”) or call the script directly (replace the path with your installation directory, denoted as $SKILL_ROOT).
Professional leaderboards¶
Query the “High dividend, low volatility” leaderboard (class-id 2, list-id 21):
python "$SKILL_ROOT/scripts/get_data.py" --list-id 21 --class-id 2
Short-term hot list “T+0 short-term breakouts,” sorted by nowrange:
python "$SKILL_ROOT/scripts/get_data.py" --list-id 13 --class-id 1 --order-col nowrange
Custom conditions¶
Broad-based ETFs with fund size above 1 billion and combined custody plus management fees no higher than 0.5% (class1 broad-based is 2):
python "$SKILL_ROOT/scripts/get_data.py" --class1 2 --endamt "10,100000" --tgfandglf "0,0.5"
Sector ETFs ranked in the top 25% by performance over the past 1 year:
python "$SKILL_ROOT/scripts/get_data.py" --class1 1 --profitrank "profit1yrank:25"
Sorted by the 1-year Sharpe ratio rank:
python "$SKILL_ROOT/scripts/get_data.py" --class1 1 --order-col sharpe1yrank --order-type 1
The script generates intermediate files such as xlsx and txt in its output/ directory; the agent should read these results and present fields such as name, code, price, price change, fund size, and years since inception to users, and state the number of ETFs and the filtering conditions. Do not treat the intermediate file paths as the final deliverable. At the end of the output, include the officially required risk note verbatim: Selection results display the top 100 ETFs that meet the conditions.
Use cases and notes¶
Who it is for
- Developers or investment research users working in environments like Cursor, Claude Code, or Codex who need to narrow ETF product pools, compare leaderboards, or perform condition-based backtest-style screening.
- Teams that want the Agent to uniformly access Guosen Securities’ data service instead of integrating APIs for each dimension separately.
Limitations and cautions
- A valid API Key is required, and Python 3.13+ plus the dependencies declared by the skill must be installed.
- The results are screening and analysis data, not investment advice; in compliance-sensitive scenarios, add your own disclaimers and access controls.
- At most 100 results per call; both Chinese and English inputs are supported according to the official documentation.
- Availability and quotas for enterprise-sourced Skills depend on the current policies of Guosen Securities and SkillHub; before deployment, it is recommended to trial-install and validate a data retrieval in the target environment.
Closing¶
“Guosen Securities–ETF Filter” consolidates market-wide ETF professional leaderboards and 7-dimension custom filtering into a single Skill and a unified script interface, suitable for embedding into investment research Agent workflows. For installation and priority-source instructions, see https://skillhub.cn/install/skillhub.md ; for skill details and installation tips, see https://www.skillhub.cn/skills/guosen-securities/guosen-etf-filter ; the package coordinate entry point is https://api.skillhub.cn/guosen-securities/guosen-etf-filter .