wj-nation-team-etf-monitor

Estimates purchases and redemptions by the 'national team' (Huiyin, CICC stabilization fund, state-owned enterprise accumulation) in broad-based ETF primary markets using Wind daily-frequency data: first classify 12 candidate ETFs into a retrievable tier and an observable-only tier via the elasticity b and R² from turnover→net subscription, then daily-attribute net buy amounts; produces a single-page HTML dashboard in the Wangjingbo format and exports a 2160-pixel-wide long image. Historical data are stored under the data/ directory as files (supports atomic writes, automatic backups, audit logs, and unit self-check). Includes built-in empirical data covering 21 consecutive trading days from 2026-10-08; thereafter only incremental daily data need be added. Intended for scenarios mentioning 'national team', 'Huiyin', 'CICC', 'national team bottom fishing', 'national team buys ETF', or 'broad ETF fund inflows'.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "wj-nation-team-etf-monitor" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-60db0c950e9ff521b051c26d397073714abe98a8cbc4028f7e872462d1b158c0. Verify the upstream source and version against https://skillhub.cn/skills/user_8abedd3a/wj-nation-team-etf-monitor before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Estimates purchases and redemptions by the 'national team' (Huiyin, CICC stabilization fund, state-owned enterprise accumulation) in broad-based ETF primary markets using Wind daily-frequency data: first classify 12 candidate ETFs into a retrievable tier and an observable-only tier via the elasticity b and R² from turnover→net subscription, then daily-attribute net buy amounts; produces a single-page HTML dashboard in the Wangjingbo format and exports a 2160-pixel-wide long image. Historical data are stored under the data/ directory as files (supports atomic writes, automatic backups, audit logs, and unit self-check). Includes built-in empirical data covering 21 consecutive trading days from 2026-10-08; thereafter only incremental daily data need be added. Intended for scenarios mentioning 'national team', 'Huiyin', 'CICC', 'national team bottom fishing', 'national team buys ETF', or 'broad ETF fund inflows'.

0 Downloads

Introduction source: third_party · user_8abedd3a · 1.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: wj-nation-team-etf-monitor
version: 1.0.1
display_name: 国家队买卖ETF监控(望京博格版)
display_name_en: WJ Bogle National-team ETF Monitor
prerequisites: 必须已装金融数据 MCP(Wind 系列)。核心能力三条:① 场内基金日 K(取成交额)② ETF 日频「基金资金净流入额」③ 沪深300 日 K。缺任意一条就跑不通,验证方法见 references/data-contract.md
description: 用 Wind 日频数据估算「国家队(汇金、证金、央企增持资金)」通过宽基 ETF 一级市场申购进出的规模——先按「成交额→净申购」的弹性 b 与 R² 把 12 只候选 ETF 分成可反推的一档和只能看份额的二档,再逐日归因出净买入金额,最后产出望京博格式单页 HTML 看板并导出 2160 宽长图。历史数据以文件形式累积在 data/ 下(原子写 + 自动备份 + 审计流水 + 单位自检),**已内置 2026-10-08 起的 21 个交易日实测数据,以后每天只需补增量**。当用户提到「国家队」「汇金」「证金」「国家队抄底」「国家队买 ETF」「ETF 放量是不是国家队」「宽基 ETF 资金流入」「扫货」时使用。
description_zh: "用 Wind 日频数据估算国家队通过宽基 ETF 一级市场申购的规模:按弹性 b 与 R² 把 12 只候选 ETF 分成可反推的一档和只能看份额的二档,逐日归因净买入金额,产出望京博格式 HTML 看板 + 2160 宽长图。内置历史数据与增量入库流水。当用户提到国家队、汇金、证金、国家队抄底、ETF 放量、宽基 ETF 资金流入时使用。"
description_en: "Estimates China's 'national team' (Huijin, CSF, SOE buying programs) ETF purchase flows from Wind daily data: splits 12 candidate ETFs into a price-translatable tier and a shares-only tier by turnover-to-creation elasticity and R-squared, attributes daily net buys, and renders a single-file HTML dashboard plus a 2160px long image. Ships with accumulated history and incremental ingestion. Use for national-team ETF buying, wide-base ETF inflows, or whether ETF volume spikes are state money."
agent_created: true

国家队买卖ETF监控(望京博格版)

这个 skill 做什么

回答三个问题,一句话一个:

  1. 今天上午国家队动手了吗 —— 看一档 7 只 ETF 的成交额有没有炸到常态 2 倍。
  2. 这段时间买了多少、什么节奏 —— 逐日归因出净买入,按沪深300 波段切开。
  3. 哪些 ETF 算国家队标的 —— 名单是固定的,但能不能用成交额反推是数据说了算。

核心逻辑:国家队买 ETF 走一级市场申购,一笔几十到上百亿,必然先把二级成交额顶上去。 所以「成交额 → 净申购额」这条弹性关系,就是反推国家队动向的地基。


数据怎么累积(这是这个 skill 最重要的设计)

data/daily.json 是一个按日期字典存的历史库,不是一张写死的表:

{"benchmark": {"close": {"2026-11-05": 4113.41}},
 "etfs": {"510300.SH": {"turnover": {"2026-11-05": 7523081499},
                        "flow":     {"2026-11-05": 5.3844}}}}
  • 已经内置 2026-10-08 ~ 2026-11-05 共 21 个交易日 × 12 只的实测数据,首次使用不需要抓历史。
  • 以后每天只补新增的那几天,apply 会按键合并(同一天重复写等于覆盖,幂等)。
  • 每次写入前自动备份到 data/backup/(留最近 30 份),并往 data/audit.log 追加一行流水。
  • 模型每次从库里重算,窗口默认最近 21 个交易日,换窗口/加天数/加标的都只改数据,不改脚本。

标准流程(五步)

# 1. 看库覆盖到哪一天、缺什么
python scripts/update.py status

# 2. 生成「要抓什么」的清单(JSON,含 MCP 工具名与参数)
python scripts/update.py plan
#    输出 write 到 out/plan.json,calls 里每一条都对应一次 MCP 调用

# 3. 按清单用 Wind MCP 抓数,拼成 inbox.json(格式见下)
#    然后入库(会自动做单位自检、跳过问题数据、打警告)
python scripts/update.py apply inbox.json

# 4. 重算 + 渲染 + 出长图
python scripts/update.py all

# 盘中(可选):把上午收盘的半日成交额入库,看板自动切到实时判定
python scripts/update.py apply-intraday intraday.json

产物在 out/:result.json(模型全量结果)、国家队买卖ETF监控.html、国家队买卖ETF看板_长图.png(2160 宽)。


第 3 步:inbox.json 长什么样

按 out/plan.json 的 calls 逐条抓,然后拼成一个文件:

{
  "source": "wind-mcp",
  "benchmark": {"000300.SH": {"2026-11-06": 4060.11}},
  "etfs": {
    "510300.SH": {"turnover": {"2026-11-06": 4210000000},
                  "flow":     {"2026-11-06": 12.5}}
  }
}

三条硬规则:

字段 单位 来源
turnover 元 场内基金日 K 的 amount
flow 亿元 ETF 日频「基金资金净流入额」
benchmark.close 点位 沪深300 日 K 的 close

apply 会做单位自检:若 |flow| × 1e8 超过当日成交额的 3 倍,判定单位不对,跳过该条并打警告—— 这一步挡掉过真实踩过的坑(有的基金返回万元、有的返回百万元)。看到警告不要忽略,回去确认 Wind 返回的口径。

盘中快照 intraday.json:

{"date": "2026-11-06", "time": "12:32", "ratio": 0.55,
 "hs": 4052.48, "hs_chg": -1.48,
 "half": {"510300.SH": 30.84, "510310.SH": 7.75, "...": 0}}

half 是上午收盘的半日成交额(亿元);ratio 是上午占全天的经验比例(缺省 0.55,用来折全天)。


模型:为什么分一档二档

12 只标的按季报口径固定(沪深300 四只 / 上证50 / 中证500 两只 / 中证1000 两只 / 科创50 / 创业板 / A500), 但能不能用成交额反推要看数据:

  • 对每只做「成交额 → 净申购额」的线性回归,得到弹性 b 和拟合度 R²
  • b ≥ 0.8 且 R² ≥ 0.7 → 一档:成交额基本就是申购的镜像,盘中放量能直接读成国家队动手
  • 其余 → 二档:成交额里混了大量二级换手,反推会严重失真,只能等收盘用份额变动实算

一档组合再回归一次,得到监控用的地基方程:

净申购(亿) = a + b × 当日一档成交额(亿)
国家队净买入(亿) = 净申购 × w     w = 0.35 ~ 0.75,随放量程度递增

w 是假设不是实测(净申购里国家队占几成没有公开数据),所以看板上给的是区间不是点值。 分档会随数据自动重算——某只 ETF 流动性结构变了,档位会自己迁移,不要写死。

细节见 references/methodology.md。


已知的坑(都踩过了,别再踩)

  1. get_fund_performance 多代码会截断:一次传超过 5 只只返回前几只。必须单只查。
  2. 返回里带 .SH / .OF 两份:联接基金那份要过滤掉,只取场内代码。
  3. 当日盘中净流入为 null:所以盘中只能用成交额判定,flow 必须等收盘。
  4. 单位不统一:有的代码返回万元、有的百万元。不要相信字段名,用「净申购不该超过当日成交额」这条自检兜底。
  5. get_fund_price_indicators 的「基金规模」与「流通份额 × 净值」口径差 0.5–0.6 倍:用后者(universe.json 里的 shares × price)更自洽。
  6. QPS 约 2 次/秒:12 只 × 2 个接口 = 24 次调用,串行发、别并发轰炸。

换标的 / 换窗口

  • 加标的:改 data/universe.json 增加一条(code / name / short / index / group / shares / price), 再在 data/daily.json 的 etfs 下补它的历史,然后 python scripts/update.py all。分档会自动判定。
  • 换窗口:python scripts/update.py all --window 30(默认 21,0 = 用库里全部)。
  • 改波段切分灵敏度:--seg 3 表示切出的波段最少 3 天(默认 3)。

输出长什么样

单页 HTML,六节,顺序是「先今天、再这一个月、最后交代方法」:

  1. 实时监控 —— 左:状态卡(未入场绿 / 已入场红)+ 推算 + 判定线;右:最近 10 个交易日动态
  2. 买卖节奏 —— 每日净买入柱 + 沪深300 线、累计曲线、波段表、每日明细
  3. 标的池 —— 弹性横向条形图(红=一档、金=二档)、分组名单
  4. 分标的明细 —— 规模/成交额/净申购/转化率/b/R²/归因 九列
  5. 定量关系 —— 公式块 + 成交额散点与回归线
  6. 可靠性 —— 自己拆自己的台:w 是假设、二档更不可靠、样本短、极端行情失效

正文里的「哪一天买了多少」「相关性多少」全部由程序从数据生成,不写死—— 换窗口、加天数后文案不会和数字打架。

免责声明固定附在文末,不要删。


排版规范(改样式时对表,别越改越小)

v1.0.1 起正文整体上调一档,容器同步放宽,改 CSS 时按这张表:

元素 选择器 字号
一级标题 h1 32px
板块标题 h2 21px
正文段落 .p 18px / 行高 2.0
提示块 .note 16.5px
图注 .cap 14px
表格正文 / 标的名 table / .nm 15.5 / 16px
右表「近十个交易日」 .mini 14.5px
状态卡大字 .live .left .v 44px
公式块 .formula 15.5px
内容容器 .wrap max-width 1180px

窄屏两档:≤820px 正文 17px、表格 13.5px;≤520px 正文 16.5px、表格 13px。 放大字号必须同步放宽 .wrap,否则表格「净买入」列会被压扁。

Current listing version

1.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决国家队ETF资金动向估算这一明确金融分析刚需
  • 提供从数据采集到可视化看板的端到端自动化流程
  • 内置21个交易日实测数据,支持增量更新,大幅降低使用门槛
Trigger Precision95/100

Highlights

  • 触发词覆盖全面且边界清晰(国家队/汇金/证金/抄底/扫货等)
  • description位置正确且内容完整,无截断或错位
Structure and Standards88/100

Areas to improve

  • 文档长度略超规范 Reported severity: Minor

    SKILL.md 总长度约600行,超出建议的500行上限

    Recommendation: 可考虑将部分技术细节移至 references/ 目录下独立文件

  • 缺少显式 When to Use 章节 Reported severity: Minor

    使用场景描述已存在于 frontmatter,但未在正文中设立独立章节

    Recommendation: 在正文开头增加显式的 'When to Use' 小节以提升可读性

Highlights

  • 标准流程五步划分清晰,含完整命令行示例
  • frontmatter 信息完整,prerequisites 明确标注依赖条件
Execution Reliability94/100

Highlights

  • 单位自检机制有效防止常见数据口径错误
  • 原子写入+自动备份+审计流水三重保障数据安全
  • 覆盖QPS限制、接口截断、盘中null等关键异常场景
Evidence Verifiability (mean of the first four)92/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.