Agent skill

A Share Cross Market

by aifinlab in aifinlab/FinClaw

跨市场联动分析(A股/港股/美股/大宗商品)。当用户说"跨市场"、"联动"、"A股和美股"、"港股联动"、"AH溢价"、"中概股"、"美股跌了A股会跌吗"、"原油对A股影响"、"汇率影响"、"cross market"、"人民币贬值利好什么"、"跨市场联动"、"全球市场"时触发。MUST USE when user asks about cross-market correlation, AH…

Apache-2.0Auto-check passed

Install A Share Cross Market

skills CLI
$ npx skills add aifinlab/FinClaw --skill a-share-cross-market -a claude-code

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

GitHub CLI
$ gh skill install aifinlab/FinClaw a-share-cross-market --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/aifinlab/FinClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/a-share-cross-market .claude/skills/a-share-cross-market && 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
a-share-cross-market
GitHub stars
255
Token cost
~1k tokens
SKILL.md length
214 words
Files
2 (incl. references)
Skills in repo
74
Repo updated
First seen
Licence
Apache-2.0

At a glance

跨市场联动分析(A股/港股/美股/大宗商品)。当用户说"跨市场"、"联动"、"A股和美股"、"港股联动"、"AH溢价"、"中概股"、"美股跌了A股会跌吗"、"原油对A股影响"、"汇率影响"、"cross market"、"人民币贬值利好什么"、"跨市场联动"、"全球市场"时触发。MUST USE when user asks about cross-market correlation, AH…

  • Works in 7 steps: 相关不等于因果:两个市场同涨同跌不代表存在因果关系,可能受同一因素驱动 → 联动强度因阶段而异:A股受外盘影响程度在不同市场阶段差异显著(牛市中后期更独立,恐… → AH溢价有制度基础:AH溢价不会归零,因为A/H两地存在投资者结构、流动性、交易制… → …
  • User asks about cross-market correlation
  • Calls python
  • How US/HK markets affect A-shares

What it does

A Share Cross Market is an agent skill from aifinlab/FinClaw. 跨市场联动分析(A股/港股/美股/大宗商品)。当用户说"跨市场"、"联动"、"A股和美股"、"港股联动"、"AH溢价"、"中概股"、"美股跌了A股会跌吗"、"原油对A股影响"、"汇率影响"、"cross market"、"人民币贬值利好什么"、"跨市场联动"、"全球市场"时触发。MUST USE when user asks about cross-market correlation, AH premium, how US/HK markets affect A-shares, or commodity/FX impact on Chinese stocks. 分析A股与全球主要市场(美股/港股/商品/汇率)的联动关系、AH溢价、中概股映射、大宗商品传导。支持研报风格(formal)和快速参考风格(brief)。

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/cross-market-guide.md`).

The licence is Apache-2.0.

When your agent uses it

  • User asks about cross-market correlation
  • How US/HK markets affect A-shares
  • Commodity/FX impact on Chinese stocks

Example prompts

  • “美股跌了A股会跌吗”
  • “原油对A股影响”
  • “cross market”
  • “/a-share-cross-market”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. 相关不等于因果:两个市场同涨同跌不代表存在因果关系,可能受同一因素驱动
  2. 联动强度因阶段而异:A股受外盘影响程度在不同市场阶段差异显著(牛市中后期更独立,恐慌阶段高度联动)
  3. AH溢价有制度基础:AH溢价不会归零,因为A/H两地存在投资者结构、流动性、交易制度的系统性差异
  4. 汇率影响因行业而异:人民币贬值对出口型企业利好,对进口依赖型/美元债较多企业利空,不可一概而论
  5. 时差与交易时间:美股收盘→A股开盘有时差,需注意盘后/盘前信息;港股与A股交易时间有重叠
  6. 数据来源标注:跨市场数据来源多样,务必标注每项数据的来源和时间点
  7. 与其他 skill 联动:跨市场分析结论可指导 a-share-sector(受影响行业)、a-share-northbound(北向资金分析)、a-share-macro(宏观政策背景)

What it can do on your machine

Read from SKILL.md and the folder at commit 9e62862. 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

    Shell commands in SKILL.md call:

    • python

    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

A Share Cross Market loads about 1k tokens when it runs, and up to ~3k if it reads all its reference files. Until then it costs about 96 tokens; SKILL.md has 214 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~96
When it runs · the whole SKILL.md, loaded when a task matches
~1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3k

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 aifinlab/FinClaw at commit 9e62862, republished under its Apache-2.0 licence (© aifinlab). 214 words, ~1,014 tokens.

Download SKILL.mdSave it as .claude/skills/a-share-cross-market/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
a-share-cross-market
description
跨市场联动分析(A股/港股/美股/大宗商品)。当用户说"跨市场"、"联动"、"A股和美股"、"港股联动"、"AH溢价"、"中概股"、"美股跌了A股会跌吗"、"原油对A股影响"、"汇率影响"、"cross market"、"人民币贬值利好什么"、"跨市场联动"、"全球市场"时触发。MUST USE when user asks about cross-market correlation, AH premium, how US/HK markets affect A-shares, or commodity/FX impact on Chinese stocks. 分析A股与全球主要市场(美股/港股/商品/汇率)的联动关系、AH溢价、中概股映射、大宗商品传导。支持研报风格(formal)和快速参考风格(brief)。
数据源
bash
# cn-stock-data 统一层获取行情(跨市场用 snowball 路由)
python -c "
import subprocess, json

# A股主要指数(通过 cn-stock-data → efinance 路由)
# 上证指数 000001, 沪深300 000300, 创业板指 399006
# 用 cn-stock-data skill 的 quote/kline 接口

# 港股(snowball 路由,HK 前缀)
# 恒生指数 HK00001, 恒生科技 HKHSTECH, H股指数 HK00011

# 美股(snowball 路由,US 前缀)
# 标普500 US.SPX, 纳斯达克 US.IXIC, 道琼斯 US.DJI

# 需要 pysnowball token 才能获取港美股数据
import pysnowball as ball
# ball.set_token('your_token')
# ball.quotec('SH000001,HKHSI,.DJI,.IXIC,.INX')  # 跨市场报价
# ball.kline('SH000001', period='day', count=-120)  # K线数据
"

# AH 股比较数据(akshare 直接调用)
python -c "
import akshare as ak
# AH 股比价
df = ak.stock_a_ah_comparison_em()
print(df.head(20).to_string())
# 返回字段:代码/名称/A股价格/H股价格/比价(A/H)/溢价率
"

# 大宗商品(akshare)
python -c "
import akshare as ak
# 国际原油
df = ak.futures_foreign_hist(symbol='CL')  # WTI原油
# 伦敦金
df = ak.futures_foreign_hist(symbol='GC')  # COMEX黄金
# LME铜
df = ak.futures_foreign_hist(symbol='HG')  # COMEX铜
print(df.tail(5).to_string())
"

补充 web 搜索:美股收盘情况、大宗商品实时价格、美元指数、离岸人民币汇率、美联储议息会议纪要、全球央行动态。

Workflow (5 steps):

Step 1: 多市场数据获取 根据用户需求确定分析范围:

  • 全面联动:"跨市场分析" → A股指数 + 美股三大指数 + 恒指 + 商品 + 汇率
  • 双市场对比:"A股和美股联动" → 聚焦 A 股与美股
  • AH 溢价:"AH溢价分析" → 聚焦 A+H 双上市公司
  • 商品传导:"原油对A股影响" → 聚焦特定商品 → A股传导链
  • 汇率影响:"人民币贬值影响" → 聚焦汇率 → 行业影响

获取数据(近 60-120 个交易日):

市场标的数据源
A股上证/沪深300/创业板指cn-stock-data (efinance路由)
美股S&P500/纳斯达克/道琼斯cn-stock-data (snowball路由)
港股恒生指数/恒生科技/H股指数cn-stock-data (snowball路由)
商品原油/黄金/铜/铁矿石akshare futures
汇率美元指数/离岸人民币web搜索

Step 2: 相关性与领先滞后分析

相关系数计算:

  • 取日收益率序列,计算 Pearson 相关系数(近 60 日/120 日)
  • 相关系数解读:|r|>0.7 强相关, 0.4-0.7 中等, <0.4 弱相关

领先滞后关系:

  • 计算滞后 1-5 日的互相关系数
  • 判断谁领先谁:隔夜美股 → 次日 A 股开盘是最常见的领先关系
  • 注意:领先关系会随市场阶段变化,非固定规律

联动强度变化:

  • 对比近期(20日)vs 中期(60日)相关系数,判断联动是否在加强/减弱
  • 高联动阶段通常对应:全球风险事件、美联储政策转向、流动性冲击

Step 3: AH 溢价分析(如涉及)

通过 ak.stock_a_ah_comparison_em() 获取 AH 股数据:

  • 整体溢价水平:恒生 AH 溢价指数(HSAHP)历史区间 100-160,均值约 130
  • 个股溢价排序:找出溢价最高/最低的股票
  • 溢价变动趋势:近期溢价是扩大还是收窄
  • 套利信号:极端溢价个股可能存在价值回归机会(但需考虑汇率/流动性/制度差异)
溢价区间市场状态含义
<110罕见低溢价A股相对低估或港股相对高估
110-130正常区间反映制度差异溢价
130-150偏高A股情绪偏热或港股承压
>150极端高溢价A股显著高估,关注回归风险

Step 4: 传导机制分析

资金流传导:

  • 北向资金(沪深港通)→ A股直接影响
  • 全球流动性(美联储政策)→ 新兴市场资金流向 → A股
  • 美元强弱 → 人民币汇率 → 北向资金意愿

情绪传导:

  • 隔夜美股大涨/大跌 → A股开盘跳空
  • VIX 恐慌指数飙升 → 全球risk-off → A股承压
  • 中概股异动 → A股对标公司联动

基本面传导:

  • 原油上涨 → 化工/航空成本上升,油服/煤化工受益
  • 铜价上涨 → 有色板块受益,新能源成本承压
  • 美国经济衰退 → 中国出口承压 → 出口链公司
  • 人民币贬值 → 出口企业受益,航空/造纸(美元债)承压

政策传导:

  • 美联储加息/降息 → 中美利差 → 资金流向
  • 美国关税政策 → 贸易摩擦 → 相关行业
  • 全球央行协同/分化 → 汇率波动 → 跨境资金

Step 5: 输出

风格说明
维度formal(机构跨市场研究)brief(快速跨市场参考)
篇幅4-8 页1-2 页
市场覆盖A股+美股+港股+商品+汇率全覆盖聚焦用户关心的2-3个市场
相关性分析完整相关系数矩阵+滞后分析定性描述联动方向和强度
AH溢价完整AH溢价表+历史对比整体溢价水平+异常个股
传导机制详细多路径分析核心传导链1-2条
历史对比类似历史情景回顾不需要
免责声明需要不需要
关键规则
  1. 相关不等于因果:两个市场同涨同跌不代表存在因果关系,可能受同一因素驱动
  2. 联动强度因阶段而异:A股受外盘影响程度在不同市场阶段差异显著(牛市中后期更独立,恐慌阶段高度联动)
  3. AH溢价有制度基础:AH溢价不会归零,因为A/H两地存在投资者结构、流动性、交易制度的系统性差异
  4. 汇率影响因行业而异:人民币贬值对出口型企业利好,对进口依赖型/美元债较多企业利空,不可一概而论
  5. 时差与交易时间:美股收盘→A股开盘有时差,需注意盘后/盘前信息;港股与A股交易时间有重叠
  6. 数据来源标注:跨市场数据来源多样,务必标注每项数据的来源和时间点
  7. 与其他 skill 联动:跨市场分析结论可指导 a-share-sector(受影响行业)、a-share-northbound(北向资金分析)、a-share-macro(宏观政策背景)

使用示例

示例 1: 基本使用
python
# 调用 skill
result = run_skill({
    "param1": "value1",
    "param2": "value2"
})
示例 2: 命令行使用
bash
python scripts/run_skill.py --input data.json

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

Files

SKILL.md and 1 other file (references) in skills/a-share-cross-market of aifinlab/FinClaw.

  • SKILL.md
  • references/cross-market-guide.md

Open the folder on GitHubat commit 9e62862

Compare with similar skills

A Share Cross Market 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.

A Share Cross Market compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
A Share Cross Market this skillaifinlab/FinClaw255—~1kAutomated safety check: PassApache-2.0
ShareClickHouse/ClickHouse50k—~558Automated safety check: NotesApache-2.0
Developing Share PagesTriliumNext/Trilium38k—~3.7kAutomated safety check: PassAGPL-3.0
SharingBuilderIO/agent-native7.1k—~3.4kAutomated safety check: PassNone
Deslop Shared Libsgarrytan/gstack136k—~3.3kAutomated safety check: NotesMIT
Skill Sharedavila7/claude-code-templates33k10 repos~729Automated safety check: PassMIT

Similar skills

  • Share

    ClickHouse/ClickHouse

    Share a Claude Code session to pastila.nl and return a viewer link.

    50k GitHub stars~558 tokensUpdated today
    DatabasesAuto-check: notes
  • Developing Share Pages

    TriliumNext/Trilium

    A skill your agent uses when working on Trilium's share functionality — shared pages under /share/, the static HTML (share-theme) export, the share theme package (packages/share-theme: EJS…

    38k GitHub stars~3.7k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Sharing

    BuilderIO/agent-native

    Framework-level sharing and privacy for user-authored resources (dashboards, documents, forms, decks, etc.).

    7.1k GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Deslop Shared Libs

    garrytan/gstack

    Find worthwhile shared-code extractions in recent work. An agent skill from garrytan/gstack.

    136k GitHub stars~3.3k tokensUpdated today
    Writing & ContentAuto-check: notes
  • Skill Share

    davila7/claude-code-templates

    A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

    33k GitHub starsUsed in 10 repos~729 tokens
    Agent WorkflowsAuto-check passed
  • Moves logic out of Astro frontmatter into tested helper modules under shared/lib, with rules for naming, typing, deterministic demo data and sibling test files.

    42k GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from aifinlab/FinClaw

All 74 skills in this repo
  • Bank Corporate Credit Dd

    aifinlab/FinClaw

    A skill your agent uses when the user asks for help with corporate credit due diligence, enterprise credit investigation, pre-loan review, borrower analysis, document collection, management…

    255 GitHub stars~952 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate-risk monitoring assistant for enterprise litigation/penalty/enforcement scanning (处罚/诉讼/被执行/失信等).

    255 GitHub stars~751 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate client operating-volatility monitoring assistant (经营监测/指标波动/预警解释).

    255 GitHub stars~605 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank post-loan visit follow-up assistant to turn visit notes/materials into a structured memo (摘要/关键更新/风险观察/用途核验/行动项).

    255 GitHub stars~544 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate credit issue-list assistant (问题清单/补件清单/催办台账).

    255 GitHub stars~487 tokensUpdated 5 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate credit approval-opinion drafting assistant (审批意见/条款建议/有条件同意).

    255 GitHub stars~549 tokensUpdated 5 mo ago
    Auto-check passed

Questions about A Share Cross Market

What does A Share Cross Market do?

跨市场联动分析(A股/港股/美股/大宗商品)。当用户说"跨市场"、"联动"、"A股和美股"、"港股联动"、"AH溢价"、"中概股"、"美股跌了A股会跌吗"、"原油对A股影响"、"汇率影响"、"cross market"、"人民币贬值利好什么"、"跨市场联动"、"全球市场"时触发。MUST USE when user asks about cross-market correlation, AH…. A Share Cross Market is an agent skill from aifinlab/FinClaw. 跨市场联动分析(A股/港股/美股/大宗商品)。当用户说"跨市场"、"联动"、"A股和美股"、"港股联动"、"AH溢价"、"中概股"、"美股跌了A股会跌吗"、"原油对A股影响"、"汇率影响"、"cross market"、"人民币贬值利好什么"、"跨市场联动"、"全球市场"时触发。MUST USE when user asks about cross-market correlation, AH premium, how US/HK markets affect A-shares, or commodity/FX impact on Chinese stocks.

When should I use A Share Cross Market?

A Share Cross Market fits situations like: user asks about cross-market correlation; how US/HK markets affect A-shares; commodity/FX impact on Chinese stocks.

How do I install A Share Cross Market in Claude Code?

Run `npx skills add aifinlab/FinClaw --skill a-share-cross-market -a claude-code`. Or copy the skill folder (skills/a-share-cross-market in aifinlab/FinClaw) into .claude/skills/a-share-cross-market in your project. Claude Code loads it when a task matches its description.

How do I install A Share Cross Market in Codex?

Run `npx skills add aifinlab/FinClaw --skill a-share-cross-market -a codex`. Or copy the skill folder (skills/a-share-cross-market in aifinlab/FinClaw) into .agents/skills/a-share-cross-market in your project. Codex loads it when a task matches its description.

Can I use A Share Cross Market 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 aifinlab/FinClaw --skill a-share-cross-market -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/a-share-cross-market, .gemini/skills/a-share-cross-market, .github/skills/a-share-cross-market and .opencode/skills/a-share-cross-market in your project.

What does A Share Cross Market need to run?

Going by SKILL.md and its folder, A Share Cross Market needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does A Share Cross Market 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 A Share Cross Market 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 A Share Cross Market use?

A Share Cross Market is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does A Share Cross Market use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2k tokens, read only when the agent opens those files.

What are the alternatives to A Share Cross Market?

Skills that share tags, products or a category with A Share Cross Market: Share (ClickHouse/ClickHouse, 50k stars), Developing Share Pages (TriliumNext/Trilium, 38k stars), Sharing (BuilderIO/agent-native, 7.1k stars) and Deslop Shared Libs (garrytan/gstack, 136k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains A Share Cross Market?

aifinlab (a GitHub user) maintains it in aifinlab/FinClaw, which has 255 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on May 13, 2026.

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