longbridge-buffett-moat-stock-screener

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

longbridge-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
longbridge-buffett-moat-analyzer
for deep diagnostics. Every figure traces to a row in the mandatory Data Source Appendix at the end of the output.
Response 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 in
references/output.md
is 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.
纯Prompt驱动的巴菲特风格股票筛选工具。当用户输入市场/行业/偏好查询(无需指定具体股票代码)时,应用巴菲特的两层模型——先严格量化过滤,再进行定性护城河评分——返回排名后的候选股票列表(3-5张卡片),卡片包含护城河类型标签、巴菲特风格的投资 verdict,以及一键跳转至
longbridge-buffett-moat-analyzer
进行深度诊断的入口。所有数据均可追溯至输出末尾必填的数据源附录中的对应条目。
响应语言规则:检测用户输入语言(简体中文/繁体中文/英文),并将整个报告——包括所有卡片、标签、说明段落、教育模块、附录条目和免责声明——统一使用该语言呈现。同一输出中不得混合多种语言。
references/output.md
中的输出模板以英文展示作为参考;需根据该文件中的标签对照表将模板整体翻译为用户使用的语言。本SKILL.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
longbridge-buffett-moat-analyzer
. For Graham-style cigar-butt / NCAV screening, use
longbridge-graham-screener
. For broader low-PE / low-PB / high-ROE value (not moat-centric) use
longbridge-value-screen
. For high-dividend screens use
longbridge-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"
若用户已选定某只股票并需要深度诊断,请使用
longbridge-buffett-moat-analyzer
。若需要格雷厄姆风格的"雪茄烟蒂"或净流动资产(NCAV)筛选,请使用
longbridge-graham-screener
。若需要更宽泛的低PE/低PB/高ROE价值筛选(非以护城河为核心),请使用
longbridge-value-screen
。若需要高股息筛选,请使用
longbridge-dividend-screen

Cognitive frame (do not skip)

认知框架(不可跳过)

Screening is the upstream entry to the Buffett workflow: this skill generates candidates from zero; the downstream
longbridge-buffett-moat-analyzer
verifies a single name in depth. Both share the same moat lens — only the interaction shape differs.
Two principles must surface alongside every leaderboard:
  1. 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.
  2. 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
则对单只股票进行深度验证。两者使用相同的护城河分析视角——仅交互形式不同。
每一份候选排名列表都必须附带以下两项原则:
  1. 持仓周期预期——巴菲特的参考标准是"理想情况下永久持有,至少持有3年"。若用户的资金周期短于3年,需提醒用户无论筛选结果如何,该框架都不适用。
  2. 质量优先,价格其次——"以合理价格买入伟大企业,远胜于以伟大价格买入合理企业。" 通过筛选仅说明企业符合巴菲特的标准;当前价格是否合理属于第4维度(估值)的检查项,可能会将 verdict 下调为"观望等待更优价格"。绝不能将质量与价格合并为单一指标。
筛选工具必须如实标记以下失效场景:
  • "优质企业,等待价格" → 质量达标但估值偏贵/高估 → 🟡 加入观察名单并给出目标价格区间,而非买入建议。
  • "价格低廉但无护城河" → PE/PB较低但护城河狭窄或不存在 → 不属于巴菲特风格候选股票;引导用户使用
    longbridge-graham-screener
    /
    longbridge-graham-stock-analysis
  • 被排除的行业(例如航空业——巴菲特公开称该行业"摧毁价值")→ 如实返回空结果,并引导用户转向最接近巴菲特风格的行业,而非强行生成Top-N候选。

Workflow

工作流程

  1. 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.
  2. Resolve the universe:
    • Sector / theme query → start from the index or sector universe via
      longbridge constituent <INDEX>
      or
      longbridge sector-screener
      candidate list.
    • 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.
  3. 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.
  4. Fetch raw data via Longbridge CLI first (parallel, ≤20 symbols per wave). See §CLI. MCP fallback if
    longbridge
    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.
  5. 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
    .
  6. 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.
  7. 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
      references/criteria.md
      . Each dimension also gets a 1–5 star rating shown on the candidate card.
  8. Verdict matrix — combine Layer 2 quality stars (moat + financials) with valuation tier. See
    references/criteria.md
    §Verdict matrix. Maps to one of three card verdicts:
    • 🟢 大概率会买 / 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).
  9. 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
    .
  10. 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
    .
  11. 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
      .
  12. Deep-dive CTA on every card, rendered in the user's input language only (e.g. "Deep-dive → run
    longbridge-buffett-moat-analyzer <CODE>
    "
    for English, "深度诊断 → 运行
    longbridge-buffett-moat-analyzer <CODE>
    "
    for 简体, "深度診斷 → 執行
    longbridge-buffett-moat-analyzer <CODE>
    "
    for 繁體). Pick one.
  1. 澄清查询需求:最多通过一次交互完成。支持三种输入形式(详见设计文档第3.2节):
    • 偏好驱动型(最常见):"帮我找值得长期持有的消费股"。
    • 行业/主题驱动型:"新能源领域的巴菲特风格股票" / "巴菲特实际持有的美股"。
    • 条件驱动型(进阶):"连续10年ROE>20%且PE<25的A股"。 若用户仅说"推荐股票"而无任何约束,需先提出1-2个引导问题(偏好市场:A股/港股/美股?偏好稳健型——消费/医药/金融——还是成长型——科技/新能源?)再进行筛选。
  2. 确定股票池范围
    • 行业/主题查询 → 通过
      longbridge constituent <INDEX>
      longbridge sector-screener
      候选列表,从对应指数或行业股票池开始筛选。
    • 偏好/条件查询但未指定市场 → 默认使用用户最常提及的市场(若用户使用普通话/粤语则默认A股,英文用户默认美股,若用户提及港股则默认港股)。在市场概述中回显选定的股票池范围。
    • 每次筛选的股票池规模上限为300只。
  3. 行业分类筛选——在应用任何过滤规则前:
    • 排除类行业(不进行评分,在市场概述中用一句话说明原因后剔除):航空业(巴菲特称其"摧毁价值")、未盈利/持续亏损的生物科技股(无历史业绩记录)、ST/退市风险股、上市时长不足5年的股票、纯壳股/净资产为负的股票。若用户明确要求筛选此类行业(例如"巴菲特风格的航空股"),如实返回空结果,并引导用户转向最接近的非排除类行业(例如"具有定价权的必需消费品"或"收益稳定的公用事业股")。
    • 行业调整后的严格过滤规则:银行/保险/券商——将自由现金流/杠杆规则替换为ROA/NIM/NPL/CAR(每行标注替换规则)。
    • 上市时长5-10年:按可用年限比例调整盈利稳定性子评分,并在条目备注中标记"历史业绩有限"。
  4. 优先通过Longbridge CLI获取原始数据(并行处理,每批≤20只股票)。详见§CLI。若
    longbridge
    不可用则 fallback 至MCP(详见§MCP fallback)。仅当Longbridge无法提供数据时才使用WebSearch:行业前景/颠覆信号、品牌强度调研、巴菲特公开披露的13F持仓、管理层定性业绩记录。所有WebSearch获取的数据需在附录中添加发布方+URL+访问日期条目。
  5. 第一层——严格量化过滤(二元通过/不通过)。默认情况下,未通过≥2项过滤规则的股票将被剔除。过滤规则表详见§Filters;完整阈值见
    references/criteria.md
  6. 逐行对账校验:若资产负债表总和/流动资产总和/股价×股数与报告总额的差异超过3%,将该股票从候选列表中剔除,并在"数据异常"脚注中标记"数据异常"。不得静默修正数据。
  7. 第二层——定性护城河评分:仅对通过第一层过滤和对账校验的股票进行评分。采用五维度加权综合评分(0-100分):
    • 护城河类型与宽度(35%)· 资本配置(20%)· 盈利可预测性(20%)· 估值合理性(15%)· 长期行业发展空间(10%)。 完整评分细则见
      references/criteria.md
      。每个维度还会给出1-5星评级,并显示在候选股票卡片上。
  8. Verdict 矩阵——结合第二层的质量星级(护城河+财务指标)与估值等级。详见
    references/criteria.md
    中的Verdict矩阵。对应三种卡片 verdict:
    • 🟢 大概率会买入 / Likely buy ——宽护城河+财务指标良好+价格充足/合理。
    • 🟡 可能会考虑 / Maybe — wait for price ——宽护城河+财务指标良好+价格偏贵。
    • 🔴 当前价格不适合买入 / Not at this price ——宽护城河但估值高估,或无论价格如何护城河都狭窄(引导至格雷厄姆工具)。
  9. 持仓周期映射——根据护城河宽度推导最低持仓周期(★★★★★ → 5年以上,★★★★ → 3-5年,★★★ → 1-3年,★★及以下 → 不属于巴菲特风格候选股票)。详见
    references/criteria.md
  10. 排名并输出3-5张候选股票卡片(非冗长的排名列表——设计文档中明确限定数量)。候选卡片模板遵循
    references/output.md
    中的规范。
  11. 强制性收尾模块(所有输出必须包含,无例外):
    • 选择理由(2-3句话说明为何选中这些股票、当前市场风险提示、优先深度分析的标的)。
    • 持仓周期与用户教育模块(仅使用用户输入语言呈现的表格,对比巴菲特风格预期与短期/投机性预期的差异——持仓时间/入场方式/回撤容忍度/仓位逻辑/操作频率)。
    • 数据源附录——所有卡片上的数据均可追溯;所有Longbridge接口调用、所有WebSearch获取的数据(发布方+URL+日期)均需记录。
    • 来自
      references/output.md
      的三语免责声明(仅使用用户输入语言呈现对应版本)。
  12. 深度分析引导:每张卡片上都需添加引导,且仅使用用户输入语言(例如英文用户显示*"Deep-dive → run
    longbridge-buffett-moat-analyzer <CODE>
    ",简体中文用户显示"深度诊断 → 运行
    longbridge-buffett-moat-analyzer <CODE>
    ",繁体中文用户显示"深度診斷 → 執行
    longbridge-buffett-moat-analyzer <CODE>
    "*)。三选一即可。

CLI

CLI

Run
longbridge <subcommand> --help
to verify exact flags before each call — the CLI is the source of truth; do not hard-code flag spellings from memory.
bash
undefined
每次调用前运行
longbridge <subcommand> --help
验证准确的参数——CLI是权威来源;不得凭记忆硬编码参数拼写。
bash
undefined

Universe

股票池

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
undefined
longbridge sector-screener --industry "<industry>" --format json
undefined

WebSearch fallback — only for items not available from Longbridge

WebSearch fallback — 仅用于Longbridge无法提供的数据

Missing dataWebSearch query pattern
Industry runway / disruption risk
"<industry> 2025 outlook"
,
"<industry> disruption risk"
Brand / pricing-power signals
"<company> price increase 2024 2025"
,
"<brand> brand value ranking"
Buffett's actual disclosed holdings (for "13F" / "Berkshire holdings" queries)
"Berkshire Hathaway 13F <year>"
,
"Warren Buffett portfolio holdings <year>"
Management qualitative track record
"<CEO name> capital allocation"
,
"<CEO name> shareholder letter"
Regulatory / policy overhangs
"<sector> regulation <region> 2025"
Latest insider transactions if
ownership
is stale
"<ticker> insider selling 2025"
Every WebSearch-sourced figure must be tagged
[Source: WebSearch — <publisher>, <date>, <url>]
in the appendix; never silently mix it with Longbridge data.
缺失数据WebSearch 查询模式
行业发展空间/颠覆风险
"<industry> 2025 outlook"
,
"<industry> disruption risk"
品牌/定价权信号
"<company> price increase 2024 2025"
,
"<brand> brand value ranking"
巴菲特公开披露的持仓(针对"13F"/"伯克希尔持仓"查询)
"Berkshire Hathaway 13F <year>"
,
"Warren Buffett portfolio holdings <year>"
管理层定性业绩记录
"<CEO name> capital allocation"
,
"<CEO name> shareholder letter"
监管/政策风险
"<sector> regulation <region> 2025"
ownership
数据过时,获取最新内部人交易
"<ticker> insider selling 2025"
所有通过WebSearch获取的数据必须在附录中标记
[来源: WebSearch — <发布方>, <日期>, <url>]
;不得与Longbridge数据静默混合。

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.md

Layer 1 — Hard quantitative filter (pass / fail gate)

第一层——严格量化过滤(通过/不通过门槛)

FilterBuffett thresholdSource fieldSector adjustment
ROE (5y avg)≥ 15%derived from
financial-report --kind IS
(NI) ÷ avg equity from BS
Banks: use ROA ≥ 1.0% + NIM stability
Debt-to-asset ratio≤ 50%BS — total liabilities ÷ total assetsBanks / insurance / brokers: substitute CAR / leverage-adjusted equity
Free cash flowpositive every year for last 3 years
financial-report --kind CF
(OCF − Capex)
Banks: substitute operating-cash-flow proxy from interest income
Years listed≥ 5 years
basicinfo.listing_date
None — strict, pro-rate at 5–10y window
Gross margin (TTM)≥ 30%
financial-report --kind IS
(gross profit ÷ revenue)
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%
financial-report --kind IS
(净利润)÷ 资产负债表平均净资产计算得出
银行业:改用ROA≥1.0% + NIM稳定性
资产负债率≤ 50%资产负债表——总负债 ÷ 总资产银行/保险/券商:替换为CAR/杠杆调整后净资产
自由现金流连续3年为正
financial-report --kind CF
(经营现金流 − 资本支出)
银行业:替换为利息收入对应的经营现金流替代指标
上市时长≥ 5年
basicinfo.listing_date
无——严格执行,5-10年窗口按比例调整评分
TTM毛利率≥ 30%
financial-report --kind IS
(毛利润 ÷ 营收)
重工业/公用事业:放宽至≥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
.
DimensionWeightPlain-language framing
Moat type & width35%Brand / network / cost / switching / regulatory / resource — wide / narrow / none
Capital allocation20%Dividend & buyback discipline, M&A track record, insider stake
Earnings predictability20%Earnings-volatility, cyclicality, revenue-mix stability
Valuation reasonableness15%PE / PB / dividend-yield percentile vs 10y history, simplified DCF concept band
Long-term industry runway10%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

特殊处理

CohortTreatment
AirlinesExcluded — 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 namesExcluded — Buffett framework needs a track record. Redirect to
longbridge-fundamental
for an early-stage view.
ST / 退市风险 / listed < 5 yearsExcluded from default top-N; show on request with the row prepended ⚠️ and a "history-limited" note.
Listed 5–10 yearsPro-rate earnings-stability sub-score on available years; mark row "history-limited".
Banks / insurance / brokersIncluded 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" querySurface 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" queryPull 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概念股排除——巴菲特框架需要历史业绩记录。引导用户使用
longbridge-fundamental
进行早期阶段分析。
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
references/output.md
. Minimum card fields:
Name (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:
  1. Selection rationale — 2–3 sentences on (a) why these names together, (b) market caveats right now, (c) which one to deep-dive first.
  2. 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).
  3. 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).
  4. Disclaimer — disclaimer variant matching the user's input language only, picked from
    references/output.md
    §Disclaimer variants. Never print multiple language variants.
3-5张候选股票卡片,非冗长的排名列表。完整卡片模板、选择理由模块、持仓周期教育表格和必填的数据源附录结构见
references/output.md
。卡片最低包含以下字段:
名称(代码)· 市场 · 行业              质量星级:★★★★★
护城河类型:{品牌 / 网络效应 / 成本优势 / 转换成本 / 监管壁垒 / 资源壁垒}
三大亮点(优先量化指标):{ROE x%}, {毛利率 x%}, {自由现金流/资本支出强度}
巴菲特 verdict:🟢 大概率会买入 / 🟡 可能会考虑 / 🔴 当前价格不适合买入
估值判断:{充足 / 合理 / 偏贵 / 高估} — 当前价格 vs 10年区间
最低持仓周期:{5年以上 / 3-5年 / 1-3年}
[深度诊断这只股票 → longbridge-buffett-moat-analyzer <CODE>]
卡片之后,所有输出必须包含:
  1. 选择理由——2-3句话说明:(a) 为何选中这些股票;(b) 当前市场风险提示;(c) 优先深度分析的标的。
  2. 持仓周期与用户教育模块——仅使用用户输入语言的表格,对比巴菲特风格预期与短期/投机性预期的差异(持仓时间/入场方式/回撤容忍度/仓位逻辑/操作频率)。
  3. 数据源附录(必填)——所有卡片上的字段、所有调用的Longbridge接口、所有WebSearch获取的数据(发布方+URL+访问日期)均需记录。最后一行是逐行对账总结(全部通过/差异在容忍范围内/逐行剔除项)。
  4. 免责声明——仅使用用户输入语言对应的版本,选自
    references/output.md
    中的免责声明变体。不得同时展示多种语言版本。

Error handling

错误处理

Situation简体回复繁體回覆English reply
command not found: longbridge
回退到 MCP;若不可用,请安装 longbridge-terminal。回退到 MCP;若不可用,請安裝 longbridge-terminal。Fall back to MCP; if unavailable install longbridge-terminal.
stderr
not logged in
/
unauthorized
请运行
longbridge auth login
請執行
longbridge auth login
Run
longbridge auth login
.
constituent
/
sector-screener
returns empty
未能获取候选池,请确认指数或行业关键词。未能獲取候選池,請確認指數或行業關鍵詞。Cannot fetch universe; verify the index or sector keyword.
User-named sector is on the excluded list (e.g. 航空 / pre-revenue biotech)该行业整体不符合巴菲特选股逻辑(已说明原因),推荐改看 {替代行业};如仍想分析,可改用
longbridge-fundamental
該行業整體不符合巴菲特選股邏輯(已說明原因),推薦改看 {替代行業};如仍想分析,可改用
longbridge-fundamental
The sector does not fit Buffett's framework (reason given); suggest {alternative sector}; for early-stage analysis use
longbridge-fundamental
.
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
command not found: longbridge
回退到 MCP;若不可用,请安装 longbridge-terminal。回退到 MCP;若不可用,請安裝 longbridge-terminal。Fall back to MCP; if unavailable install longbridge-terminal.
stderr
not logged in
/
unauthorized
请运行
longbridge auth login
請執行
longbridge auth login
Run
longbridge auth login
.
constituent
/
sector-screener
返回空
未能获取候选池,请确认指数或行业关键词。未能獲取候選池,請確認指數或行業關鍵詞。Cannot fetch universe; verify the index or sector keyword.
用户指定的行业在排除列表中(例如航空/未盈利生物科技)该行业整体不符合巴菲特选股逻辑(已说明原因),推荐改看{替代行业};如仍想分析,可改用
longbridge-fundamental
該行業整體不符合巴菲特選股邏輯(已說明原因),推薦改看{替代行業};如仍想分析,可改用
longbridge-fundamental
The sector does not fit Buffett's framework (reason given); suggest {alternative sector}; for early-stage analysis use
longbridge-fundamental
.
某只股票的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
longbridge
CLI is not installed, use MCP tools (
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp
,
quote
scope):
MCP toolCLI equivalent
mcp__longbridge__constituent
longbridge constituent
mcp__longbridge__calc_indexes
longbridge calc-index
mcp__longbridge__quote
longbridge quote
mcp__longbridge__basicinfo
longbridge basicinfo
mcp__longbridge__financial_report
longbridge financial-report
mcp__longbridge__kline
longbridge kline
mcp__longbridge__dividend
longbridge dividend
mcp__longbridge__corporate
longbridge corporate
mcp__longbridge__ownership
longbridge ownership
mcp__longbridge__insresearch
longbridge insresearch
mcp__longbridge__company_profile
longbridge company-profile
mcp__longbridge__peer_comparison
longbridge peer-comparison
mcp__longbridge__sector_screener
longbridge sector-screener
若未安装
longbridge
CLI,使用MCP工具(
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp
,
quote
权限):
MCP工具CLI等效命令
mcp__longbridge__constituent
longbridge constituent
mcp__longbridge__calc_indexes
longbridge calc-index
mcp__longbridge__quote
longbridge quote
mcp__longbridge__basicinfo
longbridge basicinfo
mcp__longbridge__financial_report
longbridge financial-report
mcp__longbridge__kline
longbridge kline
mcp__longbridge__dividend
longbridge dividend
mcp__longbridge__corporate
longbridge corporate
mcp__longbridge__ownership
longbridge ownership
mcp__longbridge__insresearch
longbridge insresearch
mcp__longbridge__company_profile
longbridge company-profile
mcp__longbridge__peer_comparison
longbridge peer-comparison
mcp__longbridge__sector_screener
longbridge sector-screener

Related skills

相关工具

  • Single-stock Buffett deep diagnostic →
    longbridge-buffett-moat-analyzer
    (the natural next step from every card)
  • 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, disclaimer
longbridge-buffett-moat-stock-screener/
├── SKILL.md
└── references/
    ├── criteria.md   # 第一层严格过滤规则、第二层加权评分、Verdict矩阵、持仓周期映射、排除类别
    └── output.md     # 候选卡片模板、选择理由、用户教育模块、数据源附录、免责声明