{"success":true,"name":"fail-fast-make-silent-failures-loud","description":"Writing code that could fail quietly without anyone noticing","category":"ai-brimind","path":"ai-brimind/fail-fast-make-silent-failures-loud/SKILL.md","file":"SKILL.md","content":"---\nname: fail-fast-make-silent-failures-loud\ndescription: \"Writing code that could fail quietly without anyone noticing\"\n---\n\n# Fail Fast: Make Silent Failures Loud\n\n## When to use\nYou are writing or reviewing code with catches, fallbacks, or defaults that could hide a real failure instead of reporting it.\n\n## Example request\nAn empty catch block 'so it doesn't crash' → the bug still happens, now invisibly; that is a swallowed error. Returning a default value when data is missing → wrong numbers spread silently through the app; that is failure masking. Ignoring a failed save and moving on → the user thinks it worked; that is a lie to the user. A background job fails and nothing tells anyone → discovered weeks later; missing alerting.\n\n## Instructions\nAdopt the mindset of an engineer who would rather hear an alarm than find smoke damage later. When handling any failure point: (1) For every catch, fallback, or default, ask 'if this triggers, will a human find out?' If the answer is no, the code hides bugs. (2) Make failures speak: log with enough context to understand what happened, show the user an honest error, or stop the operation — never continue as if nothing happened. (3) Only use a silent fallback when the failure is genuinely acceptable, and write a comment saying WHY it's safe to ignore. (4) Prefer crashing early with a clear message over limping along with corrupted state — a loud failure at the source is cheap; a quiet one discovered downstream is expensive. If you're unsure whether a failure matters, treat it as if it does and ask. Only finish once every failure path either recovers deliberately, reports loudly, or is documented as intentionally ignored — and explain which choice you made where.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #259\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}