National Team Position logo

National Team Position

Community
Xiaoyuan-Liu
national-team-position

估计中国 A 股"国家队"(中央汇金)的宽基 ETF 持仓变动趋势——追踪上交所沪深300/上证50/中证500/中证1000/中证A500/科创50 的 ETF 份额变化,叠加各自指数走势,生成六合一总图与各指数单图。Estimates China's "national team" (Central Huijin) broad-base ETF positioning by tracking Shanghai Stock Exchange ETF share changes. Use when the user asks about 国家队持仓 / 国家队仓位 / 中央汇金持仓 / 国家队加仓 / 国家队减仓 / ETF份额变化 / 看看国家队 / national team holdings / Central Huijin positions.

Overview

PublisherXiaoyuan-Liu
Repositorynational-team-position
Skill namenational-team-position
Stars
65
Forks
10
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Xiaoyuan-Liu on GitHub. Read the source before you install it.

Installation

Install the National Team Position AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Xiaoyuan-Liu/national-team-position/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Xiaoyuan-Liu/national-team-position.git \
  .claude/skills/national-team-position
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable National Team Position in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads National Team Position on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so National Team Position is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

国家队持仓估计(全宽基版)

通过追踪上交所核心宽基 ETF 的份额变化,估计国家队(中央汇金)的持仓变动与结构轮动, 并为每个宽基叠加其对应指数走势生成可视化图表。

当用户提到以下任何场景时必须触发:国家队持仓、国家队仓位、中央汇金持仓、ETF份额变化、 国家队加仓、国家队减仓、看看国家队、国家队最近在干嘛。

原理

  • 中央汇金是宽基 ETF 的绝对控盘方,追踪 ETF 份额(而非规模)可准确反映买卖行为
  • 在沪深300 基础上覆盖全部上交所核心宽基,能区分「真减仓」与「换仓轮动」
  • 数据来源:上海证券交易所官网 ETF 份额接口(AKShare fund_etf_scale_sse,一次返回当日全部 ETF)
    • AKShare 指数日线

覆盖的宽基指数

指数代表 ETF价格 symbol信号干净度
沪深300510300/510310/510330…sh000300⭐⭐⭐ 汇金绝对主力
上证50510050/510710/510850…sh000016⭐⭐⭐ 护盘核心
中证500510500/512500…sh000905⭐⭐ 含较多散户
中证1000512100/560010sh000852⭐⭐ 散户/对冲盘多
中证A500名称含 "A500" 的全部sh000510⭐⭐ 2024末新发,汇金基石
科创50588000/588080…sh000688⭐ 散户/杠杆重,噪音大

创业板等 ETF 全在深交所,本接口取不到,未纳入。 科创50/中证500 散户底仓重,绝对值会高估"国家队持仓",解读时建议参考增量(相对早期基线)。

依赖

bash
pip install akshare matplotlib pandas

使用方式

bash
# 默认:2024-01-01 至今,按周采样
python <skill-path>/scripts/national_team_position.py --output-dir ./

# 指定日期范围(推荐看 2023 至今,能完整覆盖建仓→轮动→撤离)
python <skill-path>/scripts/national_team_position.py --start 2023-01-01 --output-dir ./

# 仅获取数据不画图
python <skill-path>/scripts/national_team_position.py --data-only --output-dir ./

<skill-path> 替换为此 SKILL.md 所在目录的实际路径。

参数说明

参数必填说明
--start否起始日期,格式 YYYY-MM-DD,默认 2024-01-01
--end否结束日期,格式 YYYY-MM-DD,默认今天
--output-dir否输出目录,默认当前目录
--data-only否仅输出 JSON 数据,不画图
--freq否采样频率:weekly(默认)或 monthly

输出文件

文件说明
national_team_overview.png六合一总图(2x3,每格 = 该宽基份额 + 对应指数价格双轴)
national_team_hs300.png沪深300 单图(份额 + 指数价格双轴)
national_team_sse50.png上证50 单图
national_team_csi500.png中证500 单图
national_team_csi1000.png中证1000 单图
national_team_csiA500.png中证A500 单图
national_team_star50.png科创50 单图
national_team_position.json各宽基份额时间序列 + 全宽基合计 JSON

推荐工作流

  1. 运行脚本获取数据并生成全部图表
  2. 先发总图(national_team_overview.png)给用户,再按需发单图
  3. 解读:各宽基的建仓/减仓时间点、份额变化量、与指数走势的对应关系; 重点区分「真减仓」与「轮动换仓」(如沪深300 见顶后资金是否流向新发的 A500)
  4. 如用户有后续问题,读取 JSON 做进一步分析(如增量口径、轮动窗口拆解)

注意事项

  • 上交所 API 部分日期(节假日/周末)无数据,脚本会自动尝试前几个交易日
  • AKShare 请求频率不宜过高,脚本内置间隔
  • 首次运行较慢(按周采样 2-3 年约需 2-3 分钟,每个采样日仅 1 次份额接口调用)
  • 图表使用中文字体,macOS 上使用 Arial Unicode MS / PingFang SC;Linux 需自备中文字体(如 Noto Sans CJK)
  • 份额变化含非国家队的散户/机构申赎,尤其科创50/中证500/A500 噪音较大,结论需打折看趋势
  • 本工具仅用于数据可视化与研究,不构成任何投资建议

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the National Team Position AI skill do?

估计中国 A 股"国家队"(中央汇金)的宽基 ETF 持仓变动趋势——追踪上交所沪深300/上证50/中证500/中证1000/中证A500/科创50 的 ETF 份额变化,叠加各自指数走势,生成六合一总图与各指数单图。Estimates China's "national team" (Central Huijin) broad-base ETF positioning by tracking Shanghai Stock Exchange ETF share changes. Use when the user asks about 国家队持仓 / 国家队仓位 / 中央汇金持仓 / 国家队加仓 / 国家队减仓 / ETF份额变化 / 看看国家队 / national team holdings / Central Huijin positions.

Why use National Team Position on TypingMind?

Because you install it once and use it with any model. National Team Position is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install National Team Position in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Xiaoyuan-Liu/national-team-position/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use National Team Position?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with National Team Position?

As many as you like. As long as a model supports skills, you can use National Team Position with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the National Team Position AI skill free?

Yes. It is published on GitHub by Xiaoyuan-Liu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇