From shell-scripting
Master defensive Bash programming for production-grade scripts: error handling, safety patterns, CI/CD pipelines, and 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 yo-steven/agents-exploration-20260523 --plugin shell-scriptingTeaches 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.
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.