What problem does it solve? Shell scripts often fail silently, mishandle edge cases, or cause destructive side effects in production environments. This Skill provides proven defensive programming patterns that make Bash scripts fail safely, handle errors predictably, and remain safe to rerun. ## Core Features & Use Cases - Strict Mode & Error Trapping: Enforces set -Eeuo pipefail with ERR/EXIT traps for early failure detection and guaranteed cleanup of temporary resources. - Safe Variable & File Handling: Covers quoting rules, array iteration, NUL-safe file processing, atomic writes, and safe move/delete operations. - Production Patterns: Includes robust argument parsing, structured logging, signal-aware process orchestration, dependency checking, dry-run support, and idempotent design. - Use Case: When writing a CI/CD deployment script that must clean up temp files on failure, validate required environment variables, and support a dry-run mode before touching production systems. ## Quick Start Write a production-grade Bash deployment script using strict mode, error trapping, argument parsing, and structured logging.