yargs-patterns
Pass
Audited by Gen Agent Trust Hub on Jun 29, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
SKILL.mdfile includes a middleware pattern that usesrequire()on a path resolved from user-supplied CLI arguments (argv.config). While common for configuration loading in CLI tools, this pattern can result in arbitrary code execution if an attacker provides a path to a malicious JavaScript file. - [COMMAND_EXECUTION]: The
scripts/generate-completion.shscript executes the command name provided as the first shell argument to invoke the CLI and retrieve its completion definitions. - [COMMAND_EXECUTION]: The completion generation script allows writing output to an arbitrary file path provided as a script argument, which could potentially be used to overwrite sensitive files if run with elevated privileges.
Audit Metadata