Use when integrating APIs, databases, auth, or configs. Prevents silent fallback data, mock returns in production paths, and fake success when something fails.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Fail Loud Never Fake?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ganesh-dark-fail-loud-never-fake)
---
name: fail-loud-never-fake
description: Use when integrating APIs, databases, auth, or configs. Prevents silent fallback data, mock returns in production paths, and fake success when something fails.
---
# Fail Loud, Never Fake
Coding agents often try to make code run without crashing by slipping in dummy data, silent default values, or empty returns when an API, database, or config fails. That hides broken features until they hit production.
## Rules
- Never return fake, hardcoded, or mock data in production code paths when a real API, database, or service fails.
- Never mask missing environment variables or required config with silent fallback defaults (like `API_KEY = "dev-key"` or `|| []`). Validate required config at startup and fail loudly if missing.
- Never return `200 OK`, `true`, or an empty object from a `catch` block to hide an error. Surface or propagate the real failure with clear context.
- If a dependency or endpoint cannot be reached during development, report the exact blocker to the user instead of faking a working response.
## Example
Bad:
A payment or user profile fetch fails with a 500 error, so the agent wraps it in `try/catch` and returns `{ status: "ok", items: [] }` so the UI renders without errors.
Good:
The agent lets the error surface with a clear error message and proper failure status, logs the cause without leaking secrets, and tells the user what failed.