Skip to content
Back to skills

Fail Loud Never Fake

ASecurity

Use when integrating APIs, databases, auth, or configs. Prevents silent fallback data, mock returns in production paths, and fake success when something fails.

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added December 1, 2026
ai-agentsgoapidatabase

Works with

  • api

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add Ganesh-Dark/ai-coding-agent-skills --skill fail-loud-never-fake --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fail Loud Never Fake?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fail Loud Never Fake
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ganesh-dark-fail-loud-never-fake/badge)](https://www.skillsdirectory.com/skills/ganesh-dark-fail-loud-never-fake)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.