Agent skill

Value Investing Research Framework

by xbtlin in xbtlin/ai-berkshire

Runs a seven-module research pass on a named company using four value investors' methods, with two-source data checks and a warning step for AI research bias.

MITAuto-check passedBusiness, Finance & HR

SKILL.md written in Chinese; this summary is our English description.

Install Value Investing Research Framework

skills CLI
$ npx skills add xbtlin/ai-berkshire --skill investment-research -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xbtlin/ai-berkshire investment-research --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xbtlin/ai-berkshire.git skills-src && mkdir -p .claude/skills && cp -r skills-src/codex-skills/investment-research .claude/skills/investment-research && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
investment-research
GitHub stars
17k
Token cost
~2.3k tokens
SKILL.md length
640 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
MIT

At a glance

Runs a seven-module research pass on a named company using four value investors' methods, with two-source data checks and a warning step for AI research bias.

  • Works in 4 steps: 客户是谁?为什么付钱?有没有替代选择? → 复购靠什么驱动?是习惯、锁定、还是持续创造新价值? → 竞争对手拿100亿能复制这门生意吗? → …
  • Researching a listed company from a long-term value-investing angle
  • SKILL.md covers Codex adapter note, 研究框架, 输出要求 and 数据抽检(准出流程)
  • Calls python3

What it does

This skill carries out a structured research pass on a company you name, following the methods of four value investors: Warren Buffett, Charlie Munger, Duan Yongping and Li Lu. The work is split into seven modules run in order. Before any research, the agent grades how much public information exists on the company as abundant, moderate or scarce, and records the typical trap for each grade, such as output that simply echoes market consensus or gaps filled with plausible guesses.

For thinly covered companies it falls back on first-principles questions: who the customer is and why they pay, what drives repeat purchases, whether a rival with a large budget could copy the business, and what key decisions management has made. A short self-check list guards against mistaking the amount of material for the quality of the business. The data step requires every financial figure to come from two independent sources, flags gaps above 1%, names preferred sources for US, Hong Kong and mainland China listings, and sends a background agent to collect revenue mix, five-year financials, competition, moat, technology and management background.

The SKILL.md is mostly in Chinese and opens with a note for Codex users: confirm today's date with the `date` command and state the data cutoff in the report header, use the repository's `tools/` scripts such as `financial_rigor.py` for exact arithmetic, and label uncertainty and source gaps. The available text ends partway through the data step, so the later modules are not described here.

When your agent uses it

  • Researching a listed company from a long-term value-investing angle
  • Cross-checking a company's financials against two independent sources
  • Judging how far to trust AI-generated research on a thinly covered stock

Example prompts

  • “Do a value-investing research pass on Costco and check the financials against two sources.”
  • “Grade how much public information exists on this recently listed company before analyzing it.”
  • “Research this Hong Kong-listed company with the four-investor framework and flag where sources differ by more than one percent.”

Requirements

  • Python 3 and the repository's `tools/` scripts such as `financial_rigor.py`
  • Web access to public financial data sites

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 客户是谁?为什么付钱?有没有替代选择?
  2. 复购靠什么驱动?是习惯、锁定、还是持续创造新价值?
  3. 竞争对手拿100亿能复制这门生意吗?
  4. 管理层做过什么关键决策?这些决策反映了什么判断力和价值观?

What it can do on your machine

Read from SKILL.md and the folder at commit a221a20. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Value Investing Research Framework loads about 2.3k tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 640 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from xbtlin/ai-berkshire at commit a221a20, republished under its MIT licence (© xbtlin). 640 words, ~2,301 tokens.

Download SKILL.mdSave it as .claude/skills/investment-research/SKILL.md (or your agent's skills folder).
name
investment-research
description
AI Berkshire skill: 投资研究:巴菲特-芒格-段永平-李录 四大师综合分析框架. Source: skills/investment-research.md.

Codex adapter note

This skill is generated from skills/investment-research.md so Claude Code and Codex users share one canonical workflow.

  • Treat $ARGUMENTS as the user's request in the current Codex thread.
  • When the source mentions Claude-only surfaces such as Task, Agent, WebSearch, Bash, Read, or Write, use the closest Codex capability available in this session: subagents when available, web search when needed, shell commands for local tools, and normal file edits for workspace files.
  • Use shared project tools from tools/ in this repository. Prefer running commands from the repository root with paths like python3 tools/financial_rigor.py ...; if the current thread starts outside the repo, locate the actual checkout path first instead of assuming a fixed home-directory path.
  • Before starting research, run the date command to confirm today's date; treat it as the baseline for "latest" data and state the data cutoff date in the report header. Never assume the current date from training data.
  • Preserve the research quality rules from AGENTS.md: cross-check financial data, use exact arithmetic tools for valuation/math, and clearly label uncertainty and source gaps.

投资研究:巴菲特-芒格-段永平-李录 四大师综合分析框架

对 $ARGUMENTS 进行系统化投资研究分析。

研究框架

基于巴菲特、芒格、段永平、李录四位投资大师的方法论,按以下七个模块顺序执行研究:

前置步骤:AI研究偏见自觉(必须执行)

在开始研究前,先评估该公司的"AI可研究性",识别潜在的数据偏见:

信息丰富度评级:

等级特征AI研究陷阱应对策略
A级(信息充裕)上市多年、券商覆盖多、媒体报道密集共识过强,AI输出趋同于市场定价,alpha有限重点做反面检验:聪明人为什么不买?被忽略的风险是什么?
B级(信息适中)上市1-3年、覆盖有限、部分数据需推算AI可能用"合理推测"填补空白,看起来完整实则虚假确定性每个推算数据标注置信度,区分"有据推算"和"凭空填充"
C级(信息稀缺)刚上市/冷门股/新兴市场、几乎无覆盖AI会因资料不足而过度保守,误判为"看不清=不好"用第一性原理提问(见下方),从有限信息中提取商业本质

C级公司的第一性原理研究法: 当公开资料不足时,不要试图拼凑出"看起来完整"的报告,而是聚焦以下底层问题:

  1. 客户是谁?为什么付钱?有没有替代选择?
  2. 复购靠什么驱动?是习惯、锁定、还是持续创造新价值?
  3. 竞争对手拿100亿能复制这门生意吗?
  4. 管理层做过什么关键决策?这些决策反映了什么判断力和价值观?

偏见自查清单(研究全程保持警惕):

  • 我的"确定性"感受是来自生意本质,还是来自资料数量?
  • 如果把这家公司的资料量减少一半,我的结论会变吗?
  • AI输出的分析是否与市场共识高度雷同?如果是,我的信息优势在哪?
  • 是否存在"公开资料很少但生意本质极好"的可能性被低估了?

将信息丰富度评级结果写入报告开头,并在最终结论中注明"AI研究置信度"与"实际投资确定性"的区别。

第一步:数据收集

数据源规范:参见 skills/financial-data.md。所有财务数据必须来自两个独立来源,误差>1%须标记。

  • 美股:macrotrends(主)+ stockanalysis(副)
  • 港股:aastocks(主)+ macrotrends ADR(副)
  • A股:东方财富(主)+ 巨潮资讯(副)

使用 Task 工具启动后台 Agent,从网络收集以下数据:

  1. 收入结构:最近财年及近4季度分部收入、增速、毛利率
  2. 财务指标:近5年收入、净利润、毛利率、经营利润率、自由现金流、现金储备
  3. 竞争格局:市场份额、主要竞争对手对比
  4. 商业模式与护城河:核心竞争优势来源
  5. 技术能力:核心技术栈、研发投入
  6. 管理层:创始人/CEO履历、持股比例、关键决策记录
  7. 行业前景:TAM(总可寻址市场)、增长预测
  8. 风险因素:地缘政治、监管、供应链等
  9. 当前估值:市值、PE、PS、PEG、EV/Revenue
  10. 多空双方核心论点
数据交叉验证(必须执行,使用金融严谨性工具)

数据收集完成后,必须调用 tools/financial_rigor.py 对关键数据进行程序化验证,杜绝LLM心算误差。

必须验证的数据点:

  • 总股本(从交易所、Yahoo Finance、StockAnalysis 等至少2个源确认)
  • 当前股价和市值(手动计算 股价×总股本 并与报告市值对比,防止单位错误)
  • 最近财年收入和净利润(从公司年报+至少1个第三方源确认)
  • 现金储备和净现金(现金+短期投资-总债务,注意口径差异)
  • 管理层持股比例(区分经济权益和投票权,注意AB股结构)

强制验证步骤(使用Bash调用工具):

Step 1 — 市值验算(精确十进制,非浮点):

bash
python3 tools/financial_rigor.py verify-market-cap \
  --price {股价} --shares {总股本} --reported {报告市值} --currency {币种}

Step 2 — 关键数据多源交叉验证:

bash
python3 tools/financial_rigor.py cross-validate \
  --field {字段名} --values '{"来源1": 数值, "来源2": 数值}' --unit {单位}

对收入、净利润、现金储备分别执行。

Step 3 — 估值指标精确验算(PE/PB/ROE/FCF Yield 等):

bash
python3 tools/financial_rigor.py verify-valuation \
  --price {股价} --eps {EPS} --bvps {每股净资产} --fcf-per-share {每股FCF} --dividend {每股股息}

验证规则:

  1. 每个关键数据点至少2个独立来源
  2. 发现来源间有差异时,优先采用公司年报/交易所数据,并注明差异原因
  3. 所有涉及计算的数据必须通过工具验算,禁止LLM心算
  4. 工具输出结果直接嵌入报告附录"关键数据交叉验证记录"
  5. 如果工具报告 ❌ 偏差过大,必须排查原因后才能继续分析

常见错误防范:

  • 市值单位:港币亿 vs 人民币亿 vs 美元亿,容易漏写/多写一个零
  • FCF口径:不同来源对资本支出的定义可能不同(是否含租赁、收购等)
  • 债务口径:是否包含经营租赁负债
  • 持股比例:AB股公司的经济权益 ≠ 投票权
第二步:生意本质分析 — 段永平"对的生意"

分析要点:

  • 用一句话定义这门生意的本质
  • 收入结构拆解(图表)
  • 5年盈利能力趋势(图表)
  • 商业模式画布:一次性销售 vs 订阅/复购?硬件 vs 软件 vs 平台?
  • 生态粘性/客户锁定强度
  • 毛利率水平与同行对比,解释为什么高/低
  • 经营杠杆分析
  • 段永平式追问:这门生意好在哪?如果只能用一句话描述,是什么?
第三步:护城河评估 — 巴菲特"经济护城河"

逐一验证五类护城河:

护城河类型验证方法
品牌/定价权是否能在不损失销量的情况下提价?
转换成本客户迁移到竞品的成本有多高?
网络效应用户越多产品越好吗?
规模效应规模带来的成本优势有多大?
技术/专利壁垒技术领先几年?能否被复制?

分析护城河趋势:过去5年变宽还是变窄?未来5年预判。

巴菲特式追问:10年后这条护城河还在吗?什么能摧毁它?

第四步:逆向思考与风险清单 — 芒格"反过来想"
  • 列出"这家公司可能失败的所有路径"(表格:路径/概率/影响程度)
  • 历史类比:找到历史上处于相似位置的公司,结局如何?
  • 跨学科分析:用网络效应理论、技术采纳曲线、竞争博弈等模型交叉验证
  • 偏误自查:叙事偏差、锚定效应、幸存者偏差
  • 收集空方核心论点

芒格式追问:我最可能在哪里犯错?聪明人为什么会不买/做空这家公司?

第五步:管理层评估 — 段永平"对的人" + 巴菲特"管理层诚信"
  • CEO/创始人关键决策复盘(表格:时间/决策/结果/评分)
  • 资本配置能力:研发回报率、并购成功率、回购时机
  • 股东利益一致性:管理层持股、薪酬结构、减持记录
  • 组织能力:团队稳定性、关键人才风险
  • 企业文化特征

段永平式追问:如果CEO退休,这家公司还能保持竞争力吗?

第六步:行业与文明趋势 — 李录"文明演进框架"
  • 判断所在行业是否处于"文明级范式转移"
  • 历史技术革命类比(蒸汽机/电力/互联网/AI)
  • TAM增长曲线与天花板分析
  • 公司在产业价值链中的位置
  • 技术路线风险
  • 客户/供应商集中度分析

李录式追问:站在20年后回看,这家公司是"这个时代的标准石油"还是"昙花一现的3Com"?

第七步:估值与安全边际 — 巴菲特"内在价值" + 段永平"对的价格"
  • 当前市场定价(关键估值指标表格)—— 必须通过工具验算
  • 反向DCF:当前股价隐含了什么增长预期?
  • 三情景估值 —— 必须通过工具精确计算,禁止心算:
bash
python3 tools/financial_rigor.py three-scenario \
  --price {股价} --eps {EPS} --shares {总股本亿} \
  --growth {乐观增速} {中性增速} {悲观增速} \
  --pe {乐观PE} {中性PE} {悲观PE} --years 3 --currency {币种}
  • 与自身历史估值对比
  • 与同行估值对比
Show full SKILL.md (270 more words)Show less
长期折现估值(十年尺度,必须执行)

三年三情景回答"贵不贵",十年折现回答"值不值得重仓"。凡是给出十年期 IRR 或终值倍数的研究,必须走这套流程,用 tools/terminal_value.py。

终值倍数只有一个合法来源——永续增长模型,不许用同业类比:

$$PE_{终值} = \frac{1 - g/ROIC}{r - g}$$

"帝亚吉欧 13 倍所以茅台给 16 倍"是循环论证:用别人今天的价格,证明我假设的价格合理。市场今天整体贵,类比法就把这份贵原封不动搬到十年后。

Step 1 — 定三个输入,逐个写出理由(这一步全是判断,不是计算,必须在报告里交代):

输入怎么定常见错误
r 资本成本无风险利率 + β × ERP。币种必须与现金流一致:人民币口径 6%–9%(主用 8%),美元/港元口径 9%–11.5%(主用 10%)跟着国债利率跑。中国国债 1.70% 折出来的 PE 会到 50 倍以上,那不是估值是放大偏见
ROIC 稳态增量资本回报夹在存量 ROIC(含不上表的无形护城河,偏高)与派息反解的隐含增量 ROIC(假设 capex 回报为零,偏低)之间直接用存量 ROIC。等于假设新投的每块钱都能复制建立微信时的回报
g 永续增速不是未来十年增速(那已在终值利润里),是终值年之后到永远。硬天花板是长期名义 GDP:人民币口径基准档 ≤2%,美元口径 ≤4%用美元的 g 配人民币的 r。3% 名义增长在美国是 0.5% 实际(保守),在中国是 2% 实际(激进)

g 不随 r 变——g 是对终值年之后经济的判断,r 是你要求的回报,两件独立的事。做敏感性时只动 r。

Step 2 — 三条硬约束准出检查(不通过不许把估值写进报告):

bash
python3 tools/terminal_value.py audit \
  --currency {CNY|USD|HKD} --r {资本成本} --roic {稳态ROIC} \
  --g {悲观g},{基准g},{乐观g} --rf {无风险利率} --beta 1.0 \
  --discrete-risks "{风险名}:{情景|尾部档|概率|未建模},..."

三条检查的内容与打回条件:

#检查打回条件
C1r 与 g 必须同币种r 落在别的币种区间、或基准档 g 超过本币上限。工具会直接指出"这是 USD 的量级——r 用了本币而 g 用了外币"
C2分母 r−g ≥ 5 个百分点任一档不足 5pct。分母越窄 g 动一点点估值就翻天;分母 ≤0 直接判模型失效。确实要做上行/下行情景时加 --upside-only 显式声明,但报告里必须写明"这是情景不是估值"
C3离散风险不得进 r 或 β任一风险归属写成 折现率/r/beta 一律打回。退市、VIE 失效、地缘断供、监管重击必须归 情景 或 尾部档。β 偏离 1.0 必须给 --beta-justification

C3 为什么是硬的:抬 r 三个百分点,对第 10 年现金流的惩罚是第 1 年的 2.6 倍;而退市风险是大致均匀甚至前置的年度危害率。用折现率处理离散风险,会系统性地把风险的时间分布搞反。 正确做法是单列一个尾部情景档并给它一个概率。

C1/C2/C3 的完整论证见 reports/7公司10年投资价值横评-确定性调整后回报-20260814.md 第 3.4–3.6 节——三条都是那份报告实际踩过的坑。

Step 3 — 出数(准出后才能跑):

bash
# 单点退出 PE,打印完整算式(留存率/分子/分母全部展开,便于报告引用)
python3 tools/terminal_value.py pe --roic {ROIC} --g {g} --r {r}

# 从零算 IRR
python3 tools/terminal_value.py irr \
  --profit {终值年利润} --mcap {今日市值} --pe {退出PE} \
  --years 10 --payout {股息率-稀释率}

多公司横评时把参数写成 JSON 传 --config,再用 table / sweep / check。

Step 4 — 报告里必须写出的四件事:

  1. r 取值、币种、以及配对的 g 上限。不写明 r 就报 IRR,报的是自己的偏好。
  2. 至少两档 r 的敏感性,以及排序在各档下是否稳定。绝对数字受 r 支配,排序才是稳健结论。
  3. 每一档的 r−g 分母宽度,凡低于 5pct 的必须标注"仅作情景参考"。
  4. 未建模的离散风险清单(audit 里标 未建模 的),写进"限制"章节。

巴菲特式追问:这个 r 如果错 2 个百分点,我的结论会翻转吗?如果会,我的结论买的是公司还是折现率?

段永平式追问:如果股市明天关闭5年,你愿意以这个价格持有吗?

第八步:综合决策备忘录

汇总表格:

维度结论信心度
生意质量(段永平)
护城河(巴菲特)
管理层(段永平+巴菲特)
最大风险(芒格)
文明趋势(李录)
估值(巴菲特+段永平)

最终决策表格:

策略建议
空仓者
持仓者
卖出信号
加仓信号

四位大师的模拟点评(用引用格式)。

输出要求

  1. 所有分析必须有数据支撑,附数据来源
  2. 使用 Markdown 表格呈现关键数据
  3. 每个模块末尾必须有对应大师的"追问"
  4. 最终将完整报告写入 ~/[公司名]投资研究报告.md
  5. 结论要明确,不回避给出买入/观望/回避的建议
  6. 估值部分必须给出具体的价格区间
  7. 报告开头必须包含"信息丰富度评级"(A/B/C)和"AI研究局限性声明"
  8. 报告结尾必须区分"AI分析置信度"与"投资确定性"——前者取决于资料量,后者取决于生意本质。明确告知读者:本报告的哪些结论基于充分数据,哪些基于有限信息的推理
  9. 如果公司属于C级(信息稀缺),报告末尾必须列出"需要一手验证的问题清单"——建议读者通过田野调查、产品体验、供应链访谈等方式补充AI的盲区

数据抽检(准出流程)

报告写入文件后,必须执行数据抽检,通过后方可发布:

Step 1 — 提取抽检清单(15%随机抽样):

bash
python3 tools/report_audit.py extract \
  --report <报告文件路径>

输出 JSON 模板,每项含 fetched_value(待填)。

Step 2 — 取数核验: 对清单中每个数据点,按 skills/financial-data.md 规范从可靠信源取数 (美股:macrotrends+stockanalysis;港股:aastocks+macrotrends;A股:东方财富+巨潮资讯), 填入 fetched_value / fetched_source / fetched_value2 / fetched_source2。

Step 3 — 输出判决:

bash
python3 tools/report_audit.py verdict \
  --results '<填好的JSON>' \
  --report <报告文件名>
  • 【准出】:所有抽检点偏差 ≤ 1% → 报告可发布
  • 【打回】:任意点偏差 > 1% → 修正对应数据后重新抽检,直到准出

Step 4 — 估值口径复检(含十年折现估值的报告必须执行):

如果报告里出现了十年期 IRR 或终值倍数,把最终定稿用的参数再跑一遍 audit,确认写进报告的数字与准出时的一致:

bash
python3 tools/terminal_value.py audit \
  --currency {币种} --r {r} --roic {ROIC} --g {三档g} --rf {无风险利率} \
  --beta {β} --discrete-risks "{风险归属清单}"
  • 【准出】(退出码 0)→ 报告可发布
  • 【打回】(退出码 1)→ 修正后重跑,直到准出

这一步不能跳过的原因:第七步的 audit 是在算数之前做的,而写报告的过程中经常会回头调 g 或 r。准出前的最后一次 audit 才是对报告负责的那一次。

© xbtlin, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in codex-skills/investment-research of xbtlin/ai-berkshire.

Open the folder on GitHubat commit a221a20

Compare with similar skills

Value Investing Research Framework next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Value Investing Research Framework compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Value Investing Research Framework this skillxbtlin/ai-berkshire17k—~2.3kAutomated safety check: PassMIT
AI-Trader Market IntelHKUDS/AI-Trader23k—~1.1kAutomated safety check: PassNone
Eastmoney Market DataHKUDS/Vibe-Trading35k—~1kAutomated safety check: PassMIT
Stock Deep Analysis Workflowwbh604/UZI-Skill7.1k—~9.1kAutomated safety check: NotesMIT
Zhengxi Fund Manager Views Librarylyra81604/zhengxi-views1.8k—~1.6kAutomated safety check: PassMIT
SEC EDGAR Filings FetcherHKUDS/Vibe-Trading35k—~1.4kAutomated safety check: PassMIT

Similar skills

  • AI-Trader Market Intel

    HKUDS/AI-Trader

    Reads AI-Trader's read-only market snapshots, grouped financial news and events board through its market-intel endpoints, for context before trading or posting.

    23k GitHub stars~1.1k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Eastmoney Market Data

    HKUDS/Vibe-Trading

    Index of Eastmoney's free, no-token market data interfaces for China A-shares and Hong Kong stocks: fund flows, dragon-tiger lists, margin trading, reports and news.

    35k GitHub stars~1k tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Runs a staged deep analysis of a single stock on China A-share, Hong Kong and US markets, ending in an HTML report with valuation models and investor-panel scores.

    7.1k GitHub stars~9.1k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check: notes
  • Zhengxi Fund Manager Views Library

    lyra81604/zhengxi-views

    Answers questions with sourced quotes from one Chinese fund manager's public writings, applies his stated investment method and compares his words with real fund holdings.

    1.8k GitHub stars~1.6k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • SEC EDGAR Filings Fetcher

    HKUDS/Vibe-Trading

    Fetches U.S. SEC EDGAR data: resolves tickers to CIK numbers, lists recent 10-K, 10-Q and 8-K filings with document URLs, and pulls XBRL financial series.

    35k GitHub stars~1.4k tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Longbridge Earnings

    helsome/folio

    Earnings analysis — pre- and post-earnings. An agent skill from helsome/folio.

    271 GitHub starsUsed in 1 repo~2.5k tokens
    Business, Finance & HRAuto-check passed

More from xbtlin/ai-berkshire

All 22 skills in this repo
  • Scans a long-running industry trend for supply chain chokepoints, aiming to find second- and third-layer suppliers that the market has not yet priced in.

    17k GitHub stars~2.6k tokensUpdated 2 days ago
    Auto-check passed
  • Deep Company Article Series

    xbtlin/ai-berkshire

    Plans and writes a three-to-eight-part long-form article series that breaks down one company, built on fact-checked financials, valuation and management analysis.

    17k GitHub stars~2k tokensUpdated 2 days ago
    Auto-check passed
  • Earnings Report Deep Reading

    xbtlin/ai-berkshire

    Reads a company's filings and earnings call material in depth, rates how complete the sources are and extracts the key figures into a structured review.

    17k GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • Runs four parallel analyst personas over one earnings report, then an editor and reader-review pass turn the findings into a publishable article.

    17k GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • A four-step research framework for finding and tracking high-growth core companies in one industry: map the sector, ask core questions, verify, then hold to the turning point.

    17k GitHub stars~974 tokensUpdated 2 days ago
    Auto-check passed
  • A research rule set for pulling company financials from prioritized sources by market and cross-checking every key figure against two independent sources.

    17k GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed

Questions about Value Investing Research Framework

What does Value Investing Research Framework do?

Runs a seven-module research pass on a named company using four value investors' methods, with two-source data checks and a warning step for AI research bias. This skill carries out a structured research pass on a company you name, following the methods of four value investors: Warren Buffett, Charlie Munger, Duan Yongping and Li Lu. The work is split into seven modules run in order.

When should I use Value Investing Research Framework?

Value Investing Research Framework fits situations like: researching a listed company from a long-term value-investing angle; cross-checking a company's financials against two independent sources; judging how far to trust AI-generated research on a thinly covered stock.

How do I install Value Investing Research Framework in Claude Code?

Run `npx skills add xbtlin/ai-berkshire --skill investment-research -a claude-code`. Or copy the skill folder (codex-skills/investment-research in xbtlin/ai-berkshire) into .claude/skills/investment-research in your project. Claude Code loads it when a task matches its description.

How do I install Value Investing Research Framework in Codex?

Run `npx skills add xbtlin/ai-berkshire --skill investment-research -a codex`. Or copy the skill folder (codex-skills/investment-research in xbtlin/ai-berkshire) into .agents/skills/investment-research in your project. Codex loads it when a task matches its description.

Can I use Value Investing Research Framework in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xbtlin/ai-berkshire --skill investment-research -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/investment-research, .gemini/skills/investment-research, .github/skills/investment-research and .opencode/skills/investment-research in your project.

What does Value Investing Research Framework need to run?

Going by SKILL.md and its folder, Value Investing Research Framework needs the command-line tools its instructions call (python3). Our summary lists: Python 3 and the repository's `tools/` scripts such as `financial_rigor.py`; Web access to public financial data sites.

Does Value Investing Research Framework access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Value Investing Research Framework safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Value Investing Research Framework use?

Value Investing Research Framework is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Value Investing Research Framework use?

About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Value Investing Research Framework?

Skills that share tags, products or a category with Value Investing Research Framework: AI-Trader Market Intel (HKUDS/AI-Trader, 23k stars), Eastmoney Market Data (HKUDS/Vibe-Trading, 35k stars), Stock Deep Analysis Workflow (wbh604/UZI-Skill, 7.1k stars) and Zhengxi Fund Manager Views Library (lyra81604/zhengxi-views, 1.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Value Investing Research Framework?

xbtlin (a GitHub user) maintains it in xbtlin/ai-berkshire, which has 16,676 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 8, 2026.

Source: xbtlin/ai-berkshire on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.