fail-fast

Community

Fail fast, reveal failures early.

Authoryanko-belov
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill enforces fail-fast error handling to surface failures immediately and prevent silent corruption.

Core Features & Use Cases

  • Fail fast: throw errors at the point of failure rather than swallowing or returning defaults.
  • Propagate: errors flow to boundaries (API, UI) where they can be translated to meaningful responses.
  • Apply across: useful for input validation, invariants, and critical operations in APIs, services, and background jobs.
  • Use case: When processing a payment, a missing user or invalid card should throw an error rather than returning a false result.

Quick Start

Apply the fail-fast pattern to a function that handles critical operations to ensure invalid inputs throw immediately and errors propagate to the API boundary.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fail-fast
Download link: https://github.com/yanko-belov/code-craft/archive/main.zip#fail-fast

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.