
Built for developers who've been burned by shell scripts failing in production. Implements bash strict mode, proper error trapping, and variable quoting patterns that prevent the usual disasters. Covers atomic file operations, signal handling for background processes, and idempotent script design. The argument parsing and logging templates alone will save you from reinventing wheels. Most valuable for CI/CD pipelines and system automation where a script failure at 2 AM costs real money. Takes the guesswork out of defensive bash programming with patterns that actually work in the wild.
$ npx -y skills add wshobson/agents --skill bash-defensive-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Comprehensive guidance for writing production-ready Bash scripts using defensive programming techniques, error handling, and safety best practices to prevent common pitfalls and ensure reliability.
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
set -Eeuo pipefail"$variable" prevents word splittingcommand -v - Safer than which for checking executablesSponsors