defensive-coding

Community

Build robust, safe code with layered validation.

Authorcyarie
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Defensive coding makes bugs structurally impossible rather than temporarily fixed. The core principle: validate at every layer data passes through, and instrument for observability so failures are diagnosable. A bug isn't fixed until it's impossible.

Core Features & Use Cases

  • Layered validation across entry points, business logic, environment guards, and observability
  • Clear exception handling with context propagation
  • Structured logging and tracing for diagnosability
  • Guards against dangerous operations and unsafe contexts

Quick Start

Instrument multi-layer validation and observability in your module to prevent defects.

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: defensive-coding
Download link: https://github.com/cyarie/cyarie-claude-plugin/archive/main.zip#defensive-coding

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 223,000+ vetted skills library on demand.