OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add wshobson/agents --skill bash-defensive-patterns
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.
npx skills add wshobson/agents --skill bash-defensive-patterns
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 executables