Generates a safe, well-commented Bash/Zsh shell script with set -euo pipefail, input validation, guards against destructive actions, dry-run mode, and idempotent design. Use when someone says "write a shell script", "automate this with bash", "cron script for X", "script to batch process files", or needs CLI automation with proper error handling.