Agent skill

Thinking Margin Of Safety

by tjboudreaux in tjboudreaux/cc-thinking-skills

When provisioning, setting a limit, or committing an estimate under uncertainty, size a buffer to residual error and the cost of breach—not to the optimistic edge.

MITAuto-check passed

Install Thinking Margin Of Safety

skills CLI
$ npx skills add tjboudreaux/cc-thinking-skills --skill thinking-margin-of-safety -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tjboudreaux/cc-thinking-skills thinking-margin-of-safety --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tjboudreaux/cc-thinking-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/thinking-margin-of-safety .claude/skills/thinking-margin-of-safety && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
thinking-margin-of-safety
GitHub stars
1.6k
Token cost
~844 tokens
SKILL.md length
388 words
Files
1
Skills in repo
26
Repo updated
First seen
Licence
MIT

At a glance

When provisioning, setting a limit, or committing an estimate under uncertainty, size a buffer to residual error and the cost of breach—not to the optimistic edge.

  • Works in 6 steps: Point estimate without padding. State… → Uncertainty and breach cost. List… → Size the buffer. Multiply or add margin… → …
  • SKILL.md covers When to Use, When NOT to Use, Procedure and Output, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Thinking Margin Of Safety is an agent skill from tjboudreaux/cc-thinking-skills. When provisioning, setting a limit, or committing an estimate under uncertainty, size a buffer to residual error and the cost of breach—not to the optimistic edge.

Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: 28 eval-informed mental models and critical-thinking skills for Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools. The licence is MIT.

Example prompts

  • “/thinking-margin-of-safety”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Point estimate without padding. State the base requirement in explicit units (RPS, weeks, GB, ms) and confidence (high / medium / low).
  2. Uncertainty and breach cost. List drivers (spike, growth, unknowns, dependency variance). State what fails if undershot: outage, missed…
  3. Size the buffer. Multiply or add margin to residual uncertainty and stakes—not to vanity. Typical bands (adjust with evidence)
  4. Ruin constraint. If a breach can cause irreversible harm, size so the worst plausible miss still stays above the failure threshold; if…
  5. Strongest countercase. Challenge both under-buffering ("we will scale later") and over-buffering (idle cost, complexity). Prefer…
  6. Commit and monitor. Publish the buffered commitment, the failure threshold, and the metric that would prove margin excessive or thin. Stop…

What it can do on your machine

Read from SKILL.md and the folder at commit 7b8fece. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Thinking Margin Of Safety loads about 844 tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 388 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~844

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from tjboudreaux/cc-thinking-skills at commit 7b8fece, republished under its MIT licence (© tjboudreaux). 388 words, ~844 tokens.

Download SKILL.mdSave it as .claude/skills/thinking-margin-of-safety/SKILL.md (or your agent's skills folder).
name
thinking-margin-of-safety
description
When provisioning, setting a limit, or committing an estimate under uncertainty, size a buffer to residual error and the cost of breach—not to the optimistic edge.
disable-model-invocation
true

Margin of Safety

Core rule: commit a buffered number when residual uncertainty plus breach cost can cause ruin or costly failure. Margin covers estimation error; it is not free slack for laziness.

When to Use

  • Capacity, timeouts, pool sizes, queue depths, storage, or SLA numbers under load uncertainty
  • Timeline or budget commitments where underestimation is costly
  • Architecture headroom when scaling or recovery is slow
  • Any public or production commitment where being wrong has asymmetric downside

When NOT to Use

  • Breach is detected immediately and fixed near-zero cost (fast auto-scale, live-tunable limit)—static fat buffers waste resources
  • cost(buffer) > P(breach) × cost(breach)—right-size or measure instead of maxing out
  • Uncertainty is eliminable by measurement or lookup—get the real number first
  • Stopping-criterion / search budget problems—use bounded rationality, not padding
  • Fully known parameters and low stakes where edge optimization is the goal

Procedure

  1. Point estimate without padding. State the base requirement in explicit units (RPS, weeks, GB, ms) and confidence (high / medium / low).
  2. Uncertainty and breach cost. List drivers (spike, growth, unknowns, dependency variance). State what fails if undershot: outage, missed launch, data loss, reputation—and whether failure is recoverable or ruinous.
  3. Size the buffer. Multiply or add margin to residual uncertainty and stakes—not to vanity. Typical bands (adjust with evidence):
    • Well-known, low consequence: ~1.2–1.5×
    • Familiar with unknowns / reversible: ~1.5–2×
    • New domain, external deps, SLA, irreversible: ~2–3× Cap or cut when buffer cost exceeds expected breach cost.
  4. Ruin constraint. If a breach can cause irreversible harm, size so the worst plausible miss still stays above the failure threshold; if that buffer is unaffordable, change the design (shed load, degrade, stage) rather than pretend precision.
  5. Strongest countercase. Challenge both under-buffering ("we will scale later") and over-buffering (idle cost, complexity). Prefer measure-then-trim when history exists.
  6. Commit and monitor. Publish the buffered commitment, the failure threshold, and the metric that would prove margin excessive or thin. Stop when the number is set and monitorable.
Show full SKILL.md (69 more words)Show less

Output

text
Base estimate: … (units, confidence)
Uncertainty drivers: …
Breach cost / failure threshold: …
Margin applied: …× (or absolute buffer …)
Buffered commitment: …
Ruin check: pass | redesign needed
Cost of margin vs expected breach cost: …
Monitor: metric … ; thin if … ; excessive if …

Verification

  • Falsify: If the buffered number equals the optimistic point estimate, no margin was applied—or if margin was added with zero stated breach cost, it is cargo-cult padding.
  • Stop: Once commitment, threshold, and monitor exist, stop stacking multipliers without new uncertainty evidence.
  • Over-application guard: Do not pad when adjustment is free and instant, or when the real number is cheaply measurable. Do not confuse search-stopping with capacity buffers.

© tjboudreaux, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/thinking-margin-of-safety of tjboudreaux/cc-thinking-skills.

Open the folder on GitHubat commit 7b8fece

Compare with similar skills

Thinking Margin Of Safety next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Thinking Margin Of Safety compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Thinking Margin Of Safety this skilltjboudreaux/cc-thinking-skills1.6k—~844Automated safety check: PassMIT
Commitsickn33/agentic-awesome-skills47k2 repos~1.3kAutomated safety check: PassMIT
Commitdavila7/claude-code-templates33k3 repos~730Automated safety check: PassMIT
Commitwindmill-labs/windmill18k—~447Automated safety check: PassCustom licence
Commitccusage/ccusage19k—~722Automated safety check: PassCustom licence
CommitsJetBrains/intellij-community21k—~589Automated safety check: PassCustom licence

Similar skills

  • Commit

    sickn33/agentic-awesome-skills

    ALWAYS use this skill when committing code changes — never commit directly without it.

    47k GitHub starsUsed in 2 repos~1.3k tokens
    DevelopmentAuto-check passed
  • Commit

    davila7/claude-code-templates

    Create commit messages following Sentry conventions. An agent skill from davila7/claude-code-templates.

    33k GitHub starsUsed in 3 repos~730 tokens
    DevelopmentAuto-check passed
  • Commit

    windmill-labs/windmill

    Create a git commit with conventional commit format. An agent skill from windmill-labs/windmill.

    18k GitHub stars~447 tokensUpdated today
    DevelopmentAuto-check passed
  • Commit

    ccusage/ccusage

    Creates atomic Conventional Commits. An agent skill from ccusage/ccusage.

    19k GitHub stars~722 tokensUpdated today
    DevelopmentAuto-check passed
  • Commits

    JetBrains/intellij-community

    Official

    Create, amend, or rename IntelliJ commits and write commit messages.

    21k GitHub stars~589 tokensUpdated today
    DevelopmentAuto-check passed
  • Commit

    antiwork/gumroad

    Stage and commit changes with a clear, concise commit message.

    9.8k GitHub stars~503 tokensUpdated today
    DevelopmentAuto-check passed

More from tjboudreaux/cc-thinking-skills

All 26 skills in this repo
  • Thinking Bounded Rationality

    tjboudreaux/cc-thinking-skills

    A skill your agent uses when search or investigation could run forever.

    1.6k GitHub stars~703 tokensUpdated 2 mo ago
    Auto-check passed
  • Thinking Circle Of Competence

    tjboudreaux/cc-thinking-skills

    A skill your agent uses when a specific claim may lack grounding.

    1.6k GitHub stars~733 tokensUpdated 2 mo ago
    Auto-check passed
  • Thinking Lindy Effect

    tjboudreaux/cc-thinking-skills

    A skill your agent uses when longevity of a non-perishable option matters.

    1.6k GitHub stars~650 tokensUpdated 2 mo ago
    Auto-check passed
  • Thinking Via Negativa

    tjboudreaux/cc-thinking-skills

    A skill your agent uses when the reflex is to add a feature, layer, or process.

    1.6k GitHub stars~735 tokensUpdated 2 mo ago
    Auto-check passed
  • Thinking Cynefin

    tjboudreaux/cc-thinking-skills

    When the right response mode is unclear, classify the cause-effect domain first; decompose disorder.

    1.6k GitHub stars~651 tokensUpdated 2 mo ago
    Auto-check passed
  • Thinking Five Whys Plus

    tjboudreaux/cc-thinking-skills

    When a fault is localized and the proximate cause is known but the systemic root is not, chain evidence-linked whys with a counterfactual stop and a countermeasure.

    1.6k GitHub stars~881 tokensUpdated 2 mo ago
    Auto-check passed

Questions about Thinking Margin Of Safety

What does Thinking Margin Of Safety do?

When provisioning, setting a limit, or committing an estimate under uncertainty, size a buffer to residual error and the cost of breach—not to the optimistic edge. Thinking Margin Of Safety is an agent skill from tjboudreaux/cc-thinking-skills. When provisioning, setting a limit, or committing an estimate under uncertainty, size a buffer to residual error and the cost of breach—not to the optimistic edge.

How do I install Thinking Margin Of Safety in Claude Code?

Run `npx skills add tjboudreaux/cc-thinking-skills --skill thinking-margin-of-safety -a claude-code`. Or copy the skill folder (skills/thinking-margin-of-safety in tjboudreaux/cc-thinking-skills) into .claude/skills/thinking-margin-of-safety in your project. Claude Code loads it when a task matches its description.

How do I install Thinking Margin Of Safety in Codex?

Run `npx skills add tjboudreaux/cc-thinking-skills --skill thinking-margin-of-safety -a codex`. Or copy the skill folder (skills/thinking-margin-of-safety in tjboudreaux/cc-thinking-skills) into .agents/skills/thinking-margin-of-safety in your project. Codex loads it when a task matches its description.

Can I use Thinking Margin Of Safety in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tjboudreaux/cc-thinking-skills --skill thinking-margin-of-safety -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/thinking-margin-of-safety, .gemini/skills/thinking-margin-of-safety, .github/skills/thinking-margin-of-safety and .opencode/skills/thinking-margin-of-safety in your project.

What does Thinking Margin Of Safety need to run?

SKILL.md names no scripts, command-line tools or credentials: Thinking Margin Of Safety is instructions for the agent only.

Does Thinking Margin Of Safety access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Thinking Margin Of Safety safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Thinking Margin Of Safety use?

Thinking Margin Of Safety is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Thinking Margin Of Safety use?

About 844 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Thinking Margin Of Safety?

Skills that share tags, products or a category with Thinking Margin Of Safety: Commit (sickn33/agentic-awesome-skills, 47k stars), Commit (davila7/claude-code-templates, 33k stars), Commit (windmill-labs/windmill, 18k stars) and Commit (ccusage/ccusage, 19k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Thinking Margin Of Safety?

tjboudreaux (a GitHub user) maintains it in tjboudreaux/cc-thinking-skills, which has 1,613 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on August 7, 2026.

Source: tjboudreaux/cc-thinking-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.