Failure Mode Awareness

Failure Mode Awareness is a skill for Claude Code from ralfyishere/rules-with-receipts. It costs 109 tokens per session (1,447 once invoked), scanned A, original, MIT.

A planning guide that examines how a proposed design, recommendation, or change could fail before work begins. It focuses on likely failure causes and ways to reduce their impact.

In plain words
What is it for?
Use it when designing new systems, reviewing plans, making recommendations, or preparing changes involving migrations, external messages, or other meaningful impact.
Why use it?
It exposes ordinary risks early, when changing the plan is cheaper than repairing a shipped system or a decision with wider consequences.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when designing new systems, reviewing plans, making recommendations, or preparing changes involving migrations, external messages, or other meaningful impact.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ralfyishere/rules-with-receipts/failure-mode-awareness
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ralfyishere/rules-with-receipts --skill failure-mode-awareness
Clone the repo
git clone --depth 1 https://github.com/ralfyishere/rules-with-receipts

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Failure Mode Awareness

README.md
[![agentmods](https://agentmods.dev/badge/skills/ralfyishere/rules-with-receipts/failure-mode-awareness/github.svg)](https://agentmods.dev/skills/ralfyishere/rules-with-receipts/failure-mode-awareness)
Your own site
<a href="https://agentmods.dev/skills/ralfyishere/rules-with-receipts/failure-mode-awareness"><img src="https://agentmods.dev/badge/skills/ralfyishere/rules-with-receipts/failure-mode-awareness/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Failure Mode Awareness

Your own site · 80×15
<a href="https://agentmods.dev/skills/ralfyishere/rules-with-receipts/failure-mode-awareness"><img src="https://agentmods.dev/badge/skills/ralfyishere/rules-with-receipts/failure-mode-awareness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,447 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.01447
Opus 5 $0.00055 $0.00724
Sonnet 5 $0.00022 $0.00289
Haiku 4.5 $0.00011 $0.00145

Measured 12d ago against content hash 40b4ed3bb3d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

Failure Mode Awareness scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/failure-mode-awareness/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Failure Mode Awareness

Purpose

Cheap foresight beats expensive hindsight. Most failures aren't exotic — they're standard, catalogued, and visible in advance to anyone who asks "how does this break?" before asking "how does this work?" This skill runs that question early, when changing course costs a sentence instead of a rewrite.

When to use this skill

  • At plan time (plan-gate risk section) and design time — before the approach hardens.
  • Before recommending a course of action the user will invest in.
  • When reviewing someone else's plan, proposal, or idea.
  • Before shipping anything with real blast radius: data migrations, external sends, public artifacts.

When NOT to use this skill

  • On finished work — that's adversarial-verify's job (attack the artifact, not the idea).
  • On low-stakes, reversible tasks. Enumerating failure modes for a typo fix is noise.
  • As a reason not to act: the output is mitigations and watch-items, not paralysis.

Operating procedure

Step 1 — Run the premortem. "It's three months later and this failed. What's the most boring, most likely reason?" Write down the top 2–3. The boring qualifier matters: real failures are usually mundane (nobody used it, the data was dirty, the dependency changed), not dramatic.

Step 2 — Sweep the relevant catalog (pick the sections that apply):

Software failures

  • Edge inputs: empty, null, zero, negative, huge, duplicate, malformed, unicode.
  • State: concurrent access, partial failure mid-operation, retries causing double-execution, stale caches.
  • Integration: the other system is down, slow, rate-limiting, or returns a shape you didn't expect.
  • Environment: works locally, differs in prod (versions, permissions, paths, env vars, clock, locale).
  • Scale and time: fine at 10 rows, dead at 10 million; fine today, broken at month-end/DST/leap year.

Reasoning failures

  • Anchoring on the first hypothesis; confirmation bias in which evidence gets collected.
  • Survivorship bias (studying only what succeeded); base-rate neglect ("this time is different").
  • Extrapolating from an unrepresentative sample; correlation read as cause.

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 93 lines · 0 tokens per session scan A 40b4ed3bb3d4

Subscribe to this mod's changes

Failure Mode Awareness is a skill published in the GitHub repository ralfyishere/rules-with-receipts (2 stars, last pushed 2mo ago), licensed MIT. It adds 109 tokens to every session and 1,447 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

happiness-skill

A Chinese-language guide to happiness based on reducing unmet wants, focusing on the present, and treating happiness as a trainable skill.

kangarooking/cangjie-skill · 136 tokens

setup-matt-pocock-skills

A setup skill that configures engineering skills for a repository, including its issue tracker, labels, and documentation layout. A repository is the project folder managed by version control.

devcxl/mattpocock-skills-zh · 43 tokens

frontend-design

A design guide for building polished web interfaces such as pages, dashboards, forms, navigation, and reusable UI components. It covers HTML, CSS, JavaScript, and common frontend frameworks.

AnastasiyaW/codex-claude-code-config · 264 tokens

alterlab-cobrapy

Build and analyze genome-scale constraint-based metabolic models with COBRApy — flux balance analysis (FBA), flux variability analysis (FVA), gene and reaction knockouts, flux sampling, and SBML model I/O. Use when simulating metabolic networks, predicting growth or knockout phenotypes, or running systems-biology and…

AlterLab-IEU/AlterLab-Academic-Skills · 91 tokens

alterlab-depmap

Query the Cancer Dependency Map (DepMap) for cancer cell line gene dependency scores (CRISPR Chronos), drug sensitivity data, and gene effect profiles. Use when identifying cancer-specific genetic vulnerabilities, finding synthetic lethal interactions, checking whether a gene is essential in given cell lines, or…

AlterLab-IEU/AlterLab-Academic-Skills · 77 tokens

alterlab-qutip

Simulates open quantum systems with QuTiP, the Quantum Toolbox in Python, solving Lindblad master equations (mesolve), Monte Carlo trajectories (mcsolve), and unitary dynamics (sesolve). Use when studying master-equation or Lindblad dynamics, decoherence, dissipation, quantum optics, cavity QED, or open-system time…

AlterLab-IEU/AlterLab-Academic-Skills · 134 tokens