dcf-model
ما الذي تفعله
يبني نموذج خصم التدفقات النقدية في Excel يسقط التدفقات النقدية ويقدّر القيمة السوقية للأسهم، مع جدول حساسية. وهو للمحللين والمحترفين الماليين الذين يقيّمون شركة.
متى تستخدمها
- ✓عندما تريد تقدير ما تستحقه شركة من تدفقاتها النقدية المتوقعة.
- ✓عندما تحتاج إلى جدول حساسية يبيّن كيف تتغير القيمة مع الافتراضات الرئيسية.
- ✓عندما تريد مصنف DCF مبنيًا وفق معيار مصرفي.
رابط المهارة
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/finance/dcf-model/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ابنِ نموذج DCF لهذه الشركة باستخدام القوائم المالية المرفقة، مع جدول حساسية على WACC ومعدل النمو النهائي.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يجمع وكيلك المدخلات من ملفاتك وأدوات البيانات، ثم يكتب كل توقع وخطوة خصم كصيغة Excel حية. يعيد حساب المصنف ويضع تحليل الحساسية في أسفل ورقة DCF.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Environment
This skill assumes headless openpyxl — you are producing an .xlsx file on disk.
Follow the excel-author skill's conventions for cell coloring, formulas, named ranges, and sensitivity tables.
Recalculate before delivery: python /path/to/excel-author/scripts/recalc.py ./out/model.xlsx.
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:
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 openpyxl loops to write formulas programmatically
- NO placeholder text, NO linear approximations, NO manual steps required
- Each cell must recalculate full DCF for that assumption combination
Cell Comments:
- Add cell comments AS each hardcoded value is created
- Format: "Source: [System/Document], [Date], [Reference], [URL if applicable]"
- Every blue input must have a comment before moving to next section
- Do not defer to end or write "TODO: add source"
Model Layout Planning:
- Define ALL section row positions BEFORE writing any formulas
- Write ALL headers and labels first
- Write ALL section dividers and blank rows second
- THEN write formulas using the locked row positions
- Test formulas immediately after creation
Formula Recalculation:
- Run
python recalc.py model.xlsx 30before delivery - Fix ALL errors until status is "success"
- Zero formula errors required (#REF!, #DIV/0!, #VALUE!, etc.)
Scenario Blocks:
- Create separate blocks for Bear/Base/Bull cases
- Show assumptions horizontally across projection years within each block
- Use IF formulas:
=IF($B$6=1,[Bear cell],IF($B$6=2,[Base cell],[Bull cell])) - Verify formulas reference correct scenario block cells
DCF Process Workflow
Step 1: Data Retrieval and Validation
Fetch data from MCP servers, user provided data, and the web.
Data Sources Priority:
- MCP Servers (if configured) - Structured financial data from providers like Daloopa
- User-Provided Data - Historical financials from their research
الأسئلة الشائعة
هل يجب أن يكون كل رقم صيغة؟
نعم. تقول المهارة إن التوقعات وعوامل الخصم وخلايا الحساسية يجب أن تكون صيغًا حية، لا قيمًا محسوبة.
أي الأرقام يمكن كتابتها مباشرة؟
فقط المدخلات التاريخية الخام، ومحركات الافتراضات مثل معدلات النمو، وبيانات السوق الحالية.
أين تحليل الحساسية؟
في أسفل ورقة DCF.
التفاصيل
الوصف الأصلي من المؤلف
Build discounted cash flow valuation workbooks in Excel.
الشعبية
- نجوم GitHub
- 260k
- الترتيب
- #492
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
agent-merge-conflict-arbiter
260kيحسم تعارض دمج git بين فروع وكيلين كطرف محايد، فينتج نتيجة دمج واحدة للمستودع.
antigravity-cli
260kيرشدك إلى تثبيت أداة سطر أوامر Antigravity وتحديثها واستكشاف أخطائها، بما في ذلك إضافاتها وتسجيل الدخول والبيئة المعزولة.
blackbox
260kيتيح لوكيلك تسليم مهمة برمجة إلى أداة Blackbox AI لسطر الأوامر، التي تشغّل عدة نماذج ذكاء اصطناعي وتختار أفضل نتيجة.
dynamic-workflow
260kيعلّم وكيلك تشغيل مجموعات كبيرة من أعمال متشابهة كسكربت محفوظ، فلا تعود إلى المحادثة الرئيسية إلا النتائج المتحقق منها.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.