bash - Write safe Bash scripts following best practices
Provides templates, safe configurations, error handling, and best practices for creating Bash scripts, automation, and CLI tools.
Tags
Updated: 2026-09-11Capabilities
What this skill does
- Write standard Bash script templates
- Configure script safety settings
- Implement error handling and cleanup
- Perform file and variable conditionals
- Declare scoped and constant variables
- Execute loops and process substitutions
Inputs
- Command line arguments
- Input text files
- Required system commands
Outputs
- Console output messages
- Exit status codes
- Cleaned temporary files
Requirements
- Bash environment
- Shellcheck tool
