Guide · Agent skill
How to use the Stock Connect Fund Flow Analysis agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
hk-connect-flow is an agent skill that teaches an AI agent how to analyze daily money flows through the Shanghai-Hong Kong and Shenzhen-Hong Kong Stock Connect programs. It covers Northbound flow (foreign money into A-shares), Southbound flow (mainland money into Hong Kong stocks), sector allocation patterns and the Hang Seng AH Premium Index. After reading this guide you will know how to install the skill, ask for a cross-border flow read in plain language, and judge how much weight to give the output.
Quick start
- 1Download the ZIP. Download the hk-connect-flow skill ZIP from this page.
- 2Unzip into a skills folder. Unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder.
- 3Or upload in the Claude apps. Upload the ZIP under Settings → Capabilities → Skills if you use the Claude apps.
- 4Confirm the file is present. Check that SKILL.md sits inside the skill folder.
- 5Confirm a data source. Make sure your agent can reach Stock Connect flow data through its data tools.
- 6Ask a flow question. Request a classification, trend or AH premium read in plain language.
- 7Verify the output. Check key figures against an independent source before using them.
What is an agent skill and what does this one do?
An agent skill is a folder containing a SKILL.md file that gives an AI agent specific instructions, rules and sometimes scripts for one kind of task. When the skill is loaded, the agent follows its concepts and frameworks when you ask a related question.
This skill, named hk-connect-flow, focuses on Stock Connect fund flows. It defines the four Stock Connect channels (Shanghai and Shenzhen, Northbound and Southbound), explains why each direction is read as a sentiment signal, and provides simple rules for classifying single-day and multi-day flows. It also includes a composite scoring scheme that combines flow, breadth, AH premium and CNY direction.
- Northbound: foreign capital into A-shares, read as foreign institutional appetite for China A-shares.
- Southbound: mainland capital into Hong Kong stocks, read as mainland preference for HK-listed assets.
- Sector allocation tracking: which sectors Northbound investors are adding to or reducing.
- AH premium index: the average premium of A-shares over their H-share counterparts for dual-listed companies.
- Cross-border composite signal: a score from -10 to +10 summarising positioning.
Install the hk-connect-flow skill
Option 1, personal skills folder: download the skill ZIP from this page and unzip it into ~/.claude/skills/. The folder should contain SKILL.md.
Option 2, project skills folder: unzip the ZIP into the .claude/skills/ folder of a specific project so the skill applies only to that project.
Option 3, Claude apps: download the ZIP and upload it in the Claude apps under Settings → Capabilities → Skills.
- Download the ZIP from this page.
- Unzip it into ~/.claude/skills/ (personal) or a project's .claude/skills/ (project-only).
- Or upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
- Check that the skill folder contains SKILL.md.
Trigger the skill with natural requests
You do not need a special command. Describe what you want in ordinary language that mentions Stock Connect, Northbound, Southbound, AH premium or cross-border flows, and the agent can apply the skill. The skill's description is what the agent matches against your request.
Be specific about the window and the direction. A question about the last 20 days of Northbound flow gives the agent what the skill's trend rules need.
- "Classify today's Northbound flow and tell me whether foreign money is buying or selling A-shares."
- "Is Northbound accumulation sustained over the last 20 days, or is it pausing?"
- "What does Southbound flow suggest about mainland interest in Hong Kong tech platforms?"
- "Where does the Hang Seng AH Premium Index sit, and what does that imply for dual-listed stocks?"
- "Give me a cross-border composite score and explain each component."
What data and tools does it need?
The skill's data section references Eastmoney datacenter and HKEX official statistics for Stock Connect flow data. It also shows examples using the Tushare API for daily Northbound and Southbound aggregates and top-10 Northbound stocks, and yfinance for the Hong Kong perspective. The file does not show how your agent's data tools are configured, so you need to confirm that the agent can reach a flow data source before relying on its output.
Some parts of the skill, such as the AH premium logic, may need the Hang Seng AH Premium Index data. Plan for this when you set up the skill.
- Access to Stock Connect flow data through the agent's data tools (the file names get_southbound_flow(lookback_days=20) as the Southbound call).
- Optional: Tushare credentials if you use the Tushare examples.
- Optional: a Hang Seng AH Premium Index data source.
get_southbound_flow(lookback_days=20)Safety notes: scripts and network access
This skill runs scripts and uses the network. Its code examples fetch or compute flow data, so review the SKILL.md and any scripts before installing, and only install skills from sources you trust. Do not treat the output as a trade instruction.
The skill's own warning is important: do not read daily Southbound flow from the Tushare field moneyflow_hsgt, because its ggt_ss, ggt_sz and south_money fields carry cumulative holdings rather than daily flow in the current file.
- Review SKILL.md and any scripts before use.
- Expect network calls to third-party data sources.
- Verify figures independently before acting on them.
- Avoid moneyflow_hsgt for daily Southbound flow, per the skill's warning.
Tips for better results
The thresholds in the skill are illustrative. For example, the file treats a daily Northbound net buy above 10bn RMB as strong buying, and the composite score ranges are rules of thumb, not validated backtests. Ask the agent to show its inputs so you can check them.
Compare the single-day reading with the 20-day trend. The skill itself says cumulative flow is more important than one day's figure.
- Ask for both the single-day classification and the cumulative trend.
- Ask the agent to name the data source and date of every number.
- Ask for the component scores when you want the composite result explained.
- Treat sector allocation percentages in the file as typical ranges, not current holdings.
What people use it for
- Daily classification of Northbound net buying or selling as strong, moderate, mild or neutral.
- Checking whether 20-day Northbound accumulation is sustained or pausing.
- Reviewing whether Southbound flow points to mainland interest in Hong Kong tech platforms or high-dividend names.
- Reading the AH premium level for dual-listed companies.
- Building a simple cross-border dashboard or report, as a quant or data developer would.
Frequently asked questions
How do I install the hk-connect-flow agent skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder for one project. You can also upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
Is the hk-connect-flow skill free?
The skill is listed under the MIT licence. Check the licence file in the source repository for the exact terms before reuse. Any data sources you connect may have their own terms.
What do I need to run the hk-connect-flow skill?
You need an agent that can load skills and access Stock Connect flow data through its data tools. The file references Eastmoney datacenter and HKEX statistics, and optionally Tushare and the Hang Seng AH Premium Index, but does not show how those tools are set up.
Does the skill give reliable trading signals?
No. The thresholds, such as more than 10bn RMB for strong buying, and the composite scores are illustrative rules, not validated backtested strategies. Use the output as one input and verify it independently.
Why does the skill warn against moneyflow_hsgt for Southbound flow?
The skill states that the ggt_ss, ggt_sz and south_money fields in moneyflow_hsgt now carry cumulative net-bought stock, not daily flow. Use get_southbound_flow for daily Southbound figures instead, as the file shows.
How does hk-connect-flow compare with other flow tools?
The source file does not compare it with other tools, so I cannot make a claim here. It is focused on interpreting Stock Connect flows, with rules and examples, and it depends on your agent's data access.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits investors, analysts, quant developers and students who want a structured, rule-based way to read Northbound and Southbound flows and the AH premium. It is a poor fit for anyone who needs validated trading strategies, precise real-time data, or a guaranteed forecast, since its thresholds are illustrative and its data sources are third-party.
Download the skill