Agent skill

Factor Of Safety Failure Margin

by hashgraph-online in hashgraph-online/awesome-codex-plugins

A skill your agent uses when planning capacity, redundancy, graceful degradation, or recovery for systems that must keep working under stress — performance budgets, dependency failure handling…

Apache-2.0Auto-check passedDevOps & Cloud

Install Factor Of Safety Failure Margin

skills CLI
$ npx skills add hashgraph-online/awesome-codex-plugins --skill factor-of-safety-failure-margin -a claude-code

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

GitHub CLI
$ gh skill install hashgraph-online/awesome-codex-plugins factor-of-safety-failure-margin --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/hashgraph-online/awesome-codex-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/HDeibler/universal-design-principles/plugins/process-and-robustness-principles/skills/factor-of-safety-failure-margin .claude/skills/factor-of-safety-failure-margin && 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
factor-of-safety-failure-margin
GitHub stars
1.3k
Token cost
~1.9k tokens
SKILL.md length
690 words
Files
2 (incl. references)
Skills in repo
716
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when planning capacity, redundancy, graceful degradation, or recovery for systems that must keep working under stress — performance budgets, dependency failure handling…

  • Works in 4 steps: The dependency map. List every external… → The capacity headroom audit. What's… → The "what crashes the page?" check.… → …
  • Planning capacity
  • SKILL.md covers Capacity margin, Dependency margin, Graceful degradation and Error budgets (Google SRE), plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Factor Of Safety Failure Margin is an agent skill from hashgraph-online/awesome-codex-plugins. Use this skill when planning capacity, redundancy, graceful degradation, or recovery for systems that must keep working under stress — performance budgets, dependency failure handling, retry logic, error budgets, infrastructure capacity. Trigger when scoping infrastructure, designing error-handling architecture, planning for failure modes, or reviewing reliability incidents. Sub-aspect of factor-of-safety; read that first.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/sre-and-reliability-patterns.md`).

It sits in DevOps & Cloud, covering Error handling, Site reliability engineering and Web performance. The repository describes itself as: A curated list of awesome OpenAI Codex / ChatGPT plugins, skills, and resources. The 1 Codex Marketplace. See live plugins at: https://hol.org/plugins/best-codex-plugins. The licence is Apache-2.0.

When your agent uses it

  • Planning capacity
  • Graceful degradation
  • Recovery for systems that must keep working under stress — performance budgets
  • Dependency failure handling

Example prompts

  • “/factor-of-safety-failure-margin”

Workflow steps

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

  1. The dependency map. List every external call. For each, ask: what's the failure mode? What's the user experience when it fails?
  2. The capacity headroom audit. What's current peak utilization? Less than 50% headroom is fragile.
  3. The "what crashes the page?" check. Disable each dependency in turn. What still renders? What breaks?
  4. The error-budget review. If you're using SLOs, regularly review error-budget consumption. Adjust velocity vs. reliability accordingly.

What it can do on your machine

Read from SKILL.md and the folder at commit 3e1456a. 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 (its code samples are javascript).

    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

Factor Of Safety Failure Margin loads about 1.9k tokens when it runs, and up to ~3.4k if it reads all its reference files. Until then it costs about 115 tokens; SKILL.md has 690 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~115
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.4k

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 hashgraph-online/awesome-codex-plugins at commit 3e1456a, republished under its Apache-2.0 licence (© hashgraph-online). 690 words, ~1,850 tokens.

Download SKILL.mdSave it as .claude/skills/factor-of-safety-failure-margin/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
factor-of-safety-failure-margin
description
Use this skill when planning capacity, redundancy, graceful degradation, or recovery for systems that must keep working under stress — performance budgets, dependency failure handling, retry logic, error budgets, infrastructure capacity. Trigger when scoping infrastructure, designing error-handling architecture, planning for failure modes, or reviewing reliability incidents. Sub-aspect of `factor-of-safety`; read that first.

Failure margin: capacity, dependency, and graceful degradation

The complement to content-stress safety: designing the system itself to absorb failures and load spikes without falling over. The discipline is anticipating which way the system might fail and building in margin or fallback.

Capacity margin

A system designed to handle exactly its current peak load will fail when load grows. Sustainable systems run at meaningful headroom.

Sizing rule of thumb
  • Steady-state load: design capacity at 2–3x typical load.
  • Anticipated peak: design at 3–5x typical (covers daily/weekly spikes).
  • Burst capacity: have ability to scale to 5–10x for marketing, viral events.

Cloud auto-scaling helps but isn't infinite — set explicit upper bounds and rate limits to prevent cost runaways during attacks.

Headroom warning thresholds

Set monitoring at sub-capacity thresholds:

70% utilization → notify; investigate growth
85% utilization → page on-call; immediate investigation
95% utilization → critical; emergency response

Acting at 70% is far cheaper than acting at 100% (when the system has already started failing).

Dependency margin

Most systems depend on external services: databases, third-party APIs, internal microservices. Each dependency is a potential failure point.

Strategies
Timeouts everywhere

Every external call should have a timeout. Without timeouts, a slow dependency can exhaust your connection pool or thread pool, cascading failure.

js
const result = await Promise.race([
  api.fetchUser(userId),
  new Promise((_, reject) =>
    setTimeout(() => reject(new Error('timeout')), 2000)
  )
]);
Retries with backoff

For transient failures, retry — but with exponential backoff to avoid hammering a struggling dependency.

js
async function fetchWithRetry(fn, maxRetries = 3) {
  for (let attempt = 0; attempt <= maxRetries; attempt++) {
    try {
      return await fn();
    } catch (error) {
      if (attempt === maxRetries || !isRetryable(error)) throw error;
      const delay = Math.min(1000 * 2 ** attempt, 10000) + Math.random() * 1000;
      await sleep(delay);
    }
  }
}
Circuit breakers

When a dependency is failing repeatedly, stop trying for a while. Fail fast rather than waiting for timeouts.

Caching as a fallback

If the dependency is read-heavy, cache responses. When the dependency is down, serve stale data with a marker.

Graceful degradation

A system that fails gracefully provides reduced functionality during failures rather than no functionality.

Patterns:

Degraded UI states
jsx
function UserProfile({ userId }) {
  const { data, error } = useUser(userId);
  if (error?.transient) {
    return (
      <UserProfileSkeleton>
        <Banner type="warning">
          Some information couldn't load. Reload to try again.
        </Banner>
      </UserProfileSkeleton>
    );
  }
  return <UserProfileFull data={data} />;
}

The page renders something useful even when the data fetch fails.

Feature degradation

When the recommendation engine is down, show a generic feed instead of a personalized one. When the search index is down, show recent items instead of search results. The user gets something; the broken feature doesn't break the whole product.

Read vs. write degradation

A common pattern: when the database is overloaded, accept reads but defer writes (queue them for later processing). Users can browse; new content arrives slightly delayed.

Error budgets (Google SRE)

Service-level objectives (SLOs) define an explicit margin for failure. A 99.9% uptime SLO permits ~43 minutes of downtime per month — the "error budget."

The discipline:

  • When the budget has remaining capacity: the team can take risks (deploy faster, run experiments, push boundaries).
  • When the budget is consumed: the team slows down (no risky deploys, focus on reliability).

This formalizes the trade-off between feature velocity and reliability. Without explicit budgets, teams often default to either pushing too hard (frequent incidents) or being too cautious (slow innovation).

Show full SKILL.md (253 more words)Show less

Worked example: an API call wrapped in three layers of margin

js
async function getUserProfile(userId) {
  // Layer 1: request with timeout and retry
  const fetchFromAPI = () => withRetry(
    () => apiClient.get(`/users/${userId}`, { timeout: 2000 }),
    { maxRetries: 2, backoff: 'exponential' }
  );

  try {
    const data = await fetchFromAPI();
    cache.set(`user:${userId}`, data, { ttl: 60 });  // refresh cache
    return data;
  } catch (apiError) {
    // Layer 2: fall back to cache
    const cached = await cache.get(`user:${userId}`);
    if (cached) {
      logger.warn('API failed; serving cached data', { userId });
      return { ...cached, _stale: true };
    }
    // Layer 3: serve placeholder
    logger.error('API and cache failed; serving placeholder', { userId });
    return { id: userId, name: 'Unknown', _placeholder: true };
  }
}

Three layers of margin: retry with backoff, cache fallback, placeholder. The user always gets something; the system never crashes hard.

Anti-patterns

  • No timeouts. A slow dependency exhausts resources; the whole system slows or hangs.
  • Aggressive retries. Retrying immediately and infinitely. The struggling dependency gets DDoS'd by your retries.
  • No circuit breaker. Continuing to call a dead dependency forever; resources tied up.
  • All-or-nothing rendering. If any data fetch fails, render nothing. Users see broken pages.
  • Capacity at exactly current load. No margin for growth; the next traffic spike crashes the service.
  • Removing redundancy as "waste." Until the redundancy was needed, it looked unused.

Heuristics

  1. The dependency map. List every external call. For each, ask: what's the failure mode? What's the user experience when it fails?
  2. The capacity headroom audit. What's current peak utilization? Less than 50% headroom is fragile.
  3. The "what crashes the page?" check. Disable each dependency in turn. What still renders? What breaks?
  4. The error-budget review. If you're using SLOs, regularly review error-budget consumption. Adjust velocity vs. reliability accordingly.
  • factor-of-safety (parent).
  • factor-of-safety-content-stress — UI margin for content edge cases.
  • weakest-link — finding the dependency that's most likely to fail.
  • forgiveness — user-side equivalent of system graceful degradation.
  • feedback-loop — letting users know when degraded mode is active.

Resources

  • Google SRE Book (sre.google) — comprehensive guide to error budgets, SLOs, and reliability practice.
  • Petroski, H. To Engineer Is Human — engineering perspective on safety factors.
  • Reason, J. Human Error — system-level failure analysis.

© hashgraph-online, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in plugins/HDeibler/universal-design-principles/plugins/process-and-robustness-principles/skills/factor-of-safety-failure-margin of hashgraph-online/awesome-codex-plugins.

  • SKILL.md
  • references/sre-and-reliability-patterns.md

Open the folder on GitHubat commit 3e1456a

Compare with similar skills

Factor Of Safety Failure Margin 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.

Factor Of Safety Failure Margin compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Factor Of Safety Failure Margin this skillhashgraph-online/awesome-codex-plugins1.3k—~1.9kAutomated safety check: PassApache-2.0
Error HandlerEliasOulkadi/shokunin114—~3.6kAutomated safety check: NotesMIT
Performance EngineerDokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI508—~743Automated safety check: PassCustom licence
Release Itwondelai/skills2.4k—~4kAutomated safety check: PassMIT
Logging Observabilitygetsentry/toolkit920—~2.6kAutomated safety check: PassCustom licence
CI Validation Gatesbradygaster/squad3.3k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Error Handler

    EliasOulkadi/shokunin

    Design error handling, structured logging, and observability with OpenTelemetry (traces, metrics, logs), error classification, recovery patterns (retry with jitter, circuit breaker, bulkhead…

    114 GitHub stars~3.6k tokensUpdated 6 days ago
    DevOps & CloudAuto-check: notes
  • Performance Engineer

    Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI

    Expert performance engineer specializing in modern observability.

    508 GitHub stars~743 tokensUpdated 4 mo ago
    DevOps & CloudAuto-check passed
  • Release It

    wondelai/skills

    Build production-ready systems with stability patterns: circuit breakers, bulkheads, timeouts, and retry logic.

    2.4k GitHub stars~4k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Logging Observability

    getsentry/toolkit

    Official

    Review code for correct logging and error handling patterns.

    920 GitHub stars~2.6k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • CI Validation Gates

    bradygaster/squad

    Defensive CI/CD patterns: semver validation, token checks, retry logic, and draft detection

    3.3k GitHub stars~1.1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Crash Instrumentation

    nexus-labs-automation/mobile-observability

    Set up crash instrumentation with actionable context. An agent skill from nexus-labs-automation/mobile-observability.

    116 GitHub stars~744 tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed

More from hashgraph-online/awesome-codex-plugins

All 715 skills in this repo
  • Anime Reaction Gif

    hashgraph-online/awesome-codex-plugins

    Create original anime-style reaction stickers as looping GIFs and MP4 previews, using generated character pose sheets and timed key poses.

    1.3k GitHub stars~922 tokensUpdated today
    Auto-check passed
  • Calibredb

    hashgraph-online/awesome-codex-plugins

    Manage and query Calibre libraries with the calibredb CLI (local paths or Calibre Content server URLs).

    1.3k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Rust API Test Harness

    hashgraph-online/awesome-codex-plugins

    A skill your agent uses when adding, changing, testing, or debugging Rust HTTP APIs and services, especially when Codex needs black-box integration tests, random-port app startup, real database test…

    1.3k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Art

    hashgraph-online/awesome-codex-plugins

    Make a studio's game look like something at build time — a cover from a real frame of the game (free), painted covers, backdrops, textures and character plates from image models through the…

    1.3k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Calle

    hashgraph-online/awesome-codex-plugins

    Use CALL-E from Codex through the calle CLI. An agent skill from hashgraph-online/awesome-codex-plugins.

    1.3k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Game Balance Economy

    hashgraph-online/awesome-codex-plugins

    Balance game difficulty, resources, rewards, probability, progression, economies, and dominant strategies.

    1.3k GitHub stars~618 tokensUpdated today
    Auto-check passed

Questions about Factor Of Safety Failure Margin

What does Factor Of Safety Failure Margin do?

A skill your agent uses when planning capacity, redundancy, graceful degradation, or recovery for systems that must keep working under stress — performance budgets, dependency failure handling…. Factor Of Safety Failure Margin is an agent skill from hashgraph-online/awesome-codex-plugins. Use this skill when planning capacity, redundancy, graceful degradation, or recovery for systems that must keep working under stress — performance budgets, dependency failure handling, retry logic, error budgets, infrastructure capacity.

When should I use Factor Of Safety Failure Margin?

Factor Of Safety Failure Margin fits situations like: planning capacity; graceful degradation; recovery for systems that must keep working under stress — performance budgets; dependency failure handling.

How do I install Factor Of Safety Failure Margin in Claude Code?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill factor-of-safety-failure-margin -a claude-code`. Or copy the skill folder (plugins/HDeibler/universal-design-principles/plugins/process-and-robustness-principles/skills/factor-of-safety-failure-margin in hashgraph-online/awesome-codex-plugins) into .claude/skills/factor-of-safety-failure-margin in your project. Claude Code loads it when a task matches its description.

How do I install Factor Of Safety Failure Margin in Codex?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill factor-of-safety-failure-margin -a codex`. Or copy the skill folder (plugins/HDeibler/universal-design-principles/plugins/process-and-robustness-principles/skills/factor-of-safety-failure-margin in hashgraph-online/awesome-codex-plugins) into .agents/skills/factor-of-safety-failure-margin in your project. Codex loads it when a task matches its description.

Can I use Factor Of Safety Failure Margin 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 hashgraph-online/awesome-codex-plugins --skill factor-of-safety-failure-margin -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/factor-of-safety-failure-margin, .gemini/skills/factor-of-safety-failure-margin, .github/skills/factor-of-safety-failure-margin and .opencode/skills/factor-of-safety-failure-margin in your project.

What does Factor Of Safety Failure Margin need to run?

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

Does Factor Of Safety Failure Margin 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 Factor Of Safety Failure Margin 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 Factor Of Safety Failure Margin use?

Factor Of Safety Failure Margin is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Factor Of Safety Failure Margin use?

About 1.9k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.

What are the alternatives to Factor Of Safety Failure Margin?

Skills that share tags, products or a category with Factor Of Safety Failure Margin: Error Handler (EliasOulkadi/shokunin, 114 stars), Performance Engineer (Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI, 508 stars), Release It (wondelai/skills, 2.4k stars) and Logging Observability (getsentry/toolkit, 920 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Factor Of Safety Failure Margin?

hashgraph-online (a GitHub organization) maintains it in hashgraph-online/awesome-codex-plugins, which has 1,267 GitHub stars. The repository holds 716 skills in this directory. The repository was last updated on October 10, 2026.

Source: hashgraph-online/awesome-codex-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.