From shell-scripting
Teaches defensive Bash programming for production-grade scripts: strict mode, error trapping, input validation, idempotency, and structured logging. Use when writing robust shell scripts, CI/CD pipelines, or system utilities.
How 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.
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 executablesnpx claudepluginhub wshobson/agents --plugin shell-scriptingApplies 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.
Provides defensive Bash scripting standards for production automation, CI scripts, and skill glue code. Covers strict mode, quoting, argument parsing, traps, safe tempfiles, and the stream-separation/exit-code contract.