Advanced Shell Scripting

•
1
•

Automates system tasks and CI/CD pipelines with robust, portable Bash and POSIX shell scripts featuring advanced error handling.

This skill provides a comprehensive framework for writing maintainable, production-ready shell scripts. It guides Claude in implementing fail-fast patterns, complex argument parsing, and seamless integration with standard CLI tools like jq and yq. Whether building container entrypoints or orchestrating cloud deployments, this skill ensures scripts are portable across macOS and Linux environments while adhering to defensive programming best practices and automated testing standards using Bats and ShellCheck.

주요 기능

01Fail-fast error handling with pipefail and trap cleanup handlers
02Automated testing patterns using Bats and ShellCheck static analysis
03Portable POSIX sh vs. Bash decision-making and implementation
04Streamlined JSON and YAML processing with jq and yq integration
05Standardized argument parsing for both short and long options
061 GitHub stars

사용 사례

01Developing production-grade container entrypoints and initialization scripts
02Creating robust CI/CD pipeline scripts for GitHub Actions and GitLab CI
03Automating complex system administration tasks like log rotation and backups