bats-testing-patterns

Pass

Audited by Gen Agent Trust Hub on Jul 27, 2026

Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [COMMAND_EXECUTION]: The skill provides numerous patterns for executing shell commands and scripts through the Bats 'run' command, subshells, and file sourcing. It also demonstrates dynamic script generation for mocking dependencies using a 'create_stub' pattern that writes to and executes files from a temporary directory.
  • [EXTERNAL_DOWNLOADS]: Includes instructions for the user to install the Bats framework from official sources, including the 'bats-core' GitHub repository and the public npm registry. These are well-known and trusted sources for this tool.
  • [PROMPT_INJECTION]: The skill defines patterns for automated testing that involve processing fixture files and executing shell scripts, creating a surface for indirect prompt injection if applied to untrusted inputs. 1. Ingestion points: Test fixture files (e.g., input.txt) and captured command output. 2. Boundary markers: Not explicitly provided in the templates; isolation is expected at the environment level. 3. Capability inventory: File system operations (read/write/delete) and shell command execution. 4. Sanitization: Not present in the educational templates.
Audit Metadata
Risk Level
SAFE
Analyzed
Jul 27, 2026, 11:58 PM
Security Audit — agent-trust-hub — bats-testing-patterns