About
This skill provides comprehensive guidance for implementing the Bash Automated Testing System (Bats) to ensure the reliability of shell scripts and CLI tools. It covers essential patterns including exit code assertions, output verification, complex file system state testing, and advanced techniques like mocking external commands and stubbing environment variables. Whether you're building CI/CD pipelines or developing complex shell utilities, these patterns help you implement test-driven development (TDD) for shell environments, ensuring cross-dialect compatibility and production-grade script quality.