dcf-model
Skill này làm gì
Skill này hướng dẫn agent AI ước tính công ty đáng giá bao nhiêu bằng chiết khấu dòng tiền. Skill dành cho nhà phân tích và nhà đầu tư cần một định giá có bảng tính đầy đủ hỗ trợ.
Khi nào nên dùng
- ✓Khi bạn muốn định giá một công ty bằng chiết khấu dòng tiền.
- ✓Khi bạn cần biết định giá nhạy cảm thế nào với thay đổi về tăng trưởng hoặc tỷ lệ chiết khấu.
- ✓Khi bạn muốn một ước tính giá trị nội tại kèm tóm tắt điều hành.
Liên kết skill
https://github.com/anthropics/financial-services/blob/main/plugins/agent-plugins/model-builder/skills/dcf-model/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xây mô hình DCF cho công ty này với dự phóng năm năm, WACC và các bảng nhạy cảm.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent thu thập dữ liệu tài chính, dự phóng dòng tiền và tính tỷ lệ chiết khấu. Sau đó nó chiết khấu mọi thứ về giá trị hiện tại và hiển thị các bảng nhạy cảm, tất cả trong một bảng tính.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
DCF Model Builder
Overview
This skill creates institutional-quality DCF models for equity valuation following investment banking standards. Each analysis produces a detailed Excel model (with sensitivity analysis included at the bottom of the DCF sheet).
Tools
- Default to using all of the information provided by the user and MCP servers available for data sourcing.
Critical Constraints - Read These First
These constraints apply throughout all DCF model building. Review before starting:
Environment: Office JS vs Python/openpyxl:
- If running inside Excel (Office Add-in / Office JS environment): Use Office JS directly — do NOT use Python/openpyxl. Write formulas via
range.formulas = [["=D19*(1+$B$8)"]]. No separate recalc step needed; Excel calculates natively. Userange.format.*for styling. The same formulas-over-hardcodes rule applies: set.formulas, never.valuesfor derived cells. - If generating a standalone .xlsx file (no live Excel session): Use Python/openpyxl as described below, then run
recalc.pybefore delivery. - The rest of this skill uses openpyxl examples — translate to Office JS API calls when in that environment, but all principles (formula strings, cell comments, section checkpoints, sensitivity table loops) apply identically.
⚠️ Office JS merged cell pitfall: When building section headers with merged cells, do NOT call .merge() then set .values on the merged range — Office JS still reports the range's original dimensions and will throw InvalidArgument: The number of rows or columns in the input array doesn't match the size or dimensions of the range. Instead, write the value to the top-left cell alone, then merge and format the full range:
// WRONG — throws InvalidArgument:
const hdr = ws.getRange("A7:H7");
hdr.merge();
hdr.values = [["MARKET DATA & KEY INPUTS"]]; // 1×1 array vs 1×8 range → fails
// CORRECT — value first on single cell, then merge + format the range:
ws.getRange("A7").values = [["MARKET DATA & KEY INPUTS"]];
const hdr = ws.getRange("A7:H7");
hdr.merge();
hdr.format.fill.color = "#1F4E79";
hdr.format.font.bold = true;
hdr.format.font.color = "#FFFFFF";
This applies to every merged section header in the DCF (market data, scenario blocks, cash flow projection, terminal value, valuation summary, sensitivity tables).
Formulas Over Hardcodes (NON-NEGOTIABLE):
- Every projection, margin, discount factor, PV, and sensitivity cell MUST be a live Excel formula — never a value computed in Python and written as a number
- When using openpyxl:
ws["D20"] = "=D19*(1+$B$8)"is correct;ws["D20"] = calculated_revenueis WRONG - The only hardcoded numbers permitted are: (1) raw historical inputs, (2) assumption drivers (growth rates, WACC inputs, terminal g), (3) current market data (share price, debt balance)
- If you catch yourself computing something in Python and writing the result — STOP. The model must flex when the user changes an assumption.
Verify Step-by-Step With the User (DO NOT build end-to-end):
- After data retrieval → show the user the raw inputs block (revenue, margins, shares, net debt) and confirm before projecting
- After revenue projections → show the projected top line and growth rates, confirm before building margin build
- After FCF build → show the full FCF schedule, confirm logic before computing WACC
- After WACC → show the calculation and inputs, confirm before discounting
- After terminal value + PV → show the equity bridge (EV → equity value → per share), confirm before sensitivity tables
- Catch errors at each stage — a wrong margin assumption discovered after sensitivity tables are built means rebuilding everything downstream
Sensitivity Tables:
- Use an ODD number of rows and columns (standard: 5×5, sometimes 7×7) — this guarantees a true center cell
- Center cell = base case. Build the axis values so the middle row header and middle column header exactly equal the model's actual assumptions (e.g., if base WACC = 9.0%, the middle row is 9.0%; if terminal g = 3.0%, the middle column is 3.0%). The center cell's output must therefore equal the model's actual implied share price — this is the sanity check that the table is built correctly.
- Highlight the center cell with the medium-blue fill (
#BDD7EE) + bold font so it's immediately visible which cell is the base case. - Populate ALL cells (typically 3 tables × 25 cells = 75) with full DCF recalculation formulas
- Use open
Câu hỏi thường gặp
Dữ liệu tài chính lấy từ đâu?
Skill dùng dữ liệu bạn cung cấp và các nguồn đã kết nối, trong đó có các hồ sơ SEC mà nó có thể dùng.
Có bảng nhạy cảm không?
Có. Các bảng nhạy cảm nằm ở cuối trang tính DCF.
Nó có làm việc trong Excel không?
Có. Nó có thể làm trong add-in Excel đang mở hoặc tạo một tệp bảng tính độc lập.
Chi tiết
Mô tả gốc của tác giả
Real DCF (Discounted Cash Flow) model creation for equity valuation. Retrieves financial data from SEC filings and analyst reports, builds comprehensive cash flow projections with proper WACC calculations, performs sensitivity analysis, and outputs professional Excel models with executive summaries. Use when users need to value a company using DCF methodology, request intrinsic value analysis, or ask for detailed financial modeling with growth projections and terminal value calculations.
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6582
- Giấy phép
- Apache-2.0
- Cập nhật
- 28/10/2026
Bình luận
- …
Thêm skill từ kho mã này
audit-xls
41kGiúp agent của bạn kiểm tra bảng tính để tìm lỗi công thức, số nhập tay và liên kết hỏng, cho một phạm vi, một trang tính hoặc toàn bộ mô hình.
earnings-analysis
41kGiúp agent của bạn viết bản cập nhật ngắn về kết quả kinh doanh quý của một công ty, gồm vượt hay hụt kỳ vọng, các con số chính và quan điểm đã điều chỉnh.
earnings-preview
41kGiúp agent của bạn chuẩn bị trước khi một công ty công bố lợi nhuận, với các chỉ số cần theo dõi, kịch bản tích cực và tiêu cực, cùng các yếu tố xúc tác chính.
model-update
41kGiúp agent của bạn cập nhật mô hình tài chính với kết quả mới, hướng dẫn hoặc giả định, rồi đánh dấu những thay đổi quan trọng nhất.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.