longbridge-buffett-moat-stock-screener
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-buffett-moat-stock-screener
longbridge-buffett-moat-stock-screener
Prompt-only Buffett-style screener. Given a market / sector / preference query (no specific ticker), applies Buffett's two-layer model — hard quantitative filter then qualitative moat scoring — and returns a ranked candidate list (3–5 cards) with moat-type tags, Buffett-attitude verdicts, and one-click jumps into for deep diagnostics. Every figure traces to a row in the mandatory Data Source Appendix at the end of the output.
longbridge-buffett-moat-analyzerResponse language: detect the user's input language (Simplified Chinese / Traditional Chinese / English) and render the entire report — every card, label, narrative paragraph, education block, appendix row, and disclaimer — in that one language. Do not mix languages within a single output. The output template inis shown in English for reference; translate it as a whole into the user's language using the label-translation lookup in that file. The error/source tables inside this SKILL.md remain 3-column because they document what the skill says under each language — that 3-column form is for the skill's reference docs, not for the user-facing report.references/output.md
纯Prompt驱动的巴菲特风格股票筛选工具。当用户输入市场/行业/偏好查询(无需指定具体股票代码)时,应用巴菲特的两层模型——先严格量化过滤,再进行定性护城河评分——返回排名后的候选股票列表(3-5张卡片),卡片包含护城河类型标签、巴菲特风格的投资 verdict,以及一键跳转至进行深度诊断的入口。所有数据均可追溯至输出末尾必填的数据源附录中的对应条目。
longbridge-buffett-moat-analyzer响应语言规则:检测用户输入语言(简体中文/繁体中文/英文),并将整个报告——包括所有卡片、标签、说明段落、教育模块、附录条目和免责声明——统一使用该语言呈现。同一输出中不得混合多种语言。中的输出模板以英文展示作为参考;需根据该文件中的标签对照表将模板整体翻译为用户使用的语言。本SKILL.md中的错误/来源表格保持三列格式,因为它们用于记录该工具在不同语言下的表述——此三列格式仅用于工具的参考文档,不面向用户报告。references/output.md
When to use
使用场景
- "帮我找几只巴菲特会买的股票" / "幫我找幾隻巴菲特會買的股票" / "find a few stocks Buffett would buy"
- "消费股里巴菲特风格的有哪些" / "消費股裡巴菲特風格的有哪些" / "which consumer names are Buffett-style"
- "我想找一只 10 年都不用动的股票" / "我想找一隻 10 年都不用動的股票" / "I want a 10-year-hold stock"
- "有没有类似茅台这种定价权强的公司" / "有沒有類似茅台這種定價權強的公司" / "any companies like Moutai with strong pricing power"
- "新能源里有没有符合巴菲特标准的" / "新能源裡有沒有符合巴菲特標準的" / "any new-energy names that meet Buffett's criteria"
- "ROE 连续 10 年超过 20%、PE 低于 25 的 A 股" / "ROE 連續 10 年超過 20%、PE 低於 25 的 A 股" / "A-shares with 10y ROE > 20% and PE < 25"
- "美股里巴菲特真实持仓过的股票" / "美股裡巴菲特真實持倉過的股票" / "US stocks Buffett has actually held"
For single-stock deep diagnostic on a name the user already picked, use . For Graham-style cigar-butt / NCAV screening, use . For broader low-PE / low-PB / high-ROE value (not moat-centric) use . For high-dividend screens use .
longbridge-buffett-moat-analyzerlongbridge-graham-screenerlongbridge-value-screenlongbridge-dividend-screen- "帮我找几只巴菲特会买的股票" / "幫我找幾隻巴菲特會買的股票" / "find a few stocks Buffett would buy"
- "消费股里巴菲特风格的有哪些" / "消費股裡巴菲特風格的有哪些" / "which consumer names are Buffett-style"
- "我想找一只 10 年都不用动的股票" / "我想找一隻 10 年都不用動的股票" / "I want a 10-year-hold stock"
- "有没有类似茅台这种定价权强的公司" / "有沒有類似茅台這種定價權強的公司" / "any companies like Moutai with strong pricing power"
- "新能源里有没有符合巴菲特标准的" / "新能源裡有沒有符合巴菲特標準的" / "any new-energy names that meet Buffett's criteria"
- "ROE 连续 10 年超过 20%、PE 低于 25 的 A 股" / "ROE 連續 10 年超過 20%、PE 低於 25 的 A 股" / "A-shares with 10y ROE > 20% and PE < 25"
- "美股里巴菲特真实持仓过的股票" / "美股裡巴菲特真實持倉過的股票" / "US stocks Buffett has actually held"
若用户已选定某只股票并需要深度诊断,请使用。若需要格雷厄姆风格的"雪茄烟蒂"或净流动资产(NCAV)筛选,请使用。若需要更宽泛的低PE/低PB/高ROE价值筛选(非以护城河为核心),请使用。若需要高股息筛选,请使用。
longbridge-buffett-moat-analyzerlongbridge-graham-screenerlongbridge-value-screenlongbridge-dividend-screenCognitive frame (do not skip)
认知框架(不可跳过)
Screening is the upstream entry to the Buffett workflow: this skill generates candidates from zero; the downstream verifies a single name in depth. Both share the same moat lens — only the interaction shape differs.
longbridge-buffett-moat-analyzerTwo principles must surface alongside every leaderboard:
- Holding-period expectation — Buffett's reference is "ideally forever, at minimum 3 years." If the user's capital horizon is < 3 years, warn that this framework is the wrong lens regardless of how clean the screen looks.
- Quality first, price second — "A great business at a fair price is far better than a fair business at a great price." A passing row tells the user the business is Buffett-grade; whether this price is sane is a Dimension-4 (valuation) check that may downgrade the verdict to "watch and wait for a better price". Never collapse quality and price into one number.
Failure modes the screener must flag honestly:
- "Great business, wait for price" → quality passes but valuation 偏贵 / 高估 → 🟡 watchlist with target-price band, not a buy.
- "Cheap but no moat" → low PE/PB but moat narrow or absent → not a Buffett candidate; redirect to /
longbridge-graham-screener.longbridge-graham-stock-analysis - Sector-disqualified industries (e.g. airlines — Buffett publicly called the industry "value-destroying") → return an honest empty result with redirect to a closer-to-Buffett sector, not a forced top-N.
股票筛选是巴菲特投资流程的上游入口:本工具从零开始生成候选股票;下游的则对单只股票进行深度验证。两者使用相同的护城河分析视角——仅交互形式不同。
longbridge-buffett-moat-analyzer每一份候选排名列表都必须附带以下两项原则:
- 持仓周期预期——巴菲特的参考标准是"理想情况下永久持有,至少持有3年"。若用户的资金周期短于3年,需提醒用户无论筛选结果如何,该框架都不适用。
- 质量优先,价格其次——"以合理价格买入伟大企业,远胜于以伟大价格买入合理企业。" 通过筛选仅说明企业符合巴菲特的标准;当前价格是否合理属于第4维度(估值)的检查项,可能会将 verdict 下调为"观望等待更优价格"。绝不能将质量与价格合并为单一指标。
筛选工具必须如实标记以下失效场景:
- "优质企业,等待价格" → 质量达标但估值偏贵/高估 → 🟡 加入观察名单并给出目标价格区间,而非买入建议。
- "价格低廉但无护城河" → PE/PB较低但护城河狭窄或不存在 → 不属于巴菲特风格候选股票;引导用户使用/
longbridge-graham-screener。longbridge-graham-stock-analysis - 被排除的行业(例如航空业——巴菲特公开称该行业"摧毁价值")→ 如实返回空结果,并引导用户转向最接近巴菲特风格的行业,而非强行生成Top-N候选。
Workflow
工作流程
- Clarify the query in at most one quick turn. Three input shapes are supported (see §3.2 of the design doc):
- Preference-based (most common): "find me consumer stocks worth long-term holding".
- Sector / theme-based: "Buffett-style names in new energy" / "Buffett's actual US holdings".
- Condition-based (advanced): "A-shares with 10y ROE > 20% and PE < 25". If the user just says "recommend stocks" with no constraint, ask 1–2 framing questions (preferred market: A / HK / US? prefer steady — consumer/healthcare/financials — or growth — tech/new-energy?) before screening.
- Resolve the universe:
- Sector / theme query → start from the index or sector universe via or
longbridge constituent <INDEX>candidate list.longbridge sector-screener - Preference / condition query without a stated market → default to the market the user most often references (A-share if Mandarin / Cantonese trader signal, US for English, HK if the user mentioned 港股). Echo the chosen universe back in the Market Summary.
- Cap batch size at 300 names per screen.
- Sector / theme query → start from the index or sector universe via
- Sector triage — before any filter:
- Excluded (no scoring, drop with a one-line explanation in the Market Summary): airlines (Buffett: "value-destroying"), pre-revenue / pure-loss biotech (no track record), ST / 退市风险 names, listed < 5 years, pure-shell / negative-equity. If the user explicitly asked for one of these (e.g. "Buffett-style airline"), return an honest empty result with a redirect to the most-similar non-excluded sector (e.g. "consumer staples with pricing power" or "regulated utilities with stable returns").
- Sector-adjusted hard filter: banks / insurance / brokerage — replace FCF / leverage rules with ROA / NIM / NPL / CAR (note the substitution per row).
- Listed 5–10 years: pro-rate the earnings-stability sub-score and flag "history-limited" in the row note.
- Fetch raw data via Longbridge CLI first (parallel, ≤20 symbols per wave). See §CLI. MCP fallback if is missing (see §MCP fallback). WebSearch only for items genuinely outside Longbridge: industry outlook / disruption signals, brand-strength surveys, Buffett's own 13F holdings disclosure, qualitative management track record. Every WebSearch hit gets a publisher + URL + access-date row in the appendix.
longbridge - Layer 1 — Hard quantitative filter (binary pass/fail). Symbols failing ≥ 2 filters drop out by default. See §Filters for the table; full thresholds in .
references/criteria.md - Per-row reconciliation gate: if balance-sheet sum / current-assets sum / shares×price mismatches the reported total by >3%, drop the row from the leaderboard with a "数据异常" note in the data-anomaly footer. Do not silently smooth.
- Layer 2 — Qualitative moat scoring on every name that passed Layer 1 plus reconciliation. Five-dimension weighted composite (0–100):
- Moat type & width (35%) · Capital allocation (20%) · Earnings predictability (20%) · Valuation reasonableness (15%) · Long-term industry runway (10%).
Full rubric in . Each dimension also gets a 1–5 star rating shown on the candidate card.
references/criteria.md
- Moat type & width (35%) · Capital allocation (20%) · Earnings predictability (20%) · Valuation reasonableness (15%) · Long-term industry runway (10%).
Full rubric in
- Verdict matrix — combine Layer 2 quality stars (moat + financials) with valuation tier. See §Verdict matrix. Maps to one of three card verdicts:
references/criteria.md- 🟢 大概率会买 / Likely buy — wide moat + clean financials + price 充足/一般.
- 🟡 可能会考虑 / Maybe — wait for price — wide moat + clean financials + price 偏贵.
- 🔴 目前估值不合适 / Not at this price — wide moat but price 高估, OR moat narrow at any price (redirect to Graham).
- Holding-period mapping — derive expected min hold from moat width (★★★★★ → 5y+, ★★★★ → 3–5y, ★★★ → 1–3y, ★★ or below → not a Buffett candidate). See .
references/criteria.md - Rank and emit 3–5 candidate cards (not a giant leaderboard — the design doc's deliberate cap). Follow the candidate-card template in .
references/output.md - Mandatory closing blocks (every output, no exceptions):
- Selection rationale (2–3 sentences on why these names, current market caveat, deep-dive priority).
- Holding-period & user-education block (Buffett-style vs short-term expectations table — rendered in the user's language only).
- Data Source Appendix — every figure on every card traceable; every WebSearch row carries publisher + URL + date.
- Trilingual disclaimer from .
references/output.md
- Deep-dive CTA on every card, rendered in the user's input language only (e.g. "Deep-dive → run " for English, "深度诊断 → 运行
longbridge-buffett-moat-analyzer <CODE>" for 简体, "深度診斷 → 執行longbridge-buffett-moat-analyzer <CODE>" for 繁體). Pick one.longbridge-buffett-moat-analyzer <CODE>
- 澄清查询需求:最多通过一次交互完成。支持三种输入形式(详见设计文档第3.2节):
- 偏好驱动型(最常见):"帮我找值得长期持有的消费股"。
- 行业/主题驱动型:"新能源领域的巴菲特风格股票" / "巴菲特实际持有的美股"。
- 条件驱动型(进阶):"连续10年ROE>20%且PE<25的A股"。 若用户仅说"推荐股票"而无任何约束,需先提出1-2个引导问题(偏好市场:A股/港股/美股?偏好稳健型——消费/医药/金融——还是成长型——科技/新能源?)再进行筛选。
- 确定股票池范围:
- 行业/主题查询 → 通过或
longbridge constituent <INDEX>候选列表,从对应指数或行业股票池开始筛选。longbridge sector-screener - 偏好/条件查询但未指定市场 → 默认使用用户最常提及的市场(若用户使用普通话/粤语则默认A股,英文用户默认美股,若用户提及港股则默认港股)。在市场概述中回显选定的股票池范围。
- 每次筛选的股票池规模上限为300只。
- 行业/主题查询 → 通过
- 行业分类筛选——在应用任何过滤规则前:
- 排除类行业(不进行评分,在市场概述中用一句话说明原因后剔除):航空业(巴菲特称其"摧毁价值")、未盈利/持续亏损的生物科技股(无历史业绩记录)、ST/退市风险股、上市时长不足5年的股票、纯壳股/净资产为负的股票。若用户明确要求筛选此类行业(例如"巴菲特风格的航空股"),如实返回空结果,并引导用户转向最接近的非排除类行业(例如"具有定价权的必需消费品"或"收益稳定的公用事业股")。
- 行业调整后的严格过滤规则:银行/保险/券商——将自由现金流/杠杆规则替换为ROA/NIM/NPL/CAR(每行标注替换规则)。
- 上市时长5-10年:按可用年限比例调整盈利稳定性子评分,并在条目备注中标记"历史业绩有限"。
- 优先通过Longbridge CLI获取原始数据(并行处理,每批≤20只股票)。详见§CLI。若不可用则 fallback 至MCP(详见§MCP fallback)。仅当Longbridge无法提供数据时才使用WebSearch:行业前景/颠覆信号、品牌强度调研、巴菲特公开披露的13F持仓、管理层定性业绩记录。所有WebSearch获取的数据需在附录中添加发布方+URL+访问日期条目。
longbridge - 第一层——严格量化过滤(二元通过/不通过)。默认情况下,未通过≥2项过滤规则的股票将被剔除。过滤规则表详见§Filters;完整阈值见。
references/criteria.md - 逐行对账校验:若资产负债表总和/流动资产总和/股价×股数与报告总额的差异超过3%,将该股票从候选列表中剔除,并在"数据异常"脚注中标记"数据异常"。不得静默修正数据。
- 第二层——定性护城河评分:仅对通过第一层过滤和对账校验的股票进行评分。采用五维度加权综合评分(0-100分):
- 护城河类型与宽度(35%)· 资本配置(20%)· 盈利可预测性(20%)· 估值合理性(15%)· 长期行业发展空间(10%)。
完整评分细则见。每个维度还会给出1-5星评级,并显示在候选股票卡片上。
references/criteria.md
- 护城河类型与宽度(35%)· 资本配置(20%)· 盈利可预测性(20%)· 估值合理性(15%)· 长期行业发展空间(10%)。
完整评分细则见
- Verdict 矩阵——结合第二层的质量星级(护城河+财务指标)与估值等级。详见中的Verdict矩阵。对应三种卡片 verdict:
references/criteria.md- 🟢 大概率会买入 / Likely buy ——宽护城河+财务指标良好+价格充足/合理。
- 🟡 可能会考虑 / Maybe — wait for price ——宽护城河+财务指标良好+价格偏贵。
- 🔴 当前价格不适合买入 / Not at this price ——宽护城河但估值高估,或无论价格如何护城河都狭窄(引导至格雷厄姆工具)。
- 持仓周期映射——根据护城河宽度推导最低持仓周期(★★★★★ → 5年以上,★★★★ → 3-5年,★★★ → 1-3年,★★及以下 → 不属于巴菲特风格候选股票)。详见。
references/criteria.md - 排名并输出3-5张候选股票卡片(非冗长的排名列表——设计文档中明确限定数量)。候选卡片模板遵循中的规范。
references/output.md - 强制性收尾模块(所有输出必须包含,无例外):
- 选择理由(2-3句话说明为何选中这些股票、当前市场风险提示、优先深度分析的标的)。
- 持仓周期与用户教育模块(仅使用用户输入语言呈现的表格,对比巴菲特风格预期与短期/投机性预期的差异——持仓时间/入场方式/回撤容忍度/仓位逻辑/操作频率)。
- 数据源附录——所有卡片上的数据均可追溯;所有Longbridge接口调用、所有WebSearch获取的数据(发布方+URL+日期)均需记录。
- 来自的三语免责声明(仅使用用户输入语言呈现对应版本)。
references/output.md
- 深度分析引导:每张卡片上都需添加引导,且仅使用用户输入语言(例如英文用户显示*"Deep-dive → run ",简体中文用户显示"深度诊断 → 运行
longbridge-buffett-moat-analyzer <CODE>",繁体中文用户显示"深度診斷 → 執行longbridge-buffett-moat-analyzer <CODE>"*)。三选一即可。longbridge-buffett-moat-analyzer <CODE>
CLI
CLI
Run to verify exact flags before each call — the CLI is the source of truth; do not hard-code flag spellings from memory.
longbridge <subcommand> --helpbash
undefined每次调用前运行验证准确的参数——CLI是权威来源;不得凭记忆硬编码参数拼写。
longbridge <subcommand> --helpbash
undefinedUniverse
股票池
longbridge constituent <INDEX> --format json # e.g. 000300.SH, HSI.HK, SPX.US
longbridge constituent <INDEX> --format json # 示例:000300.SH, HSI.HK, SPX.US
Per-symbol snapshot (run in parallel, batches of ≤20)
单只股票快照(并行处理,每批≤20只)
longbridge calc-index <SYMBOL> --format json # PE / PB / market cap / ROE / dividend yield / sector tag
longbridge quote <SYMBOL> --format json # current price + suspended flag
longbridge basicinfo <SYMBOL> --format json # listing date / industry classification
longbridge calc-index <SYMBOL> --format json # PE / PB / 市值 / ROE / 股息率 / 行业标签
longbridge quote <SYMBOL> --format json # 当前价格 + 停牌状态
longbridge basicinfo <SYMBOL> --format json # 上市日期 / 行业分类
Per-symbol fundamentals (run in parallel)
单只股票基本面数据(并行处理)
longbridge financial-report <SYMBOL> --kind BS --report af --format json # 5–10y annual — leverage, equity, debt ratio
longbridge financial-report <SYMBOL> --kind IS --report af --format json # 5–10y annual — ROE, gross margin, earnings stability
longbridge financial-report <SYMBOL> --kind CF --report af --format json # 5–10y annual — FCF = OCF − Capex
longbridge financial-report <SYMBOL> --kind BS --report qf --format json # last 4Q — recent trajectory
longbridge financial-report <SYMBOL> --kind IS --report qf --format json
longbridge financial-report <SYMBOL> --kind CF --report qf --format json
longbridge financial-report <SYMBOL> --kind BS --report af --format json # 5-10年年报——杠杆率、净资产、资产负债率
longbridge financial-report <SYMBOL> --kind IS --report af --format json # 5-10年年报——ROE、毛利率、盈利稳定性
longbridge financial-report <SYMBOL> --kind CF --report af --format json # 5-10年年报——自由现金流 = 经营现金流 − 资本支出
longbridge financial-report <SYMBOL> --kind BS --report qf --format json # 最近4个季度——近期趋势
longbridge financial-report <SYMBOL> --kind IS --report qf --format json
longbridge financial-report <SYMBOL> --kind CF --report qf --format json
Long-window history for valuation-vs-history percentile (Layer 2 Dimension 4)
用于估值历史百分位分析的长期数据(第二层第4维度)
longbridge kline <SYMBOL> --period day --count 2500 --format json # ~10 years
longbridge kline <SYMBOL> --period day --count 2500 --format json # 约10年数据
Dividend & buyback (capital allocation track record — Layer 2 Dimension 2)
股息与回购(资本配置记录——第二层第2维度)
longbridge dividend <SYMBOL> --format json
longbridge corporate <SYMBOL> --format json # buyback / split / spin-off
longbridge dividend <SYMBOL> --format json
longbridge corporate <SYMBOL> --format json # 回购 / 拆股 / 分拆
Ownership & insider flow (management alignment)
持股情况与内部人交易(管理层一致性)
longbridge ownership <SYMBOL> --format json
longbridge insresearch <SYMBOL> --format json
longbridge ownership <SYMBOL> --format json
longbridge insresearch <SYMBOL> --format json
Company profile (moat-type hypothesis seed)
公司概况(护城河类型假设依据)
longbridge company-profile <SYMBOL> --format json
longbridge company-profile <SYMBOL> --format json
Peer set for moat / margin / ROE benchmarking
用于护城河/利润率/ROE基准对比的同行数据
longbridge peer-comparison <SYMBOL> --format json
longbridge peer-comparison <SYMBOL> --format json
Optional pre-narrowing if the user gave a sector / theme phrase
若用户指定行业/主题,可提前缩小范围
longbridge sector-screener --industry "<industry>" --format json
undefinedlongbridge sector-screener --industry "<industry>" --format json
undefinedWebSearch fallback — only for items not available from Longbridge
WebSearch fallback — 仅用于Longbridge无法提供的数据
| Missing data | WebSearch query pattern |
|---|---|
| Industry runway / disruption risk | |
| Brand / pricing-power signals | |
| Buffett's actual disclosed holdings (for "13F" / "Berkshire holdings" queries) | |
| Management qualitative track record | |
| Regulatory / policy overhangs | |
Latest insider transactions if | |
Every WebSearch-sourced figure must be tagged in the appendix; never silently mix it with Longbridge data.
[Source: WebSearch — <publisher>, <date>, <url>]| 缺失数据 | WebSearch 查询模式 |
|---|---|
| 行业发展空间/颠覆风险 | |
| 品牌/定价权信号 | |
| 巴菲特公开披露的持仓(针对"13F"/"伯克希尔持仓"查询) | |
| 管理层定性业绩记录 | |
| 监管/政策风险 | |
若 | |
所有通过WebSearch获取的数据必须在附录中标记;不得与Longbridge数据静默混合。
[来源: WebSearch — <发布方>, <日期>, <url>]Filters
过滤规则
User-overridable. Defaults from Buffett's publicly stated reference points. Threshold detail and the Layer-2 composite weights live in .
references/criteria.md用户可自定义。默认阈值来自巴菲特公开提及的参考标准。详细阈值和第二层综合评分权重见。
references/criteria.mdLayer 1 — Hard quantitative filter (pass / fail gate)
第一层——严格量化过滤(通过/不通过门槛)
| Filter | Buffett threshold | Source field | Sector adjustment |
|---|---|---|---|
| ROE (5y avg) | ≥ 15% | derived from | Banks: use ROA ≥ 1.0% + NIM stability |
| Debt-to-asset ratio | ≤ 50% | BS — total liabilities ÷ total assets | Banks / insurance / brokers: substitute CAR / leverage-adjusted equity |
| Free cash flow | positive every year for last 3 years | | Banks: substitute operating-cash-flow proxy from interest income |
| Years listed | ≥ 5 years | | None — strict, pro-rate at 5–10y window |
| Gross margin (TTM) | ≥ 30% | | Heavy industry / utilities: relax to ≥ 20% with note |
Symbols that fail ≥ 2 filters drop out by default; user can relax to "fail ≤ 3" on request. Any override is echoed back in the Market Summary.
| 过滤项 | 巴菲特阈值 | 数据源字段 | 行业调整规则 |
|---|---|---|---|
| 5年平均ROE | ≥ 15% | 从 | 银行业:改用ROA≥1.0% + NIM稳定性 |
| 资产负债率 | ≤ 50% | 资产负债表——总负债 ÷ 总资产 | 银行/保险/券商:替换为CAR/杠杆调整后净资产 |
| 自由现金流 | 连续3年为正 | | 银行业:替换为利息收入对应的经营现金流替代指标 |
| 上市时长 | ≥ 5年 | | 无——严格执行,5-10年窗口按比例调整评分 |
| TTM毛利率 | ≥ 30% | | 重工业/公用事业:放宽至≥20%并标注说明 |
默认情况下,未通过≥2项过滤规则的股票将被剔除;用户可请求放宽至"未通过≤3项"。任何自定义规则都需在市场概述中回显。
Layer 2 — Qualitative moat scoring (weighted composite, 0–100)
第二层——定性护城河评分(加权综合,0-100分)
Applied only to Layer-1 passers. Five dimensions, weights below. Full sub-criteria, evidence rules, and star mapping in .
references/criteria.md| Dimension | Weight | Plain-language framing |
|---|---|---|
| Moat type & width | 35% | Brand / network / cost / switching / regulatory / resource — wide / narrow / none |
| Capital allocation | 20% | Dividend & buyback discipline, M&A track record, insider stake |
| Earnings predictability | 20% | Earnings-volatility, cyclicality, revenue-mix stability |
| Valuation reasonableness | 15% | PE / PB / dividend-yield percentile vs 10y history, simplified DCF concept band |
| Long-term industry runway | 10% | Industry ceiling, disruption, regulatory exposure |
Default rank key = Layer-2 composite (high to low). User can override to: moat-stars-only, ROE desc, valuation-tier (cheapest first), or "Berkshire holdings only".
仅对通过第一层过滤的股票应用。包含五个维度,权重如下。完整子标准、证据规则和星级映射见。
references/criteria.md| 维度 | 权重 | 通俗表述 |
|---|---|---|
| 护城河类型与宽度 | 35% | 品牌/网络效应/成本优势/转换成本/监管壁垒/资源壁垒——宽/窄/无 |
| 资本配置 | 20% | 股息与回购纪律、并购记录、内部人持股比例 |
| 盈利可预测性 | 20% | 盈利波动性、周期性、营收结构稳定性 |
| 估值合理性 | 15% | PE/PB/股息率相对于10年历史的百分位、简化DCF估值区间 |
| 长期行业发展空间 | 10% | 行业天花板、颠覆风险、监管暴露程度 |
默认排序依据为第二层综合评分(从高到低)。用户可自定义排序方式:仅按护城河星级、ROE降序、估值等级(最便宜优先)或"仅伯克希尔持仓"。
Special handling
特殊处理
| Cohort | Treatment |
|---|---|
| Airlines | Excluded — Buffett publicly called the industry "value-destroying". If the user explicitly asked for "Buffett-style airline", return an honest empty result and redirect to the nearest non-excluded sector (e.g. regulated utilities, consumer staples) with one-line rationale. |
| Pre-revenue / pure-loss biotech / hot-IPO concept names | Excluded — Buffett framework needs a track record. Redirect to |
| ST / 退市风险 / listed < 5 years | Excluded from default top-N; show on request with the row prepended ⚠️ and a "history-limited" note. |
| Listed 5–10 years | Pro-rate earnings-stability sub-score on available years; mark row "history-limited". |
| Banks / insurance / brokers | Included with the sector-adjusted hard filter (ROA / NIM / NPL / CAR). Note substitution per row and in the Market Summary. |
| Reconciliation fail >3% | Drop from leaderboard; surface in "数据异常待复核" footer with the failing check named. |
| "最便宜的巴菲特风格股票" / "cheapest Buffett-style" query | Surface the distinction between cheap and margin of safety. Show Layer-2 valuation tier (充足 / 一般 / 偏贵 / 高估) prominently; rank by valuation tier inside the wide-moat cohort, not by raw PE. |
| "巴菲特真实持仓" / "Buffett's actual holdings" query | Pull Berkshire's latest 13F via WebSearch (publisher + URL + filing date in the appendix), then run Layer 2 on the holdings as a secondary lens — note that 13F lag (≥45 days) can be material. |
| 类别 | 处理方式 |
|---|---|
| 航空股 | 排除——巴菲特公开称该行业"摧毁价值"。若用户明确要求"巴菲特风格的航空股",如实返回空结果,并引导用户转向最接近的非排除类行业(例如受监管的公用事业、必需消费品),同时给出一句话理由。 |
| 未盈利/持续亏损的生物科技股/热门IPO概念股 | 排除——巴菲特框架需要历史业绩记录。引导用户使用 |
| ST/退市风险/上市时长不足5年 | 默认从Top-N候选中排除;若用户请求,可在条目前添加⚠️并标注"历史业绩有限"后展示。 |
| 上市时长5-10年 | 按可用年限比例调整盈利稳定性子评分;标记条目"历史业绩有限"。 |
| 银行/保险/券商 | 纳入筛选,但使用行业调整后的严格过滤规则(ROA/NIM/NPL/CAR)。在对应条目和市场概述中备注替换规则。 |
| 对账差异超过3% | 从候选卡片中剔除;在"数据异常待复核"附录中列出失败项及差异值。 |
| "最便宜的巴菲特风格股票"/"cheapest Buffett-style"查询 | 明确区分"便宜"与"安全边际"。突出显示第二层估值等级(充足/合理/偏贵/高估);在宽护城河股票池中按估值等级排序,而非按原始PE排序。 |
| "巴菲特真实持仓"/"Buffett's actual holdings"查询 | 通过WebSearch获取伯克希尔最新13F持仓(附录中需包含发布方+URL+提交日期),然后对持仓股票应用第二层评分作为辅助视角——需备注13F存在滞后性(≥45天)可能影响结果。 |
Output
输出格式
3–5 candidate cards, not a giant leaderboard. Full card template, selection rationale block, holding-period education table, and the mandatory Data Source Appendix structure live in . Minimum card fields:
references/output.mdName (Code) · Market · Sector Quality stars: ★★★★★
Moat type: {brand / network / cost / switching / regulatory / resource}
Top-3 highlights (quantitative first): {ROE x%}, {Gross margin x%}, {FCF / capex intensity}
Buffett verdict: 🟢 大概率会买 / 🟡 可能会考虑 / 🔴 目前估值不合适
Valuation read: {充足 / 一般 / 偏贵 / 高估} — current price vs 10y band
Min. holding period: {5y+ / 3–5y / 1–3y}
[深度诊断这只股票 → longbridge-buffett-moat-analyzer <CODE>]After the cards, every output must include:
- Selection rationale — 2–3 sentences on (a) why these names together, (b) market caveats right now, (c) which one to deep-dive first.
- Holding-period & user-education block — single-language table (in the user's input language) comparing Buffett-style expectations vs short-term/speculative expectations (holding time / entry pattern / drawdown tolerance / position logic / action frequency).
- Data Source Appendix (MANDATORY) — every field on every card, every Longbridge endpoint hit, every WebSearch hit (publisher + URL + access date). The final line is a per-row reconciliation summary (clean pass / within-tolerance residuals / per-row drops).
- Disclaimer — disclaimer variant matching the user's input language only, picked from §Disclaimer variants. Never print multiple language variants.
references/output.md
3-5张候选股票卡片,非冗长的排名列表。完整卡片模板、选择理由模块、持仓周期教育表格和必填的数据源附录结构见。卡片最低包含以下字段:
references/output.md名称(代码)· 市场 · 行业 质量星级:★★★★★
护城河类型:{品牌 / 网络效应 / 成本优势 / 转换成本 / 监管壁垒 / 资源壁垒}
三大亮点(优先量化指标):{ROE x%}, {毛利率 x%}, {自由现金流/资本支出强度}
巴菲特 verdict:🟢 大概率会买入 / 🟡 可能会考虑 / 🔴 当前价格不适合买入
估值判断:{充足 / 合理 / 偏贵 / 高估} — 当前价格 vs 10年区间
最低持仓周期:{5年以上 / 3-5年 / 1-3年}
[深度诊断这只股票 → longbridge-buffett-moat-analyzer <CODE>]卡片之后,所有输出必须包含:
- 选择理由——2-3句话说明:(a) 为何选中这些股票;(b) 当前市场风险提示;(c) 优先深度分析的标的。
- 持仓周期与用户教育模块——仅使用用户输入语言的表格,对比巴菲特风格预期与短期/投机性预期的差异(持仓时间/入场方式/回撤容忍度/仓位逻辑/操作频率)。
- 数据源附录(必填)——所有卡片上的字段、所有调用的Longbridge接口、所有WebSearch获取的数据(发布方+URL+访问日期)均需记录。最后一行是逐行对账总结(全部通过/差异在容忍范围内/逐行剔除项)。
- 免责声明——仅使用用户输入语言对应的版本,选自中的免责声明变体。不得同时展示多种语言版本。
references/output.md
Error handling
错误处理
| Situation | 简体回复 | 繁體回覆 | English reply |
|---|---|---|---|
| 回退到 MCP;若不可用,请安装 longbridge-terminal。 | 回退到 MCP;若不可用,請安裝 longbridge-terminal。 | Fall back to MCP; if unavailable install longbridge-terminal. |
stderr | 请运行 | 請執行 | Run |
| 未能获取候选池,请确认指数或行业关键词。 | 未能獲取候選池,請確認指數或行業關鍵詞。 | Cannot fetch universe; verify the index or sector keyword. |
| User-named sector is on the excluded list (e.g. 航空 / pre-revenue biotech) | 该行业整体不符合巴菲特选股逻辑(已说明原因),推荐改看 {替代行业};如仍想分析,可改用 | 該行業整體不符合巴菲特選股邏輯(已說明原因),推薦改看 {替代行業};如仍想分析,可改用 | The sector does not fit Buffett's framework (reason given); suggest {alternative sector}; for early-stage analysis use |
| BS / IS / CF partial fetch for a symbol | 该标的数据不完整,跳过并在「数据异常」脚注列出。 | 該標的數據不完整,跳過並於「數據異常」腳註列出。 | Symbol has incomplete fundamentals; skipped and listed in the data-anomaly footer. |
| Industry runway / qualitative data missing (Longbridge + WebSearch both empty) | 维度评分仅用财务证据,标注「定性数据缺失」。 | 維度評分僅用財務證據,標註「定性數據缺失」。 | Score the dimension on financial evidence only and tag "qualitative data unavailable". |
| Per-row reconciliation gap >3% | 从候选卡片剔除并在「数据异常」附录列出失败项及差异。 | 自候選卡片剔除並於「數據異常」附錄列出失敗項及差異。 | Drop from candidate cards; list failing check + gap in data-anomaly appendix. |
| User gave no market / preference at all | 触发引导式提问:偏好市场(A/HK/美)?稳健(消费/医药/金融)还是有成长性(科技/新能源)? | 觸發引導式提問:偏好市場(A/HK/美)?穩健(消費/醫藥/金融)還是有成長性(科技/新能源)? | Ask one framing turn: preferred market (A / HK / US)? Steady (consumer / healthcare / financials) or growthier (tech / new-energy)? |
| Other stderr | 原样透传错误,不静默重试。 | 原樣透傳錯誤,不靜默重試。 | Surface stderr verbatim; never silently retry. |
| 场景 | 简体回复 | 繁體回覆 | English reply |
|---|---|---|---|
| 回退到 MCP;若不可用,请安装 longbridge-terminal。 | 回退到 MCP;若不可用,請安裝 longbridge-terminal。 | Fall back to MCP; if unavailable install longbridge-terminal. |
stderr | 请运行 | 請執行 | Run |
| 未能获取候选池,请确认指数或行业关键词。 | 未能獲取候選池,請確認指數或行業關鍵詞。 | Cannot fetch universe; verify the index or sector keyword. |
| 用户指定的行业在排除列表中(例如航空/未盈利生物科技) | 该行业整体不符合巴菲特选股逻辑(已说明原因),推荐改看{替代行业};如仍想分析,可改用 | 該行業整體不符合巴菲特選股邏輯(已說明原因),推薦改看{替代行業};如仍想分析,可改用 | The sector does not fit Buffett's framework (reason given); suggest {alternative sector}; for early-stage analysis use |
| 某只股票的BS/IS/CF数据部分缺失 | 该标的数据不完整,跳过并在「数据异常」脚注列出。 | 該標的數據不完整,跳過並於「數據異常」腳註列出。 | Symbol has incomplete fundamentals; skipped and listed in the data-anomaly footer. |
| 行业发展空间/定性数据缺失(Longbridge+WebSearch均无数据) | 维度评分仅用财务证据,标注「定性数据缺失」。 | 維度評分僅用財務證據,標註「定性數據缺失」。 | Score the dimension on financial evidence only and tag "qualitative data unavailable". |
| 逐行对账差异超过3% | 从候选卡片剔除并在「数据异常」附录列出失败项及差异。 | 自候選卡片剔除並於「數據異常」附錄列出失敗項及差異。 | Drop from candidate cards; list failing check + gap in data-anomaly appendix. |
| 用户未指定任何市场/偏好 | 触发引导式提问:偏好市场(A/HK/美)?稳健(消费/医药/金融)还是有成长性(科技/新能源)? | 觸發引導式提問:偏好市場(A/HK/美)?穩健(消費/醫藥/金融)還是有成長性(科技/新能源)? | Ask one framing turn: preferred market (A / HK / US)? Steady (consumer / healthcare / financials) or growthier (tech / new-energy)? |
| 其他stderr | 原样透传错误,不静默重试。 | 原樣透傳錯誤,不靜默重試。 | Surface stderr verbatim; never silently retry. |
MCP fallback
MCP fallback
If CLI is not installed, use MCP tools (, scope):
longbridgeclaude mcp add --transport http longbridge https://openapi.longbridge.com/mcpquote| MCP tool | CLI equivalent |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
若未安装CLI,使用MCP工具(, 权限):
longbridgeclaude mcp add --transport http longbridge https://openapi.longbridge.com/mcpquote| MCP工具 | CLI等效命令 |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Related skills
相关工具
- Single-stock Buffett deep diagnostic → (the natural next step from every card)
longbridge-buffett-moat-analyzer - Graham cigar-butt screener →
longbridge-graham-screener - Graham single-stock view →
longbridge-graham-stock-analysis - Broader value (PE / PB / ROE) screen →
longbridge-value-screen - High-dividend screen →
longbridge-dividend-screen - DCF intrinsic value →
longbridge-dcf - Industry runway / sector view →
longbridge-industry-overview - Method selection guide →
longbridge-valuation-methodology
- 单只股票巴菲特风格深度诊断 → (每张卡片的自然下一步操作)
longbridge-buffett-moat-analyzer - 格雷厄姆雪茄烟蒂筛选工具 →
longbridge-graham-screener - 格雷厄姆单只股票分析工具 →
longbridge-graham-stock-analysis - 宽泛价值(PE/PB/ROE)筛选工具 →
longbridge-value-screen - 高股息筛选工具 →
longbridge-dividend-screen - DCF内在价值计算工具 →
longbridge-dcf - 行业发展空间/行业视角分析工具 →
longbridge-industry-overview - 方法选择指南 →
longbridge-valuation-methodology
File layout
文件结构
longbridge-buffett-moat-stock-screener/
├── SKILL.md
└── references/
├── criteria.md # Layer-1 hard filters, Layer-2 weighted scoring, verdict matrix, holding-period mapping, excluded cohorts
└── output.md # candidate-card template, selection rationale, user-education block, data-source appendix, disclaimerlongbridge-buffett-moat-stock-screener/
├── SKILL.md
└── references/
├── criteria.md # 第一层严格过滤规则、第二层加权评分、Verdict矩阵、持仓周期映射、排除类别
└── output.md # 候选卡片模板、选择理由、用户教育模块、数据源附录、免责声明