shell-scripting-best-practices

Installation
SKILL.md

Shell Scripting Best Practices

Purpose

Shell scripts are the connective tissue of ops automation — glue between CLI tools, CI steps, and cron jobs — but Bash's defaults are unsafe for that role: a failed command doesn't stop the script, an unset variable silently expands to empty, and a failure in the middle of a pipeline is invisible unless explicitly checked. Getting the strict-mode/error-handling foundation right is what separates a script that fails loudly and safely from one that silently corrupts state, deletes the wrong path, or half-completes a multi-step operation and leaves the system in an unknown state.

When to use

Installs
1
GitHub Stars
46
First Seen
Nov 10, 2026