using-git-worktrees

Pass

Audited by Gen Agent Trust Hub on Sep 4, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill performs several shell-based operations to manage git worktrees and project lifecycles.
  • It executes git rev-parse, git worktree add, and git check-ignore to manage the repository state.
  • It runs platform-specific build and test tools including npm, cargo, pip, poetry, and go based on detected configuration files.
  • [EXTERNAL_DOWNLOADS]: The skill instructs the agent to fetch external dependencies from official registries during the project setup phase in Step 3.
  • Commands include npm install, pip install -r requirements.txt, poetry install, and go mod download.
  • [INDIRECT_PROMPT_INJECTION]: The skill possesses a vulnerability surface where it ingests untrusted data from the repository environment to drive command execution.
  • Ingestion points: The skill reads project metadata and directory structures in SKILL.md (Step 0, Step 1b, Step 3) via ls, basename, and file existence checks (package.json, Cargo.toml, etc.).
  • Boundary markers: The provided shell logic does not include explicit boundary markers or warnings to ignore instructions embedded in the project files being processed.
  • Capability inventory: The skill has the capability to write to the filesystem (git worktree add) and execute arbitrary build/test commands (npm install, cargo build, etc.) as seen in SKILL.md (Step 3 and 4).
  • Sanitization: While shell variables like "$path" and "$BRANCH_NAME" are quoted to prevent basic word splitting, there is no formal validation or sanitization of the file contents or repository state before they influence command execution.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 4, 2026, 12:21 PM