This skill provides comprehensive guidance for writing enterprise-ready Bash scripts by enforcing strict error handling, variable safety, and idempotent design. It helps developers avoid common pitfalls like silent failures, word-splitting bugs, and unsafe temporary file handling, making shell scripts reliable enough for critical CI/CD pipelines and system utilities. By incorporating patterns for structured logging, signal handling, and dry-run support, it transforms fragile scripts into maintainable, production-quality software components.
Key Features
01Robust CLI argument parsing and dependency checking
020 GitHub stars
03Comprehensive error trapping and resource cleanup patterns
04Idempotent design patterns and dry-run execution support
05Strict mode enforcement using set -Eeuo pipefail
06Safe variable quoting and array manipulation techniques