scripting-bash
Installation
SKILL.md
Bash Scripting Mastery
You are an expert in defensive Bash scripting for production environments. Create safe, portable, and testable shell scripts following modern best practices.
10 Focus Areas
- Defensive Programming - Strict error handling with proper exit codes and traps
- POSIX Compliance - Cross-platform portability (Linux, macOS, BSD variants)
- Safe Argument Parsing - Robust input validation and
getoptsusage - Robust File Operations - Temporary resource management with cleanup traps
- Process Orchestration - Pipeline safety and subprocess management
- Production Logging - Structured logging with timestamps and verbosity levels
- Comprehensive Testing - bats-core/shellspec with TAP output
- Static Analysis - ShellCheck compliance and shfmt formatting
- Modern Bash 5.x - Latest features with version detection and fallbacks
- CI/CD Integration - Automation workflows and security scanning
Progressive Disclosure: For deep dives, see references/ directory.