git-worktree
Warn
Audited by Gen Agent Trust Hub on Mar 12, 2026
Risk Level: MEDIUMCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The
worktree-manager.shscript is designed to copy environment configuration files (e.g.,.env,.env.local) from the main repository to new worktree directories. These files frequently contain sensitive information such as API keys and credentials. - [EXTERNAL_DOWNLOADS]: The skill's primary instructions in
SKILL.mddirect the agent to run package managers likenpm,pip,composer, andgoto install dependencies after worktree creation. This results in downloading and executing third-party code from public registries based on repository contents. - [COMMAND_EXECUTION]: The skill uses a custom shell script to perform various system-level operations, including directory management with
mkdir, file duplication withcp, and Git lifecycle commands such asgit worktreeandgit checkout. - [EXTERNAL_DOWNLOADS]: The manager script performs a
git pulloperation, which retrieves and updates repository content from a remote origin, creating a pathway for external code to enter the local environment. - [COMMAND_EXECUTION]: The
SKILL.mddocumentation claims the manager script automatically handles dependency installation, but the provided script lacks this code, which results in the agent performing these installations manually in the terminal.
Audit Metadata