Margin Of Safety logo

Margin Of Safety

Community
kangarooking
margin-of-safety

用户准备做出一个重大决策(投资/收购/承诺),需要评估下行保护是否充足时。或在估值不确定时决定是否行动。 语言信号:"这个价格够不够低"/"万一判断错了怎么办"/"我能承受多少亏损"/"下行空间有多大" 不适用于:日常低风险决策、纯上行分析(不关心下行保护时)。

Overview

Publisherkangarooking
Repositorybuffett-letters-skill
Skill namemargin-of-safety
Stars
109
Forks
20
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kangarooking on GitHub. Read the source before you install it.

Installation

Install the Margin Of Safety AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kangarooking/buffett-letters-skill/tree/main/margin-of-safety
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kangarooking/buffett-letters-skill.git /tmp/buffett-letters-skill
mkdir -p .claude/skills
cp -r /tmp/buffett-letters-skill/margin-of-safety .claude/skills/margin-of-safety
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Margin Of Safety in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Margin Of Safety on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Margin Of Safety is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

安全边际

R — 原文 (Reading)

"This substantial excess of value creates a comfortable margin of safety in each transaction. This individual margin of safety, coupled with a diversity of commitments creates a most attractive package of safety and appreciation potential."

— Warren Buffett, 1961年信

I — 方法论骨架 (Interpretation)

安全边际是"买入前的保护垫":买入价格必须大幅低于你评估的价值,这个差额就是安全边际。

  • 安全边际 ≠ 止损线(止损是买入后的风控,安全边际是买入前的保护)
  • 安全边际 ≠ 分散投资(安全边际在单个投资层面提供保护,分散是第二层)
  • 安全边际的大小应与不确定性成正比——越不确定,要求越大的安全边际
  • 安全边际让你在判断出错时仍可能不亏钱

A1 — 书中的应用

案例: Washington Post 1973年

  • 问题: 股价大跌,是否买入?
  • 使用: 以约1/4内在价值买入——安全边际高达75%
  • 结果: 即使估值有误,75%的缓冲也足以保护本金;实际回报数十倍

A2 — 触发场景

  1. 准备买入一个资产但估值不太确定
  2. 分析一个"看起来便宜"的机会
  3. 在下跌市场中考虑加仓
  4. 评估一个投资的最大可能亏损

语言信号

  • "万一我判断错了怎么办?"
  • "这个价格跌到多少我才安全?"
  • "下行风险有多大?"
  • "需要多大的折扣才值得买?"

与相邻 skill 的区分

  • 与 circle-of-competence 的区别:能力圈问"我能不能判断价值",安全边际问"判断错了怎么办"
  • 与 no-leverage 的区别:不用杠杆是绝对底线,安全边际是每个投资的具体保护

E — 可执行步骤

  1. 估算内在价值的区间(不是点估计)

    • 完成标准:给出悲观/中性/乐观三个场景的价值估计
  2. 计算当前价格的安全边际

    • 完成标准:(内在价值下限 - 当前价格) / 内在价值下限 = 安全边际百分比
    • 判停:如果安全边际 < 你的最低要求(建议≥25%)→ 不行动
  3. 与不确定性匹配

    • 完成标准:不确定性高的投资要求更大安全边际(建议≥40%)

B — 边界

  • 安全边际不是万能的——纺织业有安全边际但行业衰退使价值归零
  • 安全边际不保护"买了错误行业"的风险——需要结合能力圈和护城河
  • 对高确定性+高成长企业,安全边际可能很小但投资仍然合理
  • 作者盲点:巴菲特早期过度依赖安全边际(雪茄蒂策略),后来认识到企业质量更重要

相关 skills (阶段 3 填充)

  • depends-on: circle-of-competence, aesop-three-questions
  • composes-with: fear-and-greed, mr-market

审计信息

  • 验证通过: V1 ✓ / V2 ✓ / V3 ✓
  • 蒸馏时间: 2026-04-16

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Margin Of Safety AI skill do?

用户准备做出一个重大决策(投资/收购/承诺),需要评估下行保护是否充足时。或在估值不确定时决定是否行动。 语言信号:"这个价格够不够低"/"万一判断错了怎么办"/"我能承受多少亏损"/"下行空间有多大" 不适用于:日常低风险决策、纯上行分析(不关心下行保护时)。

Why use Margin Of Safety on TypingMind?

Because you install it once and use it with any model. Margin Of Safety is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Margin Of Safety in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kangarooking/buffett-letters-skill/tree/main/margin-of-safety. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Margin Of Safety?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Margin Of Safety?

As many as you like. As long as a model supports skills, you can use Margin Of Safety with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Margin Of Safety AI skill free?

Yes. It is published on GitHub by kangarooking under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇