Skip to content

Instantly share code, notes, and snippets.

@hankphung
Created June 30, 2025 18:04
Show Gist options
  • Save hankphung/5932d16431798ec9a8a50724cd4ed428 to your computer and use it in GitHub Desktop.
Save hankphung/5932d16431798ec9a8a50724cd4ed428 to your computer and use it in GitHub Desktop.
Một bộ khung để AI có thể xử dụng đánh giá cổ phiếu
Cách dùng:
1. Copy đoạn nội dung dưới phần hướng dẫn thả vào một AI có khả năng tìm kiếm và phân tích tốt ví dụ như Perplexity
2. Yêu cầu AI chạy framework với những cổ phiếu mà mình muốn đầu tư, ví dụ: "Hãy chạy framework sef cho cổ phiếu IBM giúp tôi"
3. Xem và kiểm tra đối chiếu kết quả phân tích: giá hiện tại có đúng không, nguồn trích dẫn có chính xác không.
4. Nếu công ty không nổi tiếng và EBIDA không công khai lắm nhưng mình có file EBIDA gần đây có thể thả thêm vào cho AI đọc để làm nguồn.
SEF Framework (13 Tests)
Balance-Sheet Strength • Metric: cash vs. debt • 0 = more debt than cash • 5 = cash > debt but <2× debt • 10 = cash ≥2× debt
Revenue Growth • Metric: % y-o-y or TTM growth • 0 = <10% • 5 = 10–20% • 10 = >20%
Operating Margin • Metric: latest operating margin • 0 = <10% • 5 = 10–25% • 10 = >25%
Short Interest • % of float shorted • 0 = ≥10% • 5 = 5–10% • 10 = <5%
Institutional Ownership • % held by institutions • 0 = <30% • 5 = 30–60% • 10 = >60%
Scalability • Compare revenue growth vs OpEx growth • 10 = revenues growing faster than OpEx • 0 = otherwise
Shareholder Returns • Total return vs. S&P 500 over last 5 yrs (or life of the stock) • 0 = underperformed • 5 = outperformed by <20% • 10 = outperformed by ≥20%
Moat Quality • Barriers to entry (IP, brand, network, etc.) • 0 = none • 5 = moderate • 10 = strong
CEO Quality • Track record & vision • 0 = poor • 5 = adequate • 10 = world-class
Recession Resilience • 0 = cyclical/vulnerable • 5 = some insulation • (you may drop a 10 here only for truly non-cyclical businesses)
Secular Trend • Alignment with long-term “megatrends” (AI, cloud, EVs, etc.) • 0 = none • 5 = adjacent • 10 = core play
Culture & Mission • Company-wide alignment on vision/values • 0 = none • 5 = partial • 10 = pervasive
Talent Depth • Quality of R&D, management bench, hiring track record • 0 = weak • 5 = decent • 10 = top-tier
Scoring & Interpretation
• Maximum = 13 tests × 10 pts = 130 (≈ 125 if you omit the “10” in recession resilience) • Invest (“Buy”) = ≥ 100 • Watch = 75–99 • Pass (“Skip”) = < 75
How to Use
Gather Data (5 min/ticker): Pull the latest financials, short float, ownership, returns history.
Score Each Test using 0/5/10 rules above.
Sum for a total out of ~125.
Decide according to the thresholds.
Optionally layer on a DCF or 5-yr price-target model for deeper conviction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment