Bash Defensive Patterns
Implements robust, production-grade shell scripting practices using error handling and safety-first programming patterns.
This skill provides comprehensive guidance for writing fault-tolerant and maintainable Bash scripts. It enables Claude to implement strict mode, safe variable handling, error trapping, and idempotent design patterns, ensuring that automation scripts, CI/CD pipelines, and system utilities run reliably across different platforms. By focusing on defensive techniques like atomic file writes and dry-run support, it helps developers prevent common pitfalls such as word splitting errors, silent failures, and accidental data loss.
Características Principales
01Structured logging and dry-run mode support
02Safe variable quoting and array handling patterns
03Bash Strict Mode implementation (set -Eeuo pipefail)
04Idempotent script design for repeatable execution
0581 GitHub stars
06Robust error trapping and cleanup mechanisms
Casos de Uso
01Developing maintainable shell script libraries for enterprise environments
02Building reliable CI/CD pipeline automation scripts
03Creating system administration utilities that handle edge cases safely