Skip to content
Back to skills

Buffett Value Investing

ASecurity

A股巴菲特式价值投资分析:护城河评估、连续5年ROE/毛利率/负债率/经营现金流筛选、安全边际估值 | A-share Buffett-style value investing analysis: moat assessment, 5-year ROE/gross-margin/debt/operating-cash-flow screening, margin-of-safety valuation | A株バフェット式バリュー投資分析:堀評価、5年連続ROE/粗利率/負債比率/営業キャッシュフローのスクリーニング、安全マージン評価

  • 19 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentspythonbash

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 11 files and shows the line behind each finding

Scanned September 24, 2026

npx -y skills add Serennity007/awesome-stock-quant-skills --skill buffett-value-investing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Buffett Value Investing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Buffett Value Investing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/serennity007-buffett-value-investing/badge)](https://www.skillsdirectory.com/skills/serennity007-buffett-value-investing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: buffett-value-investing
description: A股巴菲特式价值投资分析:护城河评估、连续5年ROE/毛利率/负债率/经营现金流筛选、安全边际估值 | A-share Buffett-style value investing analysis: moat assessment, 5-year ROE/gross-margin/debt/operating-cash-flow screening, margin-of-safety valuation | A株バフェット式バリュー投資分析:堀評価、5年連続ROE/粗利率/負債比率/営業キャッシュフローのスクリーニング、安全マージン評価
author: Serennity007
license: MIT
---

# 巴菲特式价值投资(A股)

用巴菲特的框架在 A 股市场做两件事:

1. **筛股**(`scripts/screen.py`):从全市场或给定股票池中筛出符合巴菲特财务标准的候选标的,按打分排序。
2. **分析**(`scripts/analyze.py`):对单个股票做完整分析,包括护城河清单(人工判断位)、财务质量趋势、简易估值区间与安全边际提示。

数据来自 akshare(公开行情与财务数据接口)。

## 筛选标准(巴菲特财务门槛)

| 维度 | 标准 | 说明 |
|---|---|---|
| ROE | 连续 5 年 > 15% | 巴菲特最看重的单一指标,代表资本回报能力 |
| 毛利率 | 5 年稳定(波动 < 5 个百分点)且 > 30% | 稳定高毛利是护城河的财务投影 |
| 资产负债率 | < 50%(金融股除外,需人工剔除) | 低杠杆意味着不依赖借钱赚钱 |
| 经营现金流 | 连续 5 年为正 | 利润必须是真金白银 |
| 估值 | PE / PB 处于近 5 年历史分位低位 | 安全边际:好公司也要好价格 |

> 注:金融、地产等高杠杆行业的负债率标准不适用,需另行人工分析。

打分规则详见 `references/scoring_rules.md`,投资原则详见 `references/buffett_principles.md`。

## 使用方法

```bash
pip install akshare pandas

# 筛股:默认用沪深300成分股作为股票池(质量预筛,避免全市场过慢)
python scripts/screen.py --pool hs300 --top 20 --out result.csv

# 或用自定义股票池
python scripts/screen.py --codes 600519,000858,600036 --out result.csv

# 单股完整分析
python scripts/analyze.py 600519
```

## 分析流程(配合 AI 使用)

1. 运行 `screen.py` 得到候选名单与各项得分。
2. 对排名靠前的股票运行 `analyze.py`,得到财务趋势与估值区间。
3. **护城河清单需要人工/AI 逐条判断**(品牌、成本优势、转换成本、网络效应),脚本只给出提示问题,不打假分。
4. 综合判断:好公司(护城河 + 财务质量)× 好价格(安全边际)→ 才进入买入候选。

## 免责声明

本技能仅供学习研究,不构成投资建议。历史财务指标不代表未来表现,任何筛选结果都必须经过自己对生意的理解(能力圈)二次确认。

Files in this skill

  • README.en.md1.2 KB
  • README.ja.md1.5 KB
  • README.md1.2 KB
  • SKILL.md2.7 KB
  • docs/demo.en.md3.7 KB
  • docs/demo.ja.md4.1 KB
  • docs/demo.md3.5 KB
  • references/buffett_principles.md2.8 KB
  • references/scoring_rules.md2.7 KB
  • scripts/analyze.py6.9 KB
  • scripts/screen.py7.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.