valuation-model
What it does
This skill explains how to estimate what a company is worth using several standard methods. It is for investors and analysts who want a clear valuation and its key assumptions.
When to use it
- ✓When you want to estimate a company's fair value with a discounted cash flow model.
- ✓When you want to compare a stock's price-to-earnings or price-to-book ratio with its history.
- ✓When you want to see how sensitive a valuation is to changes in growth or discount rate.
Skill link
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/valuation-model/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Estimate the fair value of this company with a DCF, and show how sensitive it is to the discount rate.”
5 new skills a week. 1 minute to read.
How it works
It forecasts free cash flow for several years, applies a discount rate called WACC, and adds up the present values. It then tests how the result changes under different assumptions and checks for common valuation traps.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Valuation Methodology
Overview
Systematic corporate valuation framework covering absolute valuation (DCF / DDM / SOTP) and relative valuation (PE / PB / EV-EBITDA), including sensitivity-analysis methods and a checklist for identifying valuation traps.
Absolute Valuation Methods
1. DCF (Discounted Cash Flow)
Core formulas:
Enterprise value = Σ FCF_t / (1+WACC)^t + TV / (1+WACC)^n
Equity value = enterprise value - net debt
Per-share value = equity value / total shares outstanding
Detailed steps:
Step 1: Forecast free cash flow (usually 5 years)
FCFF = EBIT × (1-tax rate) + depreciation & amortization - capex - increase in working capital
Simplified version:
FCFF ≈ operating cash flow - capex
| Year | Revenue (100m RMB) | EBIT (100m RMB) | FCFF (100m RMB) | Growth |
|---|---|---|---|---|
| 2026E | 120 | 24 | 18 | +15% |
| 2027E | 138 | 28 | 21 | +15% |
| 2028E | 155 | 31 | 24 | +12% |
| 2029E | 170 | 34 | 26 | +10% |
| 2030E | 182 | 36 | 28 | +7% |
Step 2: Calculate WACC
WACC = E/(D+E) × Ke + D/(D+E) × Kd × (1-T)
Ke (cost of equity) = Rf + β × (Rm - Rf)
- Rf: 10-year government bond yield (about 2.5% for China A-shares)
- β: industry average or company beta (1.0-1.5)
- Rm-Rf: equity risk premium (about 5-7% for China A-shares)
Kd: cost of debt (loan rate, about 4-5%)
T: income tax rate (25%)
Reference WACC ranges for China A-shares:
| Industry | WACC Range | Reference β |
|---|---|---|
| Consumer | 8-10% | 0.8-1.0 |
| Technology | 10-13% | 1.2-1.5 |
| Financials | 7-9% | 1.0-1.2 |
| Cyclicals | 9-12% | 1.0-1.4 |
| Utilities | 6-8% | 0.5-0.8 |
Step 3: Terminal Value
Perpetual-growth method: TV = FCF_n × (1+g) / (WACC - g)
- g: perpetual growth rate (usually 2-3%, should not exceed GDP growth)
Exit-multiple method: TV = EBITDA_n × EV/EBITDA multiple
- Reference the industry average or historical median
Step 4: Sensitivity Analysis
### DCF Sensitivity Analysis (per-share value, RMB)
| WACC \ g | 2.0% | 2.5% | 3.0% |
|----------|------|------|------|
| 9.0% | 32.5 | 35.8 | 40.2 |
| 9.5% | 28.3 | 30.8 | 34.0 |
| 10.0% | 24.8 | 26.7 | 29.1 |
| 10.5% | 22.0 | 23.5 | 25.3 |
| 11.0% | 19.6 | 20.8 | 22.2 |
2. DDM (Dividend Discount Model)
Applicable to: high-dividend stocks (banks, utilities, mature consumer companies).
Two-stage DDM:
P = Σ D_t / (1+Ke)^t + D_n × (1+g) / [(Ke-g) × (1+Ke)^n]
Gordon model (single stage):
P = D_1 / (Ke - g)
Applicability checklist:
- Has paid dividends continuously for more than 3 years
- Stable payout ratio (>30%)
- Strong earnings predictability
- Usually not suitable for high-growth stocks (no dividends / low payout)
3. SOTP (Sum of the Parts)
Applicable to: diversified conglomerates.
Group value = Σ valuation of each business segment + net cash - holding-company discount
Example (a group company):
| Segment | Revenue (100m RMB) | Valuation Method | Valuation (100m RMB) |
|------|---------|---------|---------|
| Baijiu | 80 | 30x PE | 600 |
| Real estate | 50 | 0.6x PB | 120 |
| Financials | 30 | 1.0x PB | 200 |
| Total | | | 920 |
| Holding-company discount | | -15% | -138 |
| Group valuation | | | 782 |
Relative Valuation Methods
1. PE Band
Historical PE percentile analysis:
- Take the past 5 years of PE_TTM time series
- Compute the 10% / 25% / 50% / 75% / 90% percentiles
- Judge overvaluation / undervaluation from the current PE percentile
| Percentile | PE | Implied Price | Interpretation |
|------|-----|---------|------|
| 90% | 35x | 52.5 | Severely overvalued |
| 75% | 28x | 42.0 | Rich |
| 50% | 22x | 33.0 | Fair |
| 25% | 16x | 24.0 | Cheap |
| 10% | 12x | 18.0 | Severely undervalued |
| Current | 18x | 27.0 | Cheap (30th percentile) |
2. PB-ROE Matrix
Theoretical relationship: PB = (ROE - g) / (Ke - g)
Practical use: plot companies in the industry on a PB vs ROE scatter chart
| Quadrant | PB | ROE | Interpretation |
|------|-----|-----|------|
| Lower right | Low PB | High ROE | Undervalued (best buy zone) |
| Upper right | High PB | High ROE | Fair (quality premium) |
| Lower left | Low PB | Low ROE | Value trap or distressed turnaround |
| Upper left | High PB | Low ROE | Overvalued (avoid) |
3. EV/EBITDA
EV = market cap + net debt (interest-bearing debt - cash)
EBITDA = operating profit + depreciation + amortization
FAQ
What is WACC?
WACC is the weighted average cost of capital, the blended return that investors and lenders expect from the company.
What is a DCF?
A discounted cash flow model values a company by adding up its future cash flows, adjusted for the time until each one arrives.
Does it give a final answer?
It gives a range based on assumptions, so the result is only as good as those inputs.
Details
Original description by the author
Valuation methodology — absolute valuation with DCF / DDM / SOTP, relative valuation with PE-Band / PB-ROE / EV-EBITDA, sensitivity analysis, and valuation-trap detection.
repo: HKUDS/Vibe-Trading
Popularity
- GitHub stars
- 37k
- Ranking position
- #7564
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
vibe-trading
37kGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.
adr-hshare
37kShows your agent how to compare the price of a Chinese company listed in several markets, such as a US ADR and a Hong Kong share.
akshare
37kLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.
alpha-zoo
37kLets your agent browse a library of ready-made stock factors and test how well a whole set of them predicts returns on a chosen market.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.