
michaelrochonnn/buffett-investment-research
Developer toolsBuffett-style company analysis skill for Codex that turns primary-source research into structured investment memos.
개요
A Codex skill for Buffett-style company analysis, value-investing research, and structured investment memos. This repository turns Buffett's investing principles into an operational research workflow. Instead of producing a fast opinion, it pushes Codex to do the slower, more important work first: define the exact business, gather primary sources, judge moat and management, stress-test the balance sheet, estimate normalized owner earnings, and only then talk about price. It is a reusable skill that helps Codex analyze a company the way Buffett often described in Berkshire shareholder letters: - understand the business before projecting outcomes - treat stocks as partial ownership interests in businesses - separate business quality from price attractiveness - reject weak culture, fragile financing, and promotional management - accept pass and outside competence as legitimate outcomes Most investment prompts produce a quick synthesis.
README
Buffett Investment Research
A Codex skill for Buffett-style company analysis, value-investing research, and structured investment memos.
This repository turns Buffett’s investing principles into an operational research workflow. Instead of producing a fast opinion, it pushes Codex to do the slower, more important work first: define the exact business, gather primary sources, judge moat and management, stress-test the balance sheet, estimate normalized owner earnings, and only then talk about price.
What This Is
This is not just a prompt.
It is a reusable skill that helps Codex analyze a company the way Buffett often described in Berkshire shareholder letters:
- understand the business before projecting outcomes
- treat stocks as partial ownership interests in businesses
- separate business quality from price attractiveness
- reject weak culture, fragile financing, and promotional management
- accept
passandoutside competenceas legitimate outcomes
Why This Is Different From A Normal Research Prompt
Most investment prompts produce a quick synthesis.
This skill is designed to produce a disciplined memo.
A normal prompt often:
- starts from a narrative or market angle
- mixes primary facts with commentary too early
- overweights valuation multiples
- hides uncertainty behind confident language
- forces a buy or sell tone even when the evidence is mixed
This skill instead:
- starts with filings, annual reports, proxy materials, and official IR sources
- uses a fixed Buffett-style evaluation sequence
- applies hard filters before scoring attractive traits
- treats moat, management, and capital allocation as first-class questions
- prefers normalized owner earnings over EBITDA storytelling
- allows
Watchlist,Reject, andOutside competenceas honest conclusions
In short: it is built for investment judgment, not content generation.
What You Get
When you give the skill a company name or ticker, it can return a structured memo covering:
- Investment snapshot
- Circle of competence
- Business economics
- Moat assessment
- Management and culture
- Balance sheet and crisis resilience
- Capital allocation
- Valuation
- Key risks
- Final verdict
Each memo is meant to be decision support, not personalized financial advice.
Buffett Framework Used Here
The skill evaluates companies across seven dimensions:
- Understandability
- Moat durability
- Management and culture
- Capital allocation
- Financial strength
- Reinvestment runway
- Valuation and margin of safety
It then assigns one of five verdicts:
Strong fitWatchlistWeak fitRejectOutside competence
Best Use Cases
This skill works especially well when you want to:
- screen a business through a Buffett-style lens
- compare several companies on moat and capital allocation quality
- produce a repeatable investment memo instead of an ad hoc opinion
- decide whether a business is inside your circle of competence
- challenge a superficially cheap stock with deeper business-quality questions
- evaluate whether management behaves like owner-operators or empire builders
Example Inputs
Chinese
用巴菲特框架分析拼多多分析腾讯是否符合巴菲特标准,并输出完整投资备忘录按巴菲特框架评估贵州茅台,重点看护城河、管理层和估值帮我判断 Costco 现在是否具备 Buffett 式的安全边际分析一家银行是否在我的能力圈内,并说明为什么
English
Analyze Apple using a Buffett-style investment framework.Write a Buffett-style investment memo on Moody's.Assess whether Coca-Cola is a Strong fit or only a Watchlist candidate today.Evaluate this company using Buffett framework with special focus on moat and capital allocation.Is this business inside or outside Buffett's circle of competence?
Example Output
This is an abridged example of the kind of output the skill is designed to produce:
Buffett Investment Memo (abridged)
Company: PDD Holdings (NASDAQ: PDD)
Verdict: Watchlist
Confidence: Medium
Circle of competence
- Marketplace economics are understandable
- VIE structure and cross-border expansion reduce certainty
Moat
- Low-price habit, merchant density, and scale are real advantages
- Moat exists, but not yet a classic Buffett-grade set-and-forget moat
Management and culture
- Strong execution
- Minority-shareholder structure and disclosure complexity deserve a discount
Valuation
- Cash-rich business; headline multiple may look cheap
- The key question is durability, not just the multiple
What could upgrade the rating
- Clear proof that reinvestment still earns high returns
- Evidence that the moat is widening rather than being defended by spend
A full run should also include source links, filing references, missing facts, and a clear explanation of what would break the thesis.
How The Workflow Works
The skill follows a deliberate sequence:
-
Identify the exact entity Ticker, exchange, geography, segments, and ownership structure.
-
Gather primary sources first Annual reports, 10-K or equivalent, proxy, regulator filings, official IR materials, and earnings disclosures.
-
Build a base fact set Revenue mix, margins, leverage, share count, capital-allocation history, and management context.
-
Apply the Buffett framework Moat, culture, incentives, resilience, reinvestment runway, and valuation.
-
Explain the verdict The memo shows why the business qualifies or fails, not just the final label.
U.S. Company Helper Script
For U.S. issuers, the repo includes a small SEC snapshot helper:
python3 scripts/sec_company_snapshot.py "AAPL"
python3 scripts/sec_company_snapshot.py "American Express"
The script helps bootstrap research with:
- company match and CIK
- latest annual filing
- latest quarterly or current filings
- proxy links
- high-level financial facts from SEC company facts
- a conservative owner-earnings proxy
How To Install
Place this folder at:
$CODEX_HOME/skills/buffett-investment-research
In many local Codex setups, that path looks like:
~/.codex/skills/buffett-investment-research
Once installed, ask Codex for Buffett-style company analysis, value-investing research, moat assessment, management review, capital-allocation analysis, or a Buffett-style investment memo.
Repository Structure
.
├── SKILL.md
├── README.md
├── agents/
│ └── openai.yaml
├── references/
│ ├── framework.md
│ ├── memo-template.md
│ └── timeline.md
└── scripts/
└── sec_company_snapshot.py
SKILL.md: the core instructions Codex followsreferences/framework.md: the Buffett scorecard and hard filtersreferences/memo-template.md: the required memo structurereferences/timeline.md: Buffett’s philosophical evolution, mistakes, and crisis lessonsscripts/sec_company_snapshot.py: a U.S. filings bootstrap helper
Research Philosophy
This skill is built around a few simple ideas:
- a stock is a partial ownership interest in a business
- good business and good price are different questions
passis a valid answer- weak culture, fragile financing, and promotional management can invalidate a cheap valuation
- the best investment process often begins with elimination
Important Notes
- This is not personalized financial advice.
- The skill is designed for framework-based judgment, not prediction.
- It works best when current filings, prices, and management information can be verified live.
Outside competenceis an acceptable and sometimes best answer.
Source Base
The skill was built from a structured synthesis of Buffett’s shareholder letters and then translated into a repeatable research workflow.
Primary conceptual inputs include:
- Berkshire Hathaway shareholder letters
- Berkshire annual reports and reporting archives
- Buffett’s commentary on moat, management, capital allocation, owner earnings, mistakes, and risk
Suggested GitHub Topics
If you want this repository to be more discoverable on GitHub, these topics fit well:
codex-skillinvestingvalue-investingwarren-buffettequity-researchcompany-analysisfinancial-analysismoatcapital-allocationdue-diligence
License
This project is licensed under the MIT License.
See LICENSE for the full text.
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add michaelrochonnn/buffett-investment-research