bash-defensive-patterns
Pass
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: SAFE
Full Analysis
- [COMMAND_EXECUTION]: The skill includes code templates demonstrating common shell utilities such as
cp,mv,rm,chown, andmkdir. These examples are provided within the context of teaching defensive patterns, such as safe move operations, dry-run support, and atomic writes to prevent data corruption. - [SAFE]: The primary purpose of the skill is to advocate for shell scripting security best practices. It includes instructions for enabling strict mode (
set -Eeuo pipefail), performing proper error trapping withtrap, implementing input validation, and usingmktempfor secure temporary file handling.
Audit Metadata