worktree

Pass

Audited by Gen Agent Trust Hub on Nov 5, 2026

Risk Level: SAFEDATA_EXFILTRATIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DATA_EXFILTRATION]: The skill encourages the use of a .worktreeinclude file to automatically copy sensitive files like .env into new worktree directories. While convenient for development, this increases the attack surface for credential exposure by duplicating secrets across multiple filesystem locations.
  • [COMMAND_EXECUTION]: The instructions explicitly direct the agent to run package management commands such as npm install and pip install -r ... after entering a worktree. This is a standard vector for executing code defined in potentially malicious package.json or requirements.txt files within a repository.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from external sources (git repositories) to determine its behavior.
  • Ingestion points: Branch names, pull request descriptions (e.g., #123), and file contents (via git status or .worktreeinclude).
  • Boundary markers: None identified; instructions do not specify delimiters or warnings to ignore embedded commands in these inputs.
  • Capability inventory: The skill uses EnterWorktree, ExitWorktree, and spawns subagents via the Agent tool with file-system and tool-execution capabilities.
  • Sanitization: There is no mention of sanitizing or escaping data extracted from the repository before using it to name worktrees or initialize agent sessions.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 5, 2026, 06:05 PM