This skill provides Claude with a comprehensive framework for writing production-grade Bash scripts, focusing on safety, portability, and maintainability. It enforces critical practices like strict error handling, safe variable expansion, and secure temporary file management. By integrating patterns for argument parsing, modular functions, and cross-platform compatibility (macOS/Linux), it ensures that automation scripts are resilient across different environments and ready for unit testing using frameworks like bats-core.
主な機能
01Strict error handling with pipefail and cleanup traps
02Secure temporary resource management with mktemp
03Cross-platform compatibility logic for macOS (BSD) and Linux (GNU)
04Integrated unit testing patterns with bats-core
05Portable argument parsing using getopts and case blocks
060 GitHub stars