ai-berkshire
CLAUDE.md17k starsChanged 5 months agoMITView on GitHub
基于 Claude Code 的价值投资研究 Skill 合集。四大师框架:巴菲特、芒格、段永平、李录。 GitHub: xbtlin/ai-berkshire 所有报告按*公司名*建文件夹,公司相关的所有报告放在对应文件夹内: - 市值必须手算校验:股价 × 总股本,与报告市值对比 - 货币单位要明确(港币/人民币/美元/新台币),防止混淆 - PE/ROE等指标用 tools/financial_rigor.py 精确计算 - 台股数据用 tools/twstock_data.py(FinMind)获取,并按 skills/financial-data.md 台股章节交叉验证 - 报告写完后主动询问是否推送到GitHub - 推送前必须跑 python3 tools/reports_index.py 刷新索引,否则 CI 的索引校验会失败 - 新报告文件名带 -YYYYMMDD 后缀、正文首行写 # 标题,索引即可自动识别; 需要覆盖时在文件头加 YAML front-matter(title / date / type), 规范见 reports/_index/README.md - 新建的*专题目录或筛选池目录*要登记进 reports/_index/config.json,否则会被当成公司
- Commits and pushes
Trending
Less talk lately.about the whole repository
Who's talking about xbtlin/ai-berkshire
- @alexiskirke.bsky.social“I discovered this standout GitHub repo about AI-powered value investing using adversarial multi-agent …”Bluesky · Jul 4, 2026 · 3 likes
- A Hacker News story“AI Berkshire”Hacker News · Jun 28, 2026 · 2 points
- @dailygithubtrends.bsky.social“今日のGitHubトレンド xbtlin/ai-berkshire AI Berkshireは、バフェットやマンガーら価値投資の大家の思考法をシステム化した、Claude …”Bluesky · Jun 30, 2026 · 1 likes
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 xbtlin / ai-berkshire ⭐ 1,532 (+201) 🗒 Python AI 时代的伯克希尔:基于 Claude …”Bluesky · Jun 25, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.xbtlin.ai-berkshire: init at 1.0.0”GitHub · Oct 4, 2026
The biggest 5 of 30 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 30
Talked about on GitHub, Bluesky and Hacker News (30 times).
On GitHub · 25
- Oct 4, 2026agent-skills.github.xbtlin.ai-berkshire: init at 1.0.0 — sudosubin/agents.nix0 reactions
- Aug 31, 2026candidate: wechat-article — BigPengSays/awesome-creator-skills0 reactions
- Aug 30, 2026candidate: wechat-article — BigPengSays/awesome-creator-skills0 reactions
- Aug 29, 2026candidate: wechat-article — BigPengSays/awesome-creator-skills0 reactions
- Jul 26, 2026[ai-berkshire study] Add a pre-investment research gate before deep analysis or new exposure — KCNyu/clawock0 reactions
20 more on GitHub
- Jul 26, 2026[ai-berkshire study] Build a durable thesis registry and evidence-only drift engine — KCNyu/clawock0 reactions
- Jul 26, 2026[ai-berkshire study] Add a primary-source earnings and management accountability ledger — KCNyu/clawock0 reactions
- Jul 26, 2026[ai-berkshire study] Tighten repository description and expose the existing research surfaces — KCNyu/clawock0 reactions
- Jul 26, 2026[ai-berkshire study] Add a fail-closed numeric provenance gate for research artifacts — KCNyu/clawock0 reactions
- Jul 8, 2026PRD: 보수적 한국 주식 분석 원격 MCP 서버 전면 재작성 (Python FastMCP + Railway) — Mrbaeksang/korea-stock-analyzer-mcp0 reactions · 1 comment
- Jul 7, 2026新增 Institution Tracker 并吸收 ai-berkshire 的投研流程优点 — racheleleanorzhang-Q/Rachel-Capital0 reactions
- Jul 4, 2026Add AI Berkshire as governed financial research skill and decision-discipline adapter — aa-os/aaos-public0 reactions · 2 comments
- Jul 3, 2026docs: refresh 2026-W26 skills entries — LLMQuant/awesome-trading-agents0 reactions
- Jul 1, 2026GitHub Trending Top 10 - 2026-07-01 — Archerpiggy/trending-top100 reactions
- Jun 30, 2026GitHub Trending Top 10 - 2026-06-30 — Archerpiggy/trending-top100 reactions
- Jun 29, 2026GitHub Trending Top 10 - 2026-06-29 — Archerpiggy/trending-top100 reactions
- Jun 29, 2026🔥 GitHub Trending AI 早报 · 2026-06-29 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jun 28, 2026🔥 GitHub Trending AI 晚报 · 2026-06-28 · Top 5 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jun 28, 2026GitHub Trending Top 10 - 2026-06-28 — Archerpiggy/trending-top100 reactions
- Jun 27, 2026GitHub Trending Top 10 - 2026-06-27 — Archerpiggy/trending-top100 reactions
- Jun 26, 2026ai-berkshire: Claude Code 기반 다중 에이전트 투자 연구 프레임워크 — roomedia/ax-trend0 reactions · 1 comment
- Jun 26, 2026🌐 Global Tech Briefing - 2026-06-26 — AtomChen0425/Global_Trends0 reactions · 1 comment
- Jun 26, 2026GitHub Trending Top 10 - 2026-06-26 — Archerpiggy/trending-top100 reactions
- Jun 24, 2026[2026-06-23] Steam Machine launches today — jiacai2050/mofish0 reactions
- Jun 23, 2026[2026-06-24 01:24:56] - V2EX 共 10 条热门话题 — R2DM/v2ex_mofish0 reactions
On Bluesky · 4
- Jul 4, 2026I discovered this standout GitHub repo about AI-powered value investing using adversarial multi-agent analysis and proven methodologies.… — @alexiskirke.bsky.social3 likes and reposts
- Jun 30, 2026今日のGitHubトレンド xbtlin/ai-berkshire AI Berkshireは、バフェットやマンガーら価値投資の大家の思考法をシステム化した、Claude CodeやCodex向けの投資研究フレームワークです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 25, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 xbtlin / ai-berkshire ⭐ 1,532 (+201) 🗒 Python AI 时代的伯克希尔:基于 Claude Code… — @github-trending.bsky.social1 likes and repost · 1 reply
- Jun 29, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 xbtlin / ai-berkshire ⭐ 6,312 (+1,445) 🗒 Python AI 时代的伯克希尔:基于 Claude Code / Codex… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Jun 28, 2026AI Berkshire2 points
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Files
AI Berkshire — 项目指令
项目概述
基于 Claude Code 的价值投资研究 Skill 合集。四大师框架:巴菲特、芒格、段永平、李录。 GitHub: xbtlin/ai-berkshire
项目结构
skills/ — 投研 Skill 定义(.md),复制到 ~/.claude/commands/ 使用
tools/ — 辅助工具(financial_rigor.py 精确计算、twstock_data.py 台股FinMind取数)
reports/ — 投资研究报告输出
assets/ — 图片等静态资源报告目录结构
所有报告按公司名建文件夹,公司相关的所有报告放在对应文件夹内:
reports/
├── AI产业研究/ — AI产业链全景研究(置顶)
│ ├── AI五层蛋糕-产业全景研究-20260605.md
│ └── AI五层蛋糕-公众号-20260605.md
├── 腾讯/ — 腾讯所有研究报告
│ ├── 腾讯-research-20260408.md
│ ├── 腾讯-earnings-2025Q4.md
│ ├── 腾讯-management-20260409.md
│ └── 腾讯-thesis.md
├── 拼多多/ — 拼多多所有研究报告
├── 泡泡玛特/ — 泡泡玛特所有研究报告
├── 核电-industry-20260409.md — 行业报告放根目录
├── AI算力-funnel-20260509.md — 漏斗筛选报告放根目录
├── AI-轮动判断-20260509.md — 主题级综合判断报告放根目录
├── portfolio-latest.md — 组合报告放根目录
└── 多公司对比-checklist-20260408.md — 多公司报告放根目录报告命名规范
| Skill | 文件命名格式 | 示例 |
| /investment-team | {公司名}/ 目录内含4个视角+最终报告 | reports/拼多多/最终报告.md |
| /investment-research | {公司名}-research-{YYYYMMDD}.md | reports/腾讯/腾讯-research-20260408.md |
| /investment-checklist | {公司名}-checklist-{YYYYMMDD}.md | reports/腾讯/腾讯-checklist-20260408.md |
| /industry-research | {行业名}-industry-{YYYYMMDD}.md(根目录) | reports/核电-industry-20260409.md |
| /industry-funnel | {行业名}-funnel-{YYYYMMDD}.md(根目录) | reports/AI算力-funnel-20260509.md |
| /private-company-research | {公司名}-private-{YYYYMMDD}.md | reports/字节跳动/字节跳动-private-20260408.md |
| /earnings-review | {公司名}-earnings-{期间}.md | reports/腾讯/腾讯-earnings-2025Q4.md |
| /earnings-team | {公司名}/ 目录内含4个大师视角+研究底稿+公众号文章+读者评审 | reports/腾讯/腾讯-earnings-2025Q4.md(公众号定稿) |
| /thesis-tracker | {公司名}-thesis.md(长期维护) | reports/腾讯/腾讯-thesis.md |
| /portfolio-review | portfolio-latest.md(根目录,持续更新) | reports/portfolio-latest.md |
| /management-deep-dive | {公司名}-management-{YYYYMMDD}.md | reports/腾讯/腾讯-management-20260409.md |
/investment-team 文件结构
reports/{公司名}/
├── README.md — 研究框架概览+核心结论
├── 01-商业模式分析-段永平视角.md
├── 02-财务估值分析-巴菲特视角.md
├── 03-行业竞争分析-芒格视角.md
├── 04-风险管理层评估-李录视角.md
└── 最终报告.md — Team Lead 综合报告投研分析核心原则(最高优先级)
- 客观、客观、客观——所有投研分析必须基于事实和数据,严禁主观臆断
- 严格区分"事实"与"观点":事实用数据支撑,观点必须明确标注为"观点"或"推测"
- 不预设立场:不预设看多或看空,先摆数据、再推逻辑、最后得结论。结论必须从数据中自然推出
- 禁止使用"我认为"、"我觉得"、"显然"等主观表述,改用"数据显示"、"证据表明"、"根据XX来源"
- 呈现正反两面:每个核心判断都必须附带反面论据("但另一方面..."),让读者自己权衡
- 对不确定的事情诚实说"不确定"或"数据不足",不要用推测填充确定性
- 所有skill(investment-team、investment-research、earnings-review等)在执行时都必须遵守以上原则
报告语言与风格
- 所有报告使用中文
- 风格:直接、犀利、不说废话
- 数据必须标注来源,关键数据至少2个来源交叉验证
- 估计值必须注明"估计"
- 评分使用★符号(★1-5),不含半星
- 穿插巴菲特/芒格/段永平/李录的语录点评
GitHub 操作
- 本地克隆路径:
~/ai-berkshire/ - 远程仓库:
https://github.com/xbtlin/ai-berkshire.git - 推送前先
git pull --rebase origin main(远程经常有新提交) - commit message 用中文,描述清楚改了什么
- 不要推送中间过程文件(如 data_collection.md),只推最终报告
常用命令
# 推送报告到GitHub
cd ~/ai-berkshire
python3 tools/reports_index.py # 先刷新研究索引(必做)
git add reports/xxx.md reports/README.md reports/index.json README.md
git commit -m "添加xxx报告"
git pull --rebase origin main
git push origin main# 只检查索引是否过期,不写盘(CI 也跑这条)
python3 tools/reports_index.py --check注意事项
- 市值必须手算校验:股价 × 总股本,与报告市值对比
- 货币单位要明确(港币/人民币/美元/新台币),防止混淆
- PE/ROE等指标用 tools/financial_rigor.py 精确计算
- 台股数据用 tools/twstock_data.py(FinMind)获取,并按 skills/financial-data.md 台股章节交叉验证
- 报告写完后主动询问是否推送到GitHub
- 推送前必须跑
python3 tools/reports_index.py刷新索引,否则 CI 的索引校验会失败 - 新报告文件名带
-YYYYMMDD后缀、正文首行写# 标题,索引即可自动识别; 需要覆盖时在文件头加 YAML front-matter(title/date/type), 规范见reports/_index/README.md - 新建的专题目录或筛选池目录要登记进
reports/_index/config.json,否则会被当成公司
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

