bash-pro - Write safe, portable Bash scripts
Develop and review defensive Bash scripts for automation, CI/CD pipelines, system utilities, testing, and portability.
Tags
Updated: 2026-10-05Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Harden shell scripts
- Parse arguments safely
- Validate external inputs
- Handle files defensively
- Manage temporary resources
- Orchestrate processes safely
- Implement structured logging
- Add Bats tests
- Run ShellCheck analysis
- Format scripts with shfmt
- Support dry-run modes
- Improve cross-platform portability
Inputs
- Bash scripts
- Command-line arguments
- Environment variables
- Input files
- Target platforms
- External commands
- CI/CD workflows
Outputs
- Hardened Bash scripts
- Test files
- Linting results
- Formatted scripts
- Usage messages
- Structured logs
- Exit statuses
Requirements
- Bash 4.4 or later for specified features
- Bats for testing
- ShellCheck for static analysis
- shfmt for formatting
