git-worktree-manager
Pass
Audited by Gen Agent Trust Hub on Oct 31, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses Python's
subprocess.runmodule to execute Git commands for worktree management and cleanup. - Evidence:
scripts/worktree_manager.pyandscripts/worktree_cleanup.pyexecute commands such asgit worktree list,git worktree add, andgit worktree removeto manage parallel development environments. - [COMMAND_EXECUTION]: The
worktree_manager.pyscript includes an optional feature to install project dependencies. - Evidence: When the
--install-depsflag is used, the script executes standard package managers likenpm,yarn,pnpm,bun, orpipbased on detected lockfiles in the repository. - [DATA_EXPOSURE]: The skill synchronizes local environment configuration files between the main repository and new worktrees.
- Evidence:
scripts/worktree_manager.pyaccesses and copies files such as.env,.env.local, and.envrc. These operations are performed locally usingshutil.copy2and are consistent with the skill's stated purpose of setting up isolated development environments. - [INDIRECT_PROMPT_INJECTION]: The scripts ingest external configuration data which defines the execution context for the tool.
- Ingestion points:
scripts/worktree_manager.pyandscripts/worktree_cleanup.pyread JSON input fromstdinor a file provided via the--inputargument. - Boundary markers: Absent; input is treated as structured configuration data.
- Capability inventory: The scripts possess capabilities to write files (
.worktree-ports.json), copy environment files, and execute shell commands viagitand package managers. - Sanitization: Input is parsed through
json.loads, and file paths are processed usingPath.resolve()to ensure they point to valid local directories.
Audit Metadata