bash-shell-scripting - Bash scripting best practices and patterns
Provides bash scripting best practices for production scripts, CLI tools, and Makefiles with strict mode and error handling.
Tags
Updated: 2026-03-10Capabilities
Typical Inputs
Typical Outputs
What this skill does
- write bash scripts
- parse command-line arguments
- handle errors
- validate shell scripts
- format shell scripts
- check command existence
- create lock files
- manage temporary files
- use shell arrays
Inputs
- shell source files
- Makefile
- script template
Outputs
- formatted shell scripts
- validated scripts
- error-handling code
- CLI tools
Requirements
- bash environment
- shellcheck
- shfmt
