git-worktree
Pass
Audited by Gen Agent Trust Hub on Aug 28, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses a Python script
scripts/worktree_convention.pyto executegitcommands viasubprocess.run. The implementation avoids using a shell and passes arguments as a list to mitigate injection risks.\n- [INDIRECT_PROMPT_INJECTION]: The skill represents a surface for indirect prompt injection as it processes branch names and paths that may originate from untrusted sources.\n - Ingestion points: Branch names and repository paths passed as arguments to
scripts/worktree_convention.py(e.g., via--branchand--repo-root).\n - Boundary markers: The skill instructions require the agent to use the helper script for planning, and the script uses
subprocess.runwith list-based arguments.\n - Capability inventory: The skill can modify the
.gitignorefile, write metadata to the filesystem, and executegit worktreeoperations.\n - Sanitization: The script includes
sanitize_slugto remove path separators from branch names andvalidate_explicit_rootto prevent path traversal and repository escapes.
Audit Metadata