概要
This skill provides specialized guidance for implementing robust, production-grade testing for shell scripts using the Bats framework. It empowers developers to apply Test-Driven Development (TDD) to shell utilities through detailed patterns for exit code assertions, output verification, and file system validation. From basic unit tests to complex mocking of external dependencies and cross-shell compatibility checks, this skill ensures that infrastructure scripts and DevOps tools remain reliable and maintainable across diverse environments and CI/CD pipelines.