Bash Script Writer
Write robust bash scripts with proper error handling, argument parsing, and cross-platform compatibility.
Usage
Describe the automation task and this skill will write a production-quality bash script.
Examples
- "Write a deployment script that backs up the database first"
- "Create a script to batch resize images in a directory"
- "Build a setup script that installs all project dependencies"
Guidelines
- Always start with set -euo pipefail for strict error handling
- Use trap to clean up temporary files on exit
- Validate all inputs and provide helpful usage messages
- Quote all variables to handle spaces in paths
- Use shellcheck to validate scripts before deploying