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.run module to execute Git commands for worktree management and cleanup.
  • Evidence: scripts/worktree_manager.py and scripts/worktree_cleanup.py execute commands such as git worktree list, git worktree add, and git worktree remove to manage parallel development environments.
  • [COMMAND_EXECUTION]: The worktree_manager.py script includes an optional feature to install project dependencies.
  • Evidence: When the --install-deps flag is used, the script executes standard package managers like npm, yarn, pnpm, bun, or pip based 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.py accesses and copies files such as .env, .env.local, and .envrc. These operations are performed locally using shutil.copy2 and 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.py and scripts/worktree_cleanup.py read JSON input from stdin or a file provided via the --input argument.
  • 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 via git and package managers.
  • Sanitization: Input is parsed through json.loads, and file paths are processed using Path.resolve() to ensure they point to valid local directories.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 31, 2026, 04:01 PM