using-git-worktrees
Pass
Audited by Gen Agent Trust Hub on Oct 10, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill reads from a local file to determine configuration, which creates a potential surface for indirect prompt injection if the project file is compromised.
- Ingestion points: The
CLAUDE.mdfile is searched for directory preferences usinggrep_searchin theSKILL.mdfile. - Boundary markers: No specific boundary markers or instructions to ignore embedded instructions are used when processing the content of
CLAUDE.md. - Capability inventory: The skill can execute various shell commands including
git,npm,cargo,pip,poetry, andgo. It also has file-write capabilities for modifying.gitignore. - Sanitization: The skill does not perform explicit sanitization of the strings retrieved from
CLAUDE.mdbefore using them in directory paths. - [EXTERNAL_DOWNLOADS]: The skill automatically fetches project dependencies from well-known registries during the setup phase.
- Evidence: The skill executes
npm install,pip install -r requirements.txt,poetry install,go mod download, andcargo buildbased on the detection of standard project manifest files. These operations download packages from official services such as NPM, PyPI, and Crates.io. - [COMMAND_EXECUTION]: The skill executes several system and build commands as part of its core functionality.
- Evidence: Uses
git worktree add,git rev-parse, andgit check-ignorefor workspace management. It also runs project tests usingnpm test,cargo test,pytest, andgo testto verify the baseline state. - [DYNAMIC_EXECUTION]: The skill constructs file paths and commands dynamically based on environment variables and project configuration.
- Evidence: The worktree path is dynamically assembled in
SKILL.mdusing the$LOCATION,$project, and$BRANCH_NAMEvariables before being passed to thegit worktree addcommand.
Audit Metadata