Agent skill

Cross Border Flow Tracker

by nicepkg in nicepkg/ai-workflow

Track and analyze cross-border capital flows between mainland China and Hong Kong via Stock Connect (沪港通/深港通).

MITAuto-check passedBusiness, Finance & HR

Install Cross Border Flow Tracker

skills CLI
$ npx skills add nicepkg/ai-workflow --skill cross-border-flow-tracker -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nicepkg/ai-workflow cross-border-flow-tracker --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nicepkg/ai-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/workflows/stock-trader-workflow/.claude/skills/cross-border-flow-tracker .claude/skills/cross-border-flow-tracker && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cross-border-flow-tracker
GitHub stars
285
Token cost
~1.1k tokens
SKILL.md length
259 words
Files
1
Skills in repo
75
Repo updated
First seen
Licence
MIT

At a glance

Track and analyze cross-border capital flows between mainland China and Hong Kong via Stock Connect (沪港通/深港通).

  • Works in 5 steps: Daily Flow Summary → Northbound Stock Holdings Analysis → Southbound Stock Analysis → …
  • User asks about 北向资金
  • SKILL.md covers Overview, Stock Connect Overview, Data Sources and Analysis Framework, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cross Border Flow Tracker is an agent skill from nicepkg/ai-workflow. Track and analyze cross-border capital flows between mainland China and Hong Kong via Stock Connect (沪港通/深港通). Monitor northbound (北向资金) and southbound (南向资金) flows, identify trending stocks, and analyze institutional positioning. Use when user asks about 北向资金, 南向资金, 外资动向, Stock Connect flows, or cross-border investment trends.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Business, Finance & HR, covering Stock and market analysis and Positioning and messaging. The repository describes itself as: 🚀 170+ pre-built skills for Claude Code, Cursor, Codex & 14+ AI tools. Stop re-teaching your AI the same things. One command → instant domain expertise. Marketing, SEO, Trading… The licence is MIT.

When your agent uses it

  • User asks about 北向资金
  • Stock Connect flows
  • Cross-border investment trends

Example prompts

  • “/cross-border-flow-tracker”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Daily Flow Summary
  2. Northbound Stock Holdings Analysis
  3. Southbound Stock Analysis
  4. Flow Trend Analysis
  5. Sector Flow Analysis

What it can do on your machine

Read from SKILL.md and the folder at commit d167b41. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cross Border Flow Tracker loads about 1.1k tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 259 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nicepkg/ai-workflow at commit d167b41, republished under its MIT licence (© nicepkg). 259 words, ~1,116 tokens.

Download SKILL.mdSave it as .claude/skills/cross-border-flow-tracker/SKILL.md (or your agent's skills folder).
name
cross-border-flow-tracker
description
Track and analyze cross-border capital flows between mainland China and Hong Kong via Stock Connect (沪港通/深港通). Monitor northbound (北向资金) and southbound (南向资金) flows, identify trending stocks, and analyze institutional positioning. Use when user asks about 北向资金, 南向资金, 外资动向, Stock Connect flows, or cross-border investment trends.

跨境资金流向追踪 (Cross-Border Flow Tracker)

Overview

Monitor and analyze capital flows between mainland China and Hong Kong through Stock Connect programs. Track northbound capital (北向资金 - foreign money into A-shares) and southbound capital (南向资金 - mainland money into HK stocks) to identify investment trends and institutional positioning.

Stock Connect Overview

Northbound (北向) - Into A-Shares
  • 沪股通 (Shanghai Connect): Access Shanghai stocks
  • 深股通 (Shenzhen Connect): Access Shenzhen stocks
  • Daily quota: 520 billion RMB each way
  • Eligible stocks: Major index constituents, large/mid caps
Southbound (南向) - Into HK Stocks
  • 港股通(沪) via Shanghai: Access HK stocks
  • 港股通(深) via Shenzhen: Access HK stocks
  • Daily quota: 420 billion RMB each way
  • Eligible stocks: HSI/HSCEI constituents, large caps

Data Sources

Real-time & Daily Data:

  • 东方财富 - 北向资金 (eastmoney.com)
  • 同花顺 - 资金流向 (10jqka.com.cn)
  • 港交所 (HKEX) - 互联互通数据
  • Wind资讯 (wind.com.cn)

Search Strategy:

  • "北向资金今日流入" - Daily northbound flow
  • "北向资金持股 [股票名称]" - Individual stock holdings
  • "南向资金净买入" - Southbound net purchases
  • "沪深港通 资金流向" - Overall Stock Connect flows

Analysis Framework

1. Daily Flow Summary
markdown
## 今日跨境资金流向

### 北向资金 (Northbound)
| 指标 | 数值 |
|-----|------|
| 沪股通净流入 | ¥XX.XX亿 |
| 深股通净流入 | ¥XX.XX亿 |
| 北向合计净流入 | ¥XX.XX亿 |
| 本周累计 | ¥XX.XX亿 |
| 本月累计 | ¥XX.XX亿 |
| 年初至今 | ¥XX.XX亿 |

### 南向资金 (Southbound)
| 指标 | 数值 |
|-----|------|
| 港股通(沪)净流入 | HK$XX.XX亿 |
| 港股通(深)净流入 | HK$XX.XX亿 |
| 南向合计净流入 | HK$XX.XX亿 |
| 本周累计 | HK$XX.XX亿 |
| 本月累计 | HK$XX.XX亿 |
2. Northbound Stock Holdings Analysis

Top Holdings Changes:

markdown
### 北向资金持股变动 Top 10

#### 增持榜
| 股票 | 持股数量 | 变动数量 | 变动比例 | 持股市值 |
|-----|---------|---------|---------|---------|
| | | +XXX万股 | +X.XX% | ¥XX亿 |

#### 减持榜
| 股票 | 持股数量 | 变动数量 | 变动比例 | 持股市值 |
|-----|---------|---------|---------|---------|
| | | -XXX万股 | -X.XX% | ¥XX亿 |

Individual Stock Query:

markdown
### [股票名称] 北向资金持仓分析

| 指标 | 数值 |
|-----|------|
| 北向持股数量 | XXX万股 |
| 占流通股比例 | X.XX% |
| 持股市值 | ¥XX.XX亿 |
| 近5日变动 | +/-XXX万股 |
| 近20日变动 | +/-XXX万股 |
| 近60日变动 | +/-XXX万股 |

#### 持股趋势
[描述近期增减持趋势和可能原因]
3. Southbound Stock Analysis

Top Southbound Holdings:

markdown
### 南向资金持股 Top 20

| 排名 | 股票 | 持股数量 | 占比 | 持股市值 | 5日变动 |
|-----|-----|---------|-----|---------|--------|
| 1 | 腾讯控股 | XX亿股 | X.X% | XXXX亿 | +/-X% |
| 2 | ... | | | | |
4. Flow Trend Analysis

Weekly/Monthly Patterns:

  • Identify consistent buying/selling patterns
  • Correlate with market movements
  • Identify sector preferences

Seasonal Patterns:

  • MSCI rebalancing periods (Feb, May, Aug, Nov)
  • Index reconstitution impacts
  • Holiday effects (Chinese New Year, Golden Week)
5. Sector Flow Analysis
markdown
### 北向资金行业配置

| 行业 | 持仓市值 | 占比 | 周变动 | 月变动 |
|-----|---------|-----|-------|-------|
| 食品饮料 | ¥XXXX亿 | XX% | +X% | +X% |
| 电力设备 | ¥XXXX亿 | XX% | -X% | +X% |
| 银行 | ¥XXXX亿 | XX% | +X% | -X% |
| 医药生物 | ¥XXXX亿 | XX% | +X% | +X% |
| ... | | | | |

Signal Interpretation

Bullish Signals (看多信号)
  • 北向资金连续大幅净流入 (>50亿/日持续3天以上)
  • 核心资产获持续加仓
  • 外资持股比例创新高
  • 流入与A股上涨同步
Bearish Signals (看空信号)
  • 北向资金持续净流出
  • 重仓股被大幅减持
  • 流出伴随指数下跌
  • 外资对某行业系统性减仓
Divergence Signals (背离信号)
  • 市场下跌但北向持续流入 (可能底部)
  • 市场上涨但北向持续流出 (可能顶部)
  • 单只股票北向大买但股价不涨

Output Templates

Daily Report
markdown
# 跨境资金日报 [日期]

## 市场概览
[今日A股/港股表现简述]

## 北向资金
- 今日净流入: ¥XX.XX亿
- 市场解读: [分析流入/流出原因]

### 重点增持
1. [股票1] +XX万股,[可能原因]
2. [股票2] +XX万股,[可能原因]

### 重点减持
1. [股票1] -XX万股,[可能原因]

## 南向资金
- 今日净流入: HK$XX.XX亿
- 重点标的: [列出主要买入股票]

## 后市展望
[基于资金流向的短期市场判断]
Individual Stock Report
markdown
# [股票名称] 外资持仓分析

## 北向持仓概览
[基本持仓数据表格]

## 持仓趋势
[图表描述或趋势分析]

## 与股价关系
[北向增减持与股价走势的相关性分析]

## 机构观点
[如有,列出相关外资机构的评级]

## 投资建议
[基于外资动向的操作建议]

Example Queries

日常查询:

  • "今天北向资金流向如何"
  • "北向资金最近买了什么"
  • "南向资金净买入排行"
  • "本周外资流入最多的股票"

个股查询:

  • "贵州茅台北向资金持仓多少"
  • "宁德时代外资持股变化"
  • "腾讯南向资金持仓情况"

趋势分析:

  • "北向资金近期偏好什么行业"
  • "外资连续加仓的股票有哪些"
  • "北向资金持股比例最高的股票"

信号分析:

  • "北向资金和大盘有背离吗"
  • "哪些股票外资在悄悄建仓"
  • "MSCI调整对北向资金影响"

© nicepkg, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in workflows/stock-trader-workflow/.claude/skills/cross-border-flow-tracker of nicepkg/ai-workflow.

Open the folder on GitHubat commit d167b41

Compare with similar skills

Cross Border Flow Tracker next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cross Border Flow Tracker compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cross Border Flow Tracker this skillnicepkg/ai-workflow285—~1.1kAutomated safety check: PassMIT
Macro Regime Detectortradermonty/claude-trading-skills3k1 repos~1.2kAutomated safety check: PassMIT
Breadth Chart Analysttradermonty/claude-trading-skills3k1 repos~8.1kAutomated safety check: PassMIT
Strategy AgentAtmosphere/atmosphere3.8k—~280Automated safety check: PassApache-2.0
Basis ArbSuperior-Trade/superior-skills215—~2.8kAutomated safety check: PassMIT
Manussanjay3290/ai-skills432—~1.7kAutomated safety check: PassApache-2.0

Similar skills

  • Macro Regime Detector

    tradermonty/claude-trading-skills

    Detect structural macro regime transitions (1-2 year horizon) using cross-asset ratio analysis.

    3k GitHub starsUsed in 1 repo~1.2k tokens
    Business, Finance & HRAuto-check passed
  • Breadth Chart Analyst

    tradermonty/claude-trading-skills

    This skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the US Stock Market Uptrend Stock Ratio charts.

    3k GitHub starsUsed in 1 repo~8.1k tokens
    Business, Finance & HRAuto-check passed
  • Strategy Agent

    Atmosphere/atmosphere

    Market strategy analyst performing SWOT, competitive positioning, market-timing assessment, and go-to-market recommendations from research findings.

    3.8k GitHub stars~280 tokensUpdated yesterday
    Marketing & SEOAuto-check passed
  • Basis Arb

    Superior-Trade/superior-skills

    A skill your agent uses when the user asks for spot-perp basis trade, basis arbitrage, cash-and-carry, perp discount, or any setup that reads the spot–perp basis as a positioning signal.

    215 GitHub stars~2.8k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Manus

    sanjay3290/ai-skills

    Delegate complex, long-running tasks to Manus AI agent for autonomous execution.

    432 GitHub stars~1.7k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Senpi Why

    Senpi-ai/senpi-skills

    Answer "what makes Senpi different?" / "why Senpi?" / "Senpi vs other trading apps, bots or AI chatbots?" — the positioning answer, led by value, not a feature dump.

    134 GitHub stars~2.5k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed

More from nicepkg/ai-workflow

All 75 skills in this repo
  • Capture Triage

    nicepkg/ai-workflow

    Processes Drafts Pro captures from the Inbox folder. An agent skill from nicepkg/ai-workflow.

    285 GitHub stars~3k tokensUpdated 8 mo ago
    Auto-check passed
  • Legacy To AI Ready

    nicepkg/ai-workflow

    Transform legacy codebases into AI-ready projects with Claude Code configurations.

    285 GitHub stars~2.2k tokensUpdated 8 mo ago
    Auto-check: notes
  • Newsletter Coach

    nicepkg/ai-workflow

    Writing coach that extracts educational content from your daily experiences and turns it into publish-ready newsletter drafts.

    285 GitHub stars~3.7k tokensUpdated 8 mo ago
    Auto-check passed
  • Webfluence

    nicepkg/ai-workflow

    Content web architecture framework. An agent skill from nicepkg/ai-workflow.

    285 GitHub stars~1.4k tokensUpdated 8 mo ago
    Auto-check passed
  • Workflow Creator

    nicepkg/ai-workflow

    Create complete Claude Code workflow directories with curated skills.

    285 GitHub stars~2.6k tokensUpdated 8 mo ago
    Auto-check passed
  • Media Processing

    nicepkg/ai-workflow

    Video/audio/image processing with FFmpeg and ImageMagick. An agent skill from nicepkg/ai-workflow.

    285 GitHub stars~2.4k tokensUpdated 8 mo ago
    Auto-check: notes

Questions about Cross Border Flow Tracker

What does Cross Border Flow Tracker do?

Track and analyze cross-border capital flows between mainland China and Hong Kong via Stock Connect (沪港通/深港通). Cross Border Flow Tracker is an agent skill from nicepkg/ai-workflow. Track and analyze cross-border capital flows between mainland China and Hong Kong via Stock Connect (沪港通/深港通).

When should I use Cross Border Flow Tracker?

Cross Border Flow Tracker fits situations like: user asks about 北向资金; stock Connect flows; cross-border investment trends.

How do I install Cross Border Flow Tracker in Claude Code?

Run `npx skills add nicepkg/ai-workflow --skill cross-border-flow-tracker -a claude-code`. Or copy the skill folder (workflows/stock-trader-workflow/.claude/skills/cross-border-flow-tracker in nicepkg/ai-workflow) into .claude/skills/cross-border-flow-tracker in your project. Claude Code loads it when a task matches its description.

How do I install Cross Border Flow Tracker in Codex?

Run `npx skills add nicepkg/ai-workflow --skill cross-border-flow-tracker -a codex`. Or copy the skill folder (workflows/stock-trader-workflow/.claude/skills/cross-border-flow-tracker in nicepkg/ai-workflow) into .agents/skills/cross-border-flow-tracker in your project. Codex loads it when a task matches its description.

Can I use Cross Border Flow Tracker in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nicepkg/ai-workflow --skill cross-border-flow-tracker -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cross-border-flow-tracker, .gemini/skills/cross-border-flow-tracker, .github/skills/cross-border-flow-tracker and .opencode/skills/cross-border-flow-tracker in your project.

What does Cross Border Flow Tracker need to run?

SKILL.md names no scripts, command-line tools or credentials: Cross Border Flow Tracker is instructions for the agent only.

Does Cross Border Flow Tracker access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cross Border Flow Tracker safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cross Border Flow Tracker use?

Cross Border Flow Tracker is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cross Border Flow Tracker use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cross Border Flow Tracker?

Skills that share tags, products or a category with Cross Border Flow Tracker: Macro Regime Detector (tradermonty/claude-trading-skills, 3k stars), Breadth Chart Analyst (tradermonty/claude-trading-skills, 3k stars), Strategy Agent (Atmosphere/atmosphere, 3.8k stars) and Basis Arb (Superior-Trade/superior-skills, 215 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cross Border Flow Tracker?

nicepkg (a GitHub organization) maintains it in nicepkg/ai-workflow, which has 285 GitHub stars. The repository holds 75 skills in this directory. The repository was last updated on January 20, 2026.

Source: nicepkg/ai-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.