bash-scripting - Defensive Bash Scripting for Production and CI/CD
Provides patterns, standards, and techniques for authoring safe, portable, and testable shell scripts for automation and CI/CD pipelines.
Tags
Updated: 2026-09-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write defensive Bash scripts
- Validate script inputs and parameters
- Manage temporary files and cleanup
- Run ShellCheck static analysis
- Format code with shfmt
- Test scripts using Bats framework
Inputs
- Shell script source code
- Automation requirements
- CI/CD pipeline specifications
Outputs
- Defensive Bash scripts
- Bats test suites
- CI/CD pipeline configuration files
- Static analysis configuration files
- Script documentation
Requirements
- Bash runtime environment
- ShellCheck analysis tool
- shfmt formatting tool
- Bats testing framework
