This skill provides a comprehensive framework for writing resilient shell scripts using defensive programming principles. It guides users through implementing Bash strict mode, sophisticated error trapping, safe variable handling, and idempotent designs. Ideal for developers building CI/CD pipelines, system administration tools, and automation scripts, it helps prevent common pitfalls like word splitting, pipe failures, and unhandled errors, resulting in scripts that are maintainable, portable, and secure across diverse environments.
Key Features
01Advanced error trapping and cleanup routines
02Robust CLI argument parsing and structured logging
03Safe variable quoting and array handling patterns
04Idempotent design for repeatable automation
05Strict Mode implementation (set -Eeuo pipefail)
060 GitHub stars