# Skill: Shell Scripting
**Trigger:** write a script, bash script, shell automation
**Description:** Create robust shell scripts with error handling, argument parsing, and best practices.
## Body
1. Start with #!/usr/bin/env bash
2. set -euo pipefail for strict error handling
3. Parse arguments with getopts or simple $1 $2
4. Use functions for reusable logic
5. Add --help flag with usage information
6. Test with shellcheck if available
7. Handle edge cases: empty input, missing files, network errors