fund-guy-skill README

The project's README from github.com/wbh604/fund-guy-skill. As one markdown file: README.md.

Fund Guy Skill · 基佬skill

"平台给他打 84 分,我们把他每一笔买卖翻出来验,只给 62。"

License: MIT Python 3.9+ Agent Skill Data Modules

基金经理深度行为审计引擎 · 评的是行为,不是净值

在线示例 · 这是啥 · 安装 · 报告长什么样 · 快速开始 · 方法论铁律 · 数据来源 · 更新日志

中文 | English


鸣谢

学AI,上L站! 感谢 Linux.do 社区支持。

这是啥

一句话:输入一个基金代码,Agent 把基金经理 8 年的每一笔买卖翻出来,拿 12 个月后的真实走势逐笔验对错,最后吐出一份 700KB 的单文件交互报告——K 线战役回放、买卖点验尸、独立性审判、造神检测,全都有。

在线示例:兴全合宜(163417)→ 点开直接看(自包含 HTML,下载后离线也能打开;演示版已对经理姓名与照片打码)。不要用 htmlpreview.github.io 预览 gist 里的 HTML——那个预览器经常不跑内嵌脚本,看起来会像分数是 0、K 线空白,其实是预览坏了。

为什么做这个

买基金的人 99% 只看两样东西:净值曲线和平台评分。但是——

这个 skill 把这些问题全部用公开数据算一遍,每个结论可复算、有出处;查不清的标"未查证",绝不编数。


安装

OpenClaw / 龙虾(最简单)

复制这段命令发给龙虾,它会自动装好:

git clone https://github.com/wbh604/fund-guy-skill.git ~/.openclaw/skills/fund-guy-skill && pip install -r ~/.openclaw/skills/fund-guy-skill/requirements.txt

装好后直接说:

用 fund-guy-skill 里的 skills/fund-manager-alpha/SKILL.md 帮我分析基金 163417,参考脚本在仓库 scripts/ 下。

Claude Code(Plugin 方式)

/plugin marketplace add wbh604/fund-guy-skill
/plugin install fund-manager-alpha@fund-guy-skill

装好后有三个斜杠命令:/analyze-fund 163417(完整审计)、/quick-check 163417(5 分钟速查)、/find-similar 163417(持仓撞车反查)。

Claude Code(Skill 方式)

git clone https://github.com/wbh604/fund-guy-skill.git && pip install -r fund-guy-skill/requirements.txt

在 Claude Code 里打开 fund-guy-skill 目录,skills/ 自动发现。

Codex

直接丢这段给 Codex:

克隆 https://github.com/wbh604/fund-guy-skill ,运行 pip install -r requirements.txt,然后执行 python run.py 163417 --no-browser 分析兴全合宜。跑完把报告路径给我。

Cursor

克隆后直接用 Cursor 打开仓库目录 —— .cursor/skills/ 里的项目技能自动被发现,然后说「分析基金 163417」即可。或者丢这段话进去:

克隆 https://github.com/wbh604/fund-guy-skill ,装依赖 pip install -r requirements.txt,然后读 skills/fund-manager-alpha/SKILL.md 按流程分析基金 163417,参考脚本在 scripts/ 下。

Windsurf / Devin / 其他 Agent

仓库根目录带 AGENTS.md(通用 agent 指南)和 .agents/skills/(Codex 项目技能),多数 agent 打开即识别;不识别的直接丢上面那段话。

纯命令行

git clone https://github.com/wbh604/fund-guy-skill.git
cd fund-guy-skill && pip install -r requirements.txt
python run.py 163417

📸 报告长什么样

以下截图全部来自兴全合宜(163417)的真实分析结果,白天主题。

判决书 · 受检对象 + 行为评分

总分 62 = 择时 35% + 控制 35% + 超额质量 30%,每一分都有规则可复算。印章直接告诉你"再等等"。

平台评分对照 · 84 vs 62

天天基金给他 84,我们只给 62 —— 差的 22 分,主要差在平台没看他"什么时候卖"。

战役回放 · 真实周 K + 逐笔买卖点

左边是他赚最多/亏最多/卖飞的股票榜,右边真实 K 线上标出每次买卖:绿点买入、红点主动卖、黄点被动减(触 10% 线 / 遭赎回),还有成本线和卖出线。按「战役回放」K 线逐周生长,当年的新闻和他的操作一帧帧重演。

买卖点验尸 · 65 次买入 + 16 次清仓全部验尸

每个动作拿 12 个月后的走势验:买点胜率 58%(跑赢大盘算赢),清仓躲跌率只有 31%。结论一行字:会买,不会卖。

最好与最差的决策

澜起科技加仓后 12 个月 +227%;三安光电清仓后又涨 119%(卖飞)。赢和输都摆出来 —— 只挑赢家写,报告就没有可信度了。

被套时他干什么 + 跌市防守

股票跌破成本后的 32 次动作:20 次认错砍掉 vs 12 次越跌越买 —— 偏纪律型,不死扛。旁边是四个熊市年的防守成绩单。

独立战争 · 他和公司有多不一样

分歧度标尺:他 78.8%,同事间均值也差不多 —— 不是孤狼。关键在下一步:分歧最高的季度 vs 最低的季度,随后 6 个月谁跑赢了大盘。

现在的牌面 · 前十大按行业归堆

牌面按东财/港股公开行业自动归堆,不写死「科技成长打法」。下图是合宜演示的当前牌面。

持仓撞车榜 · 同门 + 全市场

同门里谁跟他最像、全市场哪些主动基金也重仓他的票,全部配重合度进度条。想深挖哪只,直接让 Agent 再跑一遍。

今年最猛的 10 只 · 持仓同步度

今年收益榜前十平均只跟他撞 0.8/10 只重仓 —— 他的收益不是追热点榜追来的。

抄作业指数 · 他建仓 vs 你等季报

等季报再抄,超额还能拿 80% —— 买点先手一年只值 4.4 个点,跟他的择时弱项互相印证。

万元灾难片 · 你会怎么亏

拖动滑块选金额,直接看"如果买在 2021 年山顶"你的钱会变成多少、要熬多少天才回本。

机构视角 · 上行/下行捕获

机构评基金最看重的一组数,配人话注释。

运气拆解 · 收益里有多少是风格白送的

把 103 个月的收益拆给市场/大小盘/成长价值,剥完还剩每年 +7.7% —— 这才是他的真本事。

造神检测 · 明星经理黑历史扫描

甩锅跑路 / 摘桃子 / 藏尸体 / 高位圈钱,逐项核查。查不清的标"未查证",不写成"不存在"。

闸门时间轴把限购/开门钉在市场高低点上,拿 12 个月后涨跌验他拦没拦人高位接盘——对照卡,不进总分。

年底冲排名比 Q4 和其他季;一车多牌看他名下产品持仓重不重样;开门批次验门开了之后那批钱 12 个月怎样了。三张都是对照卡,不进总分。


🎨 三种报告风格

主报告(上面那套)之外,还有三种完整的风格原型,同一套方法论、三种完全不同的叙事皮肤(当前为模拟数据演示,可作为渲染模板切换):

风格 A · 侦查卷宗 —— 「绝密档案」

牛皮纸+公章+批注,把基金经理当嫌疑人查:人事档案、物证、结案书。 在线看

风格 B · 卡牌图鉴 —— 「你抽到了一张 SSR」

游戏抽卡语言:稀有度、属性面板、对战记录、阵亡回放、强度榜。 在线看

风格 C · 体检报告 —— 「各项机能基本健康,但天冷就犯病」

体检中心语言:总检结论、检验科、既往病史、Rx 医嘱与剂量控制。 在线看


快速开始

python3 -m venv .venv && .venv/bin/pip install -r requirements.txt

# 以兴全合宜 163417 为例:取数 → 分析 → 出报告
.venv/bin/python scripts/fetch_fund.py 163417           # 基金主数据(净值/持仓/经理/持有人/费率)
.venv/bin/python scripts/fetch_stock_klines.py 163417   # 重仓股周K(窗口跟本基金成立日)
.venv/bin/python scripts/fetch_stock_industry.py 163417 # 重仓股行业(东财/港股 F10)
.venv/bin/python scripts/fetch_pingzhong.py 163417      # 天天基金 pingzhongdata(申赎/平台评分/照片)
.venv/bin/python scripts/fetch_house.py 163417          # 同门基金持仓(独立战争对照组)
.venv/bin/python scripts/fetch_market_similar.py 163417 # 全市场撞车榜反查
.venv/bin/python scripts/fetch_top_funds.py 163417      # 今年收益 TOP10 同步度
.venv/bin/python scripts/fetch_gates.py 163417          # 申购闸门(限购/开门/自购公告)
.venv/bin/python scripts/analyze_fund.py 163417         # 行为分析:验尸/评分/被动减仓判定
.venv/bin/python scripts/analyze_house.py 163417        # 分歧度/市场共识
.venv/bin/python scripts/analyze_gates.py 163417        # 闸门 × 市场分位 × 12 个月验尸
.venv/bin/python scripts/analyze_addons.py 163417       # 年底冲排名 / 一车多牌 / 开门批次 / 造神筛 / K线情景
.venv/bin/python scripts/build_fund_report.py 163417    # 生成单文件报告 assets/fund-<code>.html

在 Cursor / Claude Code / Codex 里用

把仓库丢给 Agent,说:

读 skills/fund-manager-alpha/SKILL.md,按里面的流程分析基金 163417,参考脚本在 scripts/ 下。

脚本是一次真实运行的参考实现。接口会改版,换基金时窗口、行业、费率、风格指数、同门对照、K 线 fund 事件必须按所选基金重算,禁止手写某只基金的对照表,也禁止把合宜手写时间轴抄到别的代码。公告全文和 Mandate 仍由 Agent 做;造神九项能自动筛的用本品数据,筛不到的标未获取。以 skills/fund-manager-alpha/SKILL.md 的三层取数模型为准。


方法论铁律

完整 18 条见 SKILL.md,最重要的几条:

  1. 直观是最高理念 —— 每个裸数字必须有主语和口径,回归系数只能进小字括号
  2. 必须先做任期切割 —— 前任业绩混入现任评价 = 分析作废
  3. 禁止把 Beta 当 Alpha —— 风格白送的收益必须先剥离
  4. 卖飞只认主动清仓 —— 部分减仓大头还在,被动减仓(触 10% 线/遭赎回)不是决策,全部剔除
  5. 失败的独立判断必须全部记录 —— 只挑赢家写 = 整个报告失去可信度
  6. 不许伪精确 —— 算不出来就写"未获取",绝不编数
  7. 证据不足标 U(未鉴定) —— 把"查不清"当"能力差"是误伤

设计决策全记录在 DESIGN.md。

数据来源

全免费、零 API key:

数据 来源
净值 / 规模 / 申赎 / 持有人 / 经理档案 / 平台评分 天天基金(东方财富)
逐季持仓 / 基金排行 东方财富,经 akshare
重仓股行业 东方财富 F10 / 港股 F10
管理费托管费 东方财富基金费率页
全市场持仓横截面 巨潮资讯,经 akshare
A 股周 K(前复权) baostock
港股周 K 新浪财经,经 akshare
申购闸门(限购 / 开门 / 公司自购) 东方财富基金公告 JJGG
名下其他产品持仓(一车多牌) 东方财富,经 akshare
K 线图表库 TradingView Lightweight Charts (Apache-2.0)

所有原始数据落 .cache/ 留证(不入库),记录接口名+参数与抓取时间;查不到出处的数字不许进报告。报告末尾自带完整数据来源标注。

更新日志

按时间倒序。只记对使用者有感的变化。

2026-09-03 · 预览残页与同门/撞车口径

2026-08-14 · 换基金全自动

2026-08-13 · 年底冲排名 / 一车多牌 / 开门批次

2026-08-13 · 闸门时间轴

2026-08-12 · 公开演示

免责声明

⚠️ 本项目仅供学习研究,全部基于公开披露数据,不构成任何投资建议。基金过往业绩不预示未来表现;报告中的判断有效期至下一期持仓披露。

fund-guy-skill (wbh604/fund-guy-skill)

Searching Database…

What is this?A fund-manager behavior audit skill for AI agents: give it a Chinese mutual fund code and it pulls every buy/sell the manager made over 8 years, checks each trade against the real 12-month-later price action, and outputs a single 700KB interactive HTML report with candlestick battle replays, buy/sell autopsies, independence scoring and 'star manager' red-flag detection.
Is this a standalone app or a skill I load into an agent?It is a skill/plugin bundle (SKILL.md plus Python scripts) meant to be loaded by an AI coding agent. In Claude Code it registers three slash commands for the analysis, in Cursor/Codex it is auto-discovered from .cursor/skills or .agents/skills.
How do I actually run an analysis?Clone the repo, run pip install -r requirements.txt, then either run python run.py --no-browser directly, or point a supported agent (Claude Code, Cursor, Codex) at skills/fund-manager-alpha/SKILL.md and give it a fund code to analyze.
Do I need an API key or paid data feed?No. All underlying data (NAV, holdings, weekly candles, fund announcements) comes from free public sources via akshare, baostock and Eastmoney/Sina, with zero API keys required.
Any gotchas when opening the report?The report is a self-contained HTML file that must be opened directly in a browser; previewing it through services like htmlpreview.github.io breaks the embedded scripts, which makes scores show as 0 and candlestick charts appear blank even though the data is actually fine.
Which coding agents can run this skill?Claude Code, Codex, Cursor are first-class (with auto-discovered skill folders), and the repo also ships an AGENTS.md so Windsurf, Devin and other generic agents can pick it up too.
What exactly is in the generated report besides a score?It includes a weekly candlestick 'battle replay' with every buy/sell marked, a sell-decision autopsy comparing actions to 12-month forward returns, a 'how different from the company' independence test, a myth-busting scan for star-manager red flags, and a holdings-overlap leaderboard.
How is the final score calculated?The total behavior score is a weighted sum: 35% timing (择时), 35% risk control (控制) and 30% excess-return quality (超额质量), with every sub-score traceable back to a stated rule rather than a black box.
Can the report look different from the default?Yes, besides the main report there are three alternate narrative skins using the exact same methodology: a 'detective case file' style, a 'gacha card' style, and a 'medical checkup' style.
Does it hide the manager's identity?The public demo for fund 163417 masks the manager's name and photo by default; this can be toggled with the FUNDMASK environment variable for other funds, and photos are pixelated automatically if masked images are missing.
Creator
wbh604
Size
11.3 MB
Stars
602
Updated
CommitSep 03
Age
2mo
Commits · 90 Days