golang-cli

Pass

Audited by Gen Agent Trust Hub on Oct 23, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill provides educational content and boilerplate code for building Golang CLI applications using standard libraries and well-known, trusted packages (cobra, viper, pflag). All external package references point to official, widely-used GitHub repositories.
  • [SAFE]: Code examples follow security best practices, such as recommending the separation of stdout (program output) and stderr (diagnostics/logs) to prevent data corruption in Unix pipes.
  • [SAFE]: Configuration management examples (Viper) emphasize safe defaults and correct precedence (flags > env > config file), including advice to avoid crashing when a configuration file is missing.
  • [SAFE]: Signal handling examples demonstrate graceful shutdown patterns using signal.NotifyContext, which is the modern and safe approach for managing process lifecycles in Go.
  • [SAFE]: Testing examples show how to capture and validate command output using internal buffers rather than executing external binaries or manipulating the global environment.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 23, 2026, 08:59 PM