bats-testing-patterns
Pass
Audited by Gen Agent Trust Hub on Oct 15, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill serves as an educational guide for shell script testing using the Bats framework. Analysis across all 11 threat categories indicates no malicious intent or exploitable patterns.
- [EXTERNAL_DOWNLOADS]: The skill provides instructions for installing Bats through official and well-known channels, including Homebrew, the official
bats-core/bats-coreGitHub repository, and the npm registry. These are standard and legitimate installation methods for the tool described. - [COMMAND_EXECUTION]: The provided code snippets demonstrate common shell testing patterns, such as using
mktempfor isolated test environments, performing file operations, and cleaning up resources inteardownfunctions. These practices align with security best practices for automated testing. - [DYNAMIC_EXECUTION]: The skill includes an example of command stubbing where a small shell script is created dynamically in a temporary directory for mocking purposes. This is a restricted, standard technique for unit testing and does not pose a risk of arbitrary code execution from untrusted sources.
- [DATA_EXFILTRATION]: No network operations or sensitive data access patterns were identified. The examples focus on local script testing and output verification.
Audit Metadata