Skip to content
Projects

wbh604/fund-guy-skill

View on GitHub

About

Oh no, I'm surrounded by gays! So someone is bound to ask: streamer, streamer, is there a simple and easy-to-use way to screen for gays? There is, bro, there is—come check out jilaoskill!

Other Projects

How these counts are measured

Measured star growth

in 24h
+2
in 7 days
+7
in 15 days
+10
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original

Fund Guy Skill · 基佬skill

"The platform rates him 84. We audited every single trade he made — and gave him 62."

License: MIT Python 3.9+ Agent Skill Data Modules

A deep behavioral audit engine for fund managers · We grade behavior, not NAV

Live Demo · What Is This · Install · Report Tour · Quick Start · Hard Rules · Data Sources · Changelog

中文 | English


Acknowledgements

Learn AI at L站! Thanks to the Linux.do community for their support.

What Is This

One sentence: give it a mutual fund code, and the Agent digs up every trade the manager made over 8 years, back-tests each entry and exit against what actually happened in the following 12 months, then produces a 700KB self-contained interactive report — animated K-line battle replays, trade autopsies, an independence trial, and a fame-machine background check.

Live demo: Xingquan Heyi (163417) → open it (self-contained HTML, works offline; the demo masks the manager's name and photo). Do not preview gist HTML via htmlpreview.github.io — that proxy often skips inline scripts, so the score looks like 0 and the K-line looks empty even when the file is complete.

Why This Exists

99% of fund buyers look at exactly two things: the NAV curve and the platform rating. But —

  • A rising NAV ≠ a skilled manager. It may be pure style beta (large-cap growth printed money in 2020 no matter who ran it)
  • Platform ratings score returns and years of service. Nobody checks whether his sells were actually right
  • "Holdings differ from the firm's" gets marketed as independence, but nobody verifies whether he made money when he disagreed
  • If copying his quarterly disclosures gets you nearly the same return, what is his first-mover edge actually worth?

This skill answers all of that with public data. Every conclusion is reproducible and sourced; anything unverifiable is labeled "unverified" — numbers are never invented.


Install

OpenClaw (easiest)

Send this to your agent and it sets itself up:

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

Then just say:

Use skills/fund-manager-alpha/SKILL.md in fund-guy-skill to analyze fund 163417. Reference scripts are under scripts/.

Claude Code (Plugin)

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

You get three slash commands: /analyze-fund 163417 (full audit), /quick-check 163417 (5-minute triage), /find-similar 163417 (holdings collision lookup).

Claude Code (Skill)

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

Open the fund-guy-skill directory in Claude Code — skills under skills/ are auto-discovered.

Codex

Drop this on Codex:

Clone https://github.com/wbh604/fund-guy-skill , run pip install -r requirements.txt, then run python run.py 163417 --no-browser to analyze the fund. Give me the report path when done.

Cursor

Clone and open the repo folder in Cursor — the project skill under .cursor/skills/ is auto-discovered; just say "analyze fund 163417". Or drop this in:

Clone https://github.com/wbh604/fund-guy-skill , install deps with pip install -r requirements.txt, then read skills/fund-manager-alpha/SKILL.md and analyze fund 163417 following its workflow. Reference scripts are under scripts/.

Windsurf / Devin / other agents

The repo root ships AGENTS.md (a universal agent guide) and .agents/skills/ (Codex project skill), which most agents pick up on open; if yours doesn't, drop in the paragraph above.

Plain CLI

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

📸 What the Report Looks Like

All screenshots below come from the real analysis of Xingquan Heyi (163417), light theme.

The Verdict · Subject + Behavior Score

Total 62 = timing 35% + control 35% + alpha quality 30%, every point rule-based and recomputable. The stamp says it plainly: "Wait."

Platform Rating Face-off · 84 vs 62

The platform gives him 84, we give 62 — the 22-point gap is mostly one thing: the platform never checked when he sells.

Battle Replay · Real Weekly K-lines + Every Trade

Left: his biggest winners / losers / sold-too-early list. Right: real K-lines with every trade marked — green dots for buys, red for active sells, yellow for forced trims (10% cap / redemptions), plus cost and exit lines. Hit "Replay" and the chart grows week by week while that year's news and his moves replay frame by frame.

Trade Autopsy · 65 Buys + 16 Full Exits, All Tested

Every action is tested against the following 12 months: buy win rate 58% (beating the index counts as a win), exit dodge rate only 31%. One-line verdict: great buyer, bad seller.

Best and Worst Calls

Montage Technology: +227% in the 12 months after he added. Sanan Optoelectronics: +119% after he exited (sold way too early). Wins and losses are both on the table — cherry-picking winners would kill the report's credibility.

What He Does Underwater + Bear Market Defense

32 actions taken while a position was below his cost: 20 cut-losses vs 12 buy-the-dips — disciplined, doesn't ride losers into the ground. Next to it: his defense record across four bear years.

The Independence War · How Different Is He From His Firm

Divergence gauge: him 78.8%, roughly the same as the average gap between colleagues — not a lone wolf. The step that matters: in his most-divergent quarters vs least-divergent quarters, who beat the index over the following 6 months?

His Current Hand · Top-10 Holdings by Industry

The holdings board is grouped from Eastmoney/HK official industries, not a handwritten "tech growth" story. Screenshot below is the current Heyi demo board.

Holdings Collision Board · Same Firm + Whole Market

Which sibling funds look most like his, and which active funds market-wide also hold his heavyweights — all with overlap progress bars. Want any of them dissected? Just ask the Agent to run the pipeline again.

This Year's Top 10 Funds · Holdings Sync Rate

This year's ten hottest funds overlap with him on just 0.8 of 10 heavyweights on average — his returns were not made by chasing this year's leaderboard.

Copycat Index · His Entry vs You Waiting for Disclosures

Copy him after each quarterly disclosure and you still keep 80% of the alpha — his first-mover edge is worth about 4.4 points a year, which cross-checks his weak timing score.

The Disaster Movie · How You Would Have Lost Money

Drag the slider to pick an amount and see exactly what your money would have become had you bought at the February 2021 peak — and how many days until breakeven.

Institutional View · Up/Down Capture

The numbers institutional allocators care about most, annotated in plain language.

Luck Decomposition · How Much of the Return Was Free Style Beta

Regress 103 months of returns against market / size / growth-value factors. What survives: +7.7% a year — that part is real skill.

Fame-Machine Check · Star Manager Background Scan

Dumping losers on juniors / cherry-picking track records / burying dead funds / peak-time cash grabs — checked item by item. Unverifiable items are marked "unverified", never "doesn't exist".

The subscription-gate timeline pins purchase limits and reopenings onto market highs/lows, then autopsies the next 12 months — a comparison card, not a score.

Year-end ranking chase compares Q4 vs other quarters; clone overlap checks whether his other products are the same book with a different ticker; open-gate cohorts autopsy the money that came in after the door opened. All three are comparison cards, not scores.


🎨 Three Report Styles

Beyond the main report above, three complete style prototypes share the same methodology with totally different narrative skins (currently mock-data demos, usable as alternative render templates):

Style A · Detective Dossier — "TOP SECRET"

Kraft paper, red stamps, investigator margin notes. The manager is treated as a suspect: personnel file, exhibits, closing statement. View live

Style B · Gacha Card — "You Pulled an SSR"

Card-game language: rarity, stat panel, match history, death replays, tier-list debates. View live

Style C · Health Checkup — "Mostly Healthy, But Flares Up in Cold Weather"

Clinic language: general conclusion, lab results, medical history, Rx with dosage control. View live


Quick Start

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

# Example: Xingquan Heyi 163417 — fetch → analyze → build report
.venv/bin/python scripts/fetch_fund.py 163417           # core fund data (NAV/holdings/manager/holders/fees)
.venv/bin/python scripts/fetch_stock_klines.py 163417   # weekly K-lines (window follows this fund)
.venv/bin/python scripts/fetch_stock_industry.py 163417 # heavyweight industries (Eastmoney / HK F10)
.venv/bin/python scripts/fetch_pingzhong.py 163417      # Eastmoney pingzhongdata (flows/platform rating/photo)
.venv/bin/python scripts/fetch_house.py 163417          # sibling fund holdings (independence control group)
.venv/bin/python scripts/fetch_market_similar.py 163417 # market-wide collision board reverse lookup
.venv/bin/python scripts/fetch_top_funds.py 163417      # YTD top-10 funds sync rate
.venv/bin/python scripts/fetch_gates.py 163417          # subscription gates (limits / reopen / house self-buy)
.venv/bin/python scripts/analyze_fund.py 163417         # behavior analysis: autopsy/scoring/forced-trim detection
.venv/bin/python scripts/analyze_house.py 163417        # divergence / market consensus
.venv/bin/python scripts/analyze_gates.py 163417        # gates × market percentile × 12-month autopsy
.venv/bin/python scripts/analyze_addons.py 163417       # year-end chase / clone overlap / open-gate cohorts / fame-machine / K-line events
.venv/bin/python scripts/build_fund_report.py 163417    # build single-file report assets/fund-<code>.html

Using It in Cursor / Claude Code / Codex

Drop the repo on your Agent and say:

Read skills/fund-manager-alpha/SKILL.md and analyze fund 163417 following its workflow. Reference scripts are under scripts/.

The scripts are a reference implementation from one real run. Windows, industries, fees, style index, sibling-fund controls, and fund-level K-line events must be recomputed for the selected fund — no handwritten 163417 lookup tables, and no copying Heyi's curated timeline onto another code. Announcement full-text and mandate stay with the Agent; fame-machine items that can be screened from this fund's filings are automatic, the rest stay "not obtained". Follow the three-tier data model in skills/fund-manager-alpha/SKILL.md.


Methodology Hard Rules

All 18 rules live in SKILL.md. The most important ones:

  1. Intuition is the supreme principle — every raw number needs a subject and a definition; regression coefficients belong in small print only
  2. Tenure segmentation comes first — mixing a predecessor's record into the current manager's evaluation voids the analysis
  3. Never sell Beta as Alpha — style freebies must be stripped before crediting skill
  4. "Sold too early" only counts full active exits — partial trims keep most of the position; forced trims (10% cap / redemptions) are not decisions and are excluded
  5. Every failed independent call must be recorded — cherry-picking winners kills the report's credibility
  6. No fake precision — if it can't be computed, write "not obtained"; never invent numbers
  7. Insufficient evidence gets a U (Unverified) — treating "couldn't verify" as "bad manager" is friendly fire

Every design decision is documented in DESIGN.md.

Data Sources

All free, zero API keys:

Data Source
NAV / AUM / subscriptions & redemptions / holders / manager profile / platform rating Eastmoney (fund.eastmoney.com)
Quarterly holdings / fund rankings Eastmoney, via akshare
Market-wide holdings cross-section CNINFO, via akshare
A-share weekly K-lines (forward-adjusted) baostock
HK weekly K-lines Sina Finance, via akshare
Subscription gates (limits / reopenings / house self-buy) Eastmoney fund announcements (JJGG)
Other products under the same manager (clone overlap) Eastmoney via akshare
Charting library TradingView Lightweight Charts (Apache-2.0)

All raw data is cached under .cache/ for evidence (not committed), with API name + parameters and fetch time recorded; no number enters the report without a traceable source. The report itself ends with a full data attribution table.

Changelog

Newest first. Only changes a user would notice.

2026-09-03 · Preview-shell and sibling/collision filters

  • Open the local HTML in a real browser. Do not preview gist files via htmlpreview.github.io — scripts often fail there; score/progress bars fall back without JS, and iframe previews skip animations that hide content.
  • Market-collision reverse lookup uses the latest top-10 A-shares, not the full semi-annual book.
  • Sibling controls drop bond/index products and exclude the lead manager's other self-managed funds (K-line peer counts match House Consensus).
  • K-line market events auto-mark CSI 300 single-day moves ≥5%. Manager photos are validated as real images.

2026-08-14 · Fully automatic per selected fund

  • Industry, fees, K-line window, house/market years, gate style index, and sibling-fund controls all follow the fund you picked. No more handwritten 163417 industry map or "tech growth" copy.
  • YTD top-10 sync now reads this fund's holdings (does not need analysis.json on first run). Market-collision and holder report dates follow the latest portfolio quarter.
  • Fund-level K-line events (kind=fund) are generated from this fund (inception, manager changes, AUM, drawdown, gates). Heyi's handwritten timeline is not the default; industry/macro extras stay only in that fund's own cache.
  • Fame-machine nine-item check now screens this fund's tenure, JJGG titles, strategy blurb vs industry board, and product list. Missing sources stay "not obtained", never "does not exist".
  • Scripts require a 6-digit fund code (no silent fallback to 163417). Demo masking defaults to 163417 only; FUND_MASK=0 turns it off, FUND_MASK=1 forces it. Missing masked photos are pixelated automatically.

2026-08-13 · Year-end chase / clone overlap / open-gate cohorts

  • Three new comparison cards, none of them enter the behavior score (hard rule 18).
  • Year-end ranking chase: Q4 vs other quarters on top-10 concentration, single-name cap, turnover, and quarterly return. Q1/Q3 only disclose the top 10 — never compare name-count. Launch year is dropped as a build-up year. The fame-machine checklist item is no longer "not checked".
  • Clone overlap: latest full-holdings top 10 vs his other active-equity products. Demo fund shares 9/10 with Xingquan Social Value and 6/10 with Xingquan Herun — same book, different ticker.
  • Open-gate cohorts + holder turnover: net share change over the next 1–2 reporting dates is the cohort evidence; net outflow is not "nobody bought" and not "opened the door to raise cash". During the lockup, a shift in institutional % with flat shares is secondary-market turnover. Money that rebuilt AUM after unlock is autopsied from the later peak, 12 months out.
  • Demo fund Xingquan Heyi (163417) re-run: no year-end chase; clone overlap confirmed; the door opened into net redemptions, and the later rebuild cohort was down over the next 12 months.

2026-08-13 · Subscription-gate timeline

  • New module: subscription-gate timeline. Pins purchase limits / large-order pauses / reopenings / early close of the offering onto CSI 300 and the fund's style index, then autopsies the next 12 months (same window as trade autopsies).
  • False gates are stripped first: holiday pauses of both subscriptions and redemptions, firm-wide same-day limits (checked against sibling funds), forced limits near the 10% single-name cap, and bear-market limits while shares are shrinking. Contractual unlock after a lockup is not a discretionary open.
  • Comparison card, not part of the behavior score. Timeline overlap is a confirmed fact; "he has a conscience" is at most a strong inference (hard rule 17).
  • Company proprietary-capital self-buys are overlaid when disclosed; manager personal self-buys are marked "not obtained" if no public feed exists. Employee holdings ≠ manager self-buy.
  • Demo fund Xingquan Heyi (163417) re-run: he closed the gate at highs and also reopened at highs. Live demo updated.

2026-08-12 · Public demo

  • GitHub Pages live demo; demo build masks the manager's name and photo.
  • Multi-agent entry points: run.py, slash commands, .cursor/skills / .agents/skills, English README.
  • Report modules in: trade autopsies, independence trial, copy-trade index, fame-machine check, market-wide collision board.

Disclaimer

⚠️ For learning and research only. Everything is based on publicly disclosed data and does not constitute investment advice. Past fund performance does not predict future results; each verdict is valid only until the next holdings disclosure.

Explore related projects

Loading…