概要
This skill provides expert guidance on using Bats (Bash Automated Testing System) to ensure the reliability and maintainability of shell scripts. It covers foundational test structures, assertion patterns for exit codes and file states, advanced mocking and stubbing techniques, and integration with modern CI/CD workflows like GitHub Actions. Whether you are building simple utility scripts or complex automation tools, this skill helps you implement test-driven development (TDD) and validate script behavior across various shell environments including bash, sh, and dash.