Help us improve
Share bugs, ideas, or general feedback.
From shell-scripting
Master defensive Bash programming for production-grade scripts: error handling, safety patterns, CI/CD pipelines, and system utilities.
npx claudepluginhub wshobson/agents --plugin shell-scriptingHow this skill is triggered — by the user, by Claude, or both
Slash command
/shell-scripting:bash-defensive-patternsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
Applies defensive Bash patterns for production-grade scripts: strict mode, input validation, error traps, logging, and safety checks. Use for CI/CD pipelines, automation, and system utilities.
Generates defensive Bash scripts for production automation, CI/CD pipelines, and system utilities with POSIX compliance, error handling, testing, and modern features.
Enforces modern best practices for shell scripts: portable shebangs, strict mode, quoted variables, error traps, exit codes, and secure coding. Use when writing Bash or POSIX sh scripts.
Share bugs, ideas, or general feedback.
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