thinking-margin-of-safetylisted
Install: claude install-skill babypochi06/cc-thinking-skills
# 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
## Uncertainty Analysis
| Factor | Your Estimate | Uncertainty | Possible Range |
|--------|---------------|-------------|----------------|
| Traffic | 100 RPS | ±50% | 50-150 RPS |
| Spike multiplier | 3x | ±100% | 1.5x-6x |
| Growth rate | 20%/year | ±50% | 10-30%/year |
| Unkn