bash-defensive-patterns - Defensive Bash programming patterns for production scripts
Provides defensive Bash programming techniques, error handling, and safe scripting practices for production automation.
Tags
Updated: 2026-09-10Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Enable strict mode and safe defaults
- Validate inputs and quote variables
- Handle files and edge cases safely
- Implement logging and error traps
- Add basic tests for scripts
Inputs
- Target shell and OS environment details
- Script parameters and inputs
- Implementation playbook file
Outputs
- Production-ready Bash scripts
- Execution log messages
Requirements
- Bash shell environment
- Non-root execution privileges
