bash-pro - Defensive Bash scripting for automation and CI/CD
Write and review 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
- Harden Bash scripts
- Parse arguments safely
- Validate external inputs
- Handle files defensively
- Orchestrate processes safely
- Implement structured logging
- Add Bats tests
- Run ShellCheck and shfmt
Inputs
- Bash scripts
- Automation requirements
- Target platforms
- Command-line arguments
- Environment variables
- Test cases
- External command dependencies
Outputs
- Hardened Bash scripts
- Test files
- Lint results
- Usage documentation
- Logging output
- Exit statuses
Requirements
- Bash environment
- Bash 4.4+ for recommended features
- Bats for testing
- ShellCheck for static analysis
- shfmt for formatting
- Required external commands
