thinking-margin-of-safety
Build in buffers for unknown unknowns and don't optimize to the edge. Use for capacity planning, deadline estimation, architecture design, and risk management.
npx skills add majiayu000/claude-skill-registry --skill thinking-margin-of-safety --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Margin of Safety ## Overview Margin of Safety, borrowed from Benjamin Graham's investment philosophy and structural engineering, is the practice of building in buffers to account for unknown unknowns. In a world of uncertainty, systems optimized to the edge are brittle. Robust systems have slack, reserves, and room for error. **Core Principle:** Build in buffers. The world is uncertain. Systems without margin fail when stressed. ## When to Use - Capacity planning - Deadline and timeline estimation - Architecture design - Resource allocation - Risk management - SLA commitments - Infrastructure provisioning - Any commitment under uncertainty Decision flow: ``` Making a commitment or design? → Is there uncertainty? → yes → BUILD IN MARGIN → Are you optimizing tightly? → yes → ADD SLACK → What if your estimates are wrong? → Consider margin ``` ## The Margin of Safety Framework ### Step 1: Identify Your Estimate What's your best guess for the requirement? ``` Estimate: Need 100 requests/second capacity Estimate: Project will take 6 weeks Estimate: Need 500GB storage for year 1 ``` ### Step 2: Quantify Your Uncertainty How confident are you, and what could you be missing? ```markdown #
- Overview
- When to Use
- The Margin of Safety Framework
- Step 1: Identify Your Estimate
- Step 2: Quantify Your Uncertainty
- Step 3: Calculate Required Margin
- Step 4: Apply Margin
- Step 5: Monitor and Adjust
- Margin Patterns
- Capacity Margin
- Time Margin
- Financial Margin
- Design Margin
- When to Use Different Margins
What does the thinking-margin-of-safety skill do?
Build in buffers for unknown unknowns and don't optimize to the edge. Use for capacity planning, deadline estimation, architecture design, and risk management.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill thinking-margin-of-safety --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
