bash-pro - Defensive Bash scripting for production automation
Creates and reviews safe, portable, testable Bash scripts for automation, CI/CD pipelines, and system utilities.
Tags
Updated: 2026-10-04Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write defensive Bash scripts
- Review shell script safety
- Parse arguments safely
- Validate untrusted inputs
- Manage temporary resources
- Add Bats tests
- Run ShellCheck analysis
- Format scripts with shfmt
- Design dry-run modes
- Implement structured logging
Inputs
- Bash scripts
- Command-line arguments
- Environment variables
- Target platforms
- External command dependencies
Outputs
- Bash scripts
- Bats tests
- ShellCheck results
- Formatted shell files
- Usage documentation
- Logs and error messages
Requirements
- Bash environment
- Bash 4.4+ for selected features
- Bats for testing
- ShellCheck for analysis
- shfmt for formatting
