# Investment Masters' Methodologies Integrated in AI Berkshire: The Four Pillars

> Discover how AI Berkshire integrates investment methodologies from Buffett Munger Duan Yongping and Li Lu Explore the four pillars of this unified analysis pipeline.

- Repository: [Xbt Lin/ai-berkshire](https://github.com/xbtlin/ai-berkshire)
- Tags: deep-dive
- Published: 2026-07-06

---

**AI Berkshire fuses the value-investing frameworks of Warren Buffett, Charlie Munger, Duan Yongping, and Li Lu into a unified dialectic analysis pipeline that eliminates blind spots through multi-angle contradiction detection.**

The `xbtlin/ai-berkshire` repository systematizes these legendary investors' methodologies into executable AI skills. Each master's core competency—from Buffett's moat analysis to Li Lu's civilizational trend forecasting—maps to specific modules in the codebase, creating a comprehensive research assistant for value investors.

## The Four Investment Masters and Their Core Contributions

AI Berkshire explicitly encodes four distinct investment philosophies, allowing them to interact, confirm, or contradict one another during analysis.

### Warren Buffett: Financial Valuation and Moat Analysis

**Warren Buffett's** methodology drives the quantitative rigor in AI Berkshire. The system implements his focus on **financial valuation**, **moat analysis**, and **safety-margin pricing** through dedicated Python modules.

In [`tools/financial_rigor.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/financial_rigor.py), the codebase enforces Buffett-style valuation checks that verify whether a security trades below its intrinsic value. The moat evaluation assesses competitive advantages including brand strength, network effects, and cost-scale efficiencies.

### Charlie Munger: Inversion and Mental Models

**Charlie Munger's** contribution centers on **inversion thinking** and **mental-model rigor**. Rather than asking how a business succeeds, Munger's methodology asks what would guarantee its failure.

The [`tools/inversion.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/inversion.py) module operationalizes this approach by surfacing downside scenarios and failure modes. This inversion gate runs automatically in multi-step analyses, forcing the AI to examine the opposite of conventional bullish assumptions before proceeding.

### Duan Yongping: Business Essence and Management Quality

**Duan Yongping's** framework emphasizes **business-essence extraction** and rigorous **management and capital-allocation assessment**. His methodology strips away complexity to identify the core product or service that generates economic value.

In [`tools/management_assessment.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/management_assessment.py), Duan's founder-focus combines with Buffett's governance standards to evaluate leadership quality. The system checks for capital-allocation discipline and incentivization alignment, key criteria in Duan's investment philosophy.

### Li Lu: Civilizational Trends and Long-Term Gating

**Li Lu's** methodology introduces **long-term civilizational trends** and a strict **"buy-or-don't-buy"** gating mechanism. Unlike Buffett's quantitative focus on current price, Li Lu filters opportunities through decade-plus macro trends.

The [`tools/civilizational_trends.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/civilizational_trends.py) module models these macro forces, assessing whether a business will remain relevant and dominant ten years into the future. This creates a natural tension with Buffett's "cheap enough" criterion, forcing analysts to resolve contradictions before investing.

## The Five-Step Dialectic Workflow

AI Berkshire organizes these investment masters' methodologies into a logical chain that mirrors their actual decision-making processes.

1. **Data Collection → Business Essence (Duan)** – Raw data distillation to identify the core economic engine.

2. **Moat Evaluation (Buffett)** – Competitive advantage analysis covering brand, network effects, and cost structures.

3. **Inversion Analysis (Munger)** – Failure mode examination by inverting standard bullish questions.

4. **Management Assessment (Duan + Buffett)** – Founder-led evaluation and capital-allocation discipline checks.

5. **Civilizational Trends (Li Lu)** – Macro-level force assessment over 10-plus year horizons.

This dialectic approach ensures that **Buffett's valuation** and **Li Lu's trend projections** must reconcile before the system generates a final recommendation. If a stock appears cheap but faces existential technological disruption, the contradiction surfaces explicitly in the output.

## Running AI Berkshire Commands

The repository exposes these methodologies through slash commands that invoke the underlying master-specific modules.

Execute a Buffett-style pre-buy checklist with Munger inversion gates:

```bash
/buffett-checklist 腾讯, 茅台, NVDA

```

Run the complete five-step investment research pipeline incorporating all four masters:

```bash
/investment-research AAPL

```

Generate a comprehensive team analysis using the full dialectic workflow:

```bash
/investment-team META

```

Create a contradiction-aware memo highlighting tensions between valuation and long-term trends:

```bash
/investment-memo-craft TSLA

```

Each command internally routes to the appropriate tools: [`financial_rigor.py`](https://github.com/xbtlin/ai-berkshire/blob/main/financial_rigor.py) for Buffett calculations, [`inversion.py`](https://github.com/xbtlin/ai-berkshire/blob/main/inversion.py) for Munger stress-tests, [`management_assessment.py`](https://github.com/xbtlin/ai-berkshire/blob/main/management_assessment.py) for Duan's founder analysis, and [`civilizational_trends.py`](https://github.com/xbtlin/ai-berkshire/blob/main/civilizational_trends.py) for Li Lu's macro filtering.

## Core Implementation Files

The investment masters' methodologies reside in specific files within the `xbtlin/ai-berkshire` repository:

- **[`README_EN.md`](https://github.com/xbtlin/ai-berkshire/blob/main/README_EN.md)** – High-level description of the four masters' integration and dialectic design philosophy.

- **[`skills/investment-checklist.md`](https://github.com/xbtlin/ai-berkshire/blob/main/skills/investment-checklist.md)** – Buffett's pre-buy gate including Munger inversion checks.

- **[`skills/investment-research.md`](https://github.com/xbtlin/ai-berkshire/blob/main/skills/investment-research.md)** – Full multi-master research pipeline documentation.

- **[`tools/financial_rigor.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/financial_rigor.py)** – Valuation utilities implementing Buffett's safety-margin calculations.

- **[`tools/inversion.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/inversion.py)** – Munger-style inversion helper for downside scenario generation.

- **[`tools/management_assessment.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/management_assessment.py)** – Combined Duan and Buffett management analysis module.

- **[`tools/civilizational_trends.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/civilizational_trends.py)** – Li Lu's long-term trend filter and macro-force modeling.

## Summary

- **AI Berkshire** integrates four distinct value-investing methodologies into a unified analysis framework.
- **Warren Buffett** provides the quantitative foundation through financial rigor and moat analysis in [`tools/financial_rigor.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/financial_rigor.py).
- **Charlie Munger** contributes inversion thinking via [`tools/inversion.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/inversion.py) to surface hidden risks.
- **Duan Yongping** drives business-essence extraction and management quality assessment in [`tools/management_assessment.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/management_assessment.py).
- **Li Lu** adds long-term civilizational trend filtering through [`tools/civilizational_trends.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/civilizational_trends.py), creating productive tension with short-term valuation metrics.
- The **dialectic workflow** forces reconciliation between cheap price (Buffett) and long-term viability (Li Lu) before generating investment recommendations.

## Frequently Asked Questions

### What is AI Berkshire?

AI Berkshire is an open-source AI research assistant hosted at `xbtlin/ai-berkshire` that encodes the value-investing methodologies of Buffett, Munger, Duan Yongping, and Li Lu into executable skills. It performs multi-angle analysis where different masters' views can contradict one another, surfacing blind spots that single-methodology approaches might miss.

### How does AI Berkshire combine the four investment masters' methodologies?

The system runs a five-step pipeline where each step corresponds to a specific master: Duan's business essence extraction feeds into Buffett's moat analysis, which passes through Munger's inversion filter, then combines Duan and Buffett's management assessment, finally confronting Li Lu's civilizational trend evaluation. This creates a "dialectic" where contradictions must be resolved before finalizing an investment decision.

### What makes Li Lu's methodology different from Buffett's in AI Berkshire?

While Buffett's methodology in [`tools/financial_rigor.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/financial_rigor.py) focuses on current price relative to intrinsic value and quantitative safety margins, Li Lu's approach in [`tools/civilizational_trends.py`](https://github.com/xbtlin/ai-berkshire/blob/main/tools/civilizational_trends.py) filters investments through decade-plus macro trends and existential durability. Buffett asks "Is it cheap enough?" while Li Lu asks "Will it still exist in 10 years?" AI Berkshire forces both questions to align before recommending a buy.

### Can AI Berkshire run analysis on any stock ticker?

Yes, the slash commands like `/investment-research` and `/investment-team` accept any valid stock ticker. The system processes the ticker through all four masters' methodologies automatically, generating a comprehensive report that includes Buffett's valuation metrics, Munger's risk inversions, Duan's management assessment, and Li Lu's trend analysis for the specific company.